By shaping the incident wavefront of a laser beam into a multimode fiber with strong polarization mixing and random mode coupling we can either eliminate depolarization and restore the input polarization state or convert the output fields into any arbitrary polarization states.