Use dbpoweramp to convert mp3 to aac.
aac has better quality than mp3. aac loseless is one of the bets audio compression format, but not supported on most mp3/aac players.
eaac+ is also gud, but not as gud as loseless aac.
m4a use same audio codec of aac for compression nd playback, so theoritically same.