In FCP, export Using Quicktime Conversion and choose your conversion qualities and codec here. Otherwise go through Compressor if you've got the full FC Studio.
For free software, the best and easiest to use is called MPEG Streamclip. Hope that helps!