M4A to MP3

Published Updated

Re-encode an AAC .m4a or .aac file as a 128 kbps MP3. Apple Lossless .m4a files fail in Chrome, which has no ALAC decoder.

AAC goes in, MP3 comes out

An .m4a file is MPEG-4 audio. The MDN container guide lists .m4a under the audio/mp4 type, and the codec inside is usually AAC. Some files carry Apple Lossless (ALAC) instead, which is the case that fails here.

The page passes your file to the browser's decodeAudioData, then encodes the result with lamejs at a fixed 128 kbps. The Web Audio API resamples the decoded audio to the rate of the audio context, and the page creates that context without a rate, so it runs at the preferred rate of your output device. Nothing is copied across untouched, so every conversion is a fresh encode.

Which M4A files decoded

Test files made from one 5-second stereo WAV with Apple's afconvert, decoded by headless Google Chrome 156:

FileCodecSizeResult
m4a-aac-256k.m4aAAC-LC, 256 kbps155 KBConverted
m4a-heaac.m4aHE-AAC, 64 kbps37 KBConverted
adts-aac.aacAAC in ADTS, 128 kbps70 KBConverted
m4a-alac.m4aApple Lossless330 KBRejected

The MDN audio codec guide marks ALAC as a lossless codec with support in Safari and in no other listed browser, which fits the result. Size gives a lossless file away: in this test the ALAC copy was twice as big as the 256 kbps AAC one.

Size after conversion, 10-minute file

The MP3 rate never changes, so the bitrate of the source decides if the file grows or shrinks:

AAC sourceM4A sizeMP3 sizeChange
256 kbps19.2 MB9.6 MBHalf the size
128 kbps9.6 MB9.6 MBSame size, lower quality
64 kbps4.8 MB9.6 MBTwice the size
48 kbps HE-AAC3.6 MB9.6 MBAbout 2.7 times the size

How to change an M4A into an MP3

  1. Step 1

    Choose an M4A or AAC file

    The picker lists .m4a and .aac files. The browser decodes the whole file before the convert button appears.

  2. Step 2

    Convert to MP3

    The decoded sound is encoded at 128 kbps constant bitrate, keeping one or two channels as in the source.

  3. Step 3

    Check and download

    Play the MP3 on the page first. It is saved under the original name, ending in .mp3.

Related audio pages

  • For WAV or Ogg Vorbis output from the same M4A, use Audio Converter.
  • To keep only a part of the recording, cut the finished MP3 with Audio Cutter.
  • If the M4A is the soundtrack of a video, Video to MP3 reads the video file directly.

M4A to MP3: common questions

Why does my M4A refuse to convert?

Most often it holds Apple Lossless rather than AAC. Chrome 156 rejected an ALAC .m4a in testing, and MDN's codec table lists ALAC support in Safari only. The page then shows Couldn't read this audio file and names Apple Lossless as the cause. Export the track as AAC or WAV from the app that made it, or try Safari.

Will the MP3 sound worse than the M4A?

Usually a little. AAC audio is already lossy, and the MP3 encoder throws away detail a second time. MDN describes AAC as designed to give more compression with higher fidelity than MP3, so a 128 kbps MP3 made from a 128 kbps AAC file cannot match it. Convert only when a player needs MP3.

Why is the MP3 bigger than my M4A?

The MP3 is always 128 kbps, about 0.96 MB per minute. A voice note or podcast stored as 64 kbps AAC therefore doubles in size, and a 48 kbps HE-AAC file nearly triples.

Can I convert a raw .aac file?

Yes. A bare AAC stream in an ADTS file decoded in the Chrome 156 test, as did AAC-LC and HE-AAC inside .m4a. MDN notes that ADTS support depends on the media framework of the operating system, so another browser may differ.

Are title, artist and cover art copied over?

No. The MP3 gets no ID3 tags at all, so song details stay behind in the M4A and need adding again in a tag editor.

What sample rate does the MP3 get?

Whatever rate your output device prefers, typically 44,100 or 48,000 Hz. The decoder resamples the M4A to it, so a 32 kHz or 96 kHz file changes rate before encoding starts.

Related Tools