MP3 to M4A Guide: Apple AAC Audio Container FFmpeg Guide

Convert MP3 tracks into Apple .m4a (AAC in MPEG-4) containers for iOS, macOS Finder and Apple Music using FFmpeg, or use our browser converter to encode supported WebM and Ogg recordings to MP3.

Browser converter limits: the tool below converts WebM and Ogg audio (.webm, .ogg, .oga, .opus) to MP3 only, mono or stereo, up to 100 MiB and 45 minutes.

Load .webm audio file

Drag file here or click to browse · Max file size: 100 MiB

Files processed locally · 0 bytes uploaded
No WebM file? Try in-browser audio test signals:
Keyboard shortcuts:
U Pick fileEsc CancelD Download MP3

Local Conversion History

0 files

Saved in IndexedDB. History can remain after closing this tab.

0 B stored
Saved locally across visits. Up to 20 files / 256 MiB; oldest removed on save. Remove files or use Clear.
0 Bytes Uploaded

100% Local Privacy

Audio never leaves your browser. Zero upload bandwidth, no remote telemetry.

Opus Preflight Engine

Parses EBML container headers, channel layouts, and fixes live MediaRecorder duration tags.

MPEG Frame Verifier

Checks MPEG Layer III headers and complete frame boundaries; reports the frame timeline, not decoded audio quality.

How to convert MP3 to M4A (AAC) with FFmpeg

  1. Because both MP3 and AAC are lossy codecs, transcoding from MP3 to M4A cannot restore frequencies already discarded in the source MP3.
  2. Use FFmpeg's native AAC encoder with -movflags +faststart so the moov atom is placed at the start of the .m4a file for instant playback:
ffmpeg -i input.mp3 -vn -c:a aac -b:a 192k -movflags +faststart output.m4a

Need to convert M4A into MP3 instead? Visit our M4A to MP3 guide, check browser container support, or review the MP3 bitrate guide.

Interactive calculator

Opus to MP3 bitrate, file size and device calculator

Pick a duration, source stream and destination to compare estimated MP3 sizes and get a matching FFmpeg command. Estimates are constant-bitrate payload sizes; tags, headers and VBR change real files.

Duration

3:00

Source stream

Source audio at ~128 kbps for 3:00 is about 2.7 MiB. This browser converter accepts WebM input; use FFmpeg for standalone .opus files.

Destination

Estimated output size for 3:00

  • 64 kbps MP3
    1.4 MiB
  • 128 kbps MP3
    2.7 MiB
  • 192 kbps MP3 (Recommended for WebM/Opus)
    4.1 MiB
    Suggested for this use
  • 320 kbps MP3
    6.9 MiB
  • Uncompressed WAV (1,411 kbps)
    30.3 MiB

Suggested: 192 kbps MP3 for Music & Headphones

192 kbps CBR MP3 gives headroom for a ~128 kbps Opus source: MP3 is less efficient than Opus, so matching the source bitrate can add audible artifacts, while going higher mostly adds size. A higher bitrate cannot restore detail the lossy source never kept — compare the sound and size yourself.

ffmpeg -i input.webm -vn -c:a libmp3lame -b:a 192k output.mp3

Typical playback support by device

Typical behavior, not a certification. Firmware, app and OS versions vary — test a short file on your device.
Device.webm (Opus/Vorbis).opus.ogg.mp3 (CBR)
Car Stereo USB (FAT32)UnlikelyUnlikelyVariesUsually plays
Apple iPhone / iPad (Files & Music)VariesVariesVariesUsually plays
Pioneer Rekordbox / Serato DJUnlikelyUnlikelyVariesUsually plays
Android Default PlayerUsually playsUsually playsUsually playsUsually plays
Podcast RSS Hosting (Spotify / Apple)UnlikelyUnlikelyUnlikelyUsually plays
Web Browser Audio (<audio>)Usually playsVariesVariesUsually plays

Apple iPhone / iPad (Files & Music): Files and Safari may preview newer WebM/Ogg audio depending on iOS version; the Music app library expects formats such as MP3 or AAC.

Learn more in the Opus to MP3 guide, the FFmpeg and VLC desktop guide and the WebM video audio-track guide.

mp3 to m4a

Packaging MP3 Audio into Apple M4A (AAC) Containers with Desktop FFmpeg

When building audiobooks, iPhone ringtones (.m4r renamed from .m4a), or AAC audio streams for Apple Music, Podcast feeds, and iOS native AVPlayer apps, packaging audio inside an MPEG-4 Audio (.m4a) container ensures smooth hardware-accelerated playback and chapter marker support across Apple's ecosystem.

The browser converter on this site does not accept MP3 input or encode M4A output—it converts supported WebM and Ogg (.webm, .ogg, .oga, .opus) audio files into CBR MP3 only (mono or stereo, up to 100 MiB and 45 minutes). To convert MP3 to M4A on your computer, run the desktop FFmpeg command on this page (`ffmpeg -i input.mp3 -vn -c:a aac -b:a 192k -movflags +faststart output.m4a`), which encodes AAC inside an `ftypM4A` container and places the `moov` atom at the front of the file.

Follow the desktop FFmpeg MP3 to M4A steps above, or use the browser converter on this page when you need to convert a .webm or .ogg recording to MP3.

Quick Answers

Does the browser converter on this page convert MP3 files into M4A?

No. The browser converter on this site accepts WebM and Ogg (.webm, .ogg, .oga, .opus) inputs only and outputs MP3 (up to 100 MiB and 45 minutes). Use the desktop FFmpeg commands on this page to convert MP3 to M4A.

Can an M4A file created with FFmpeg be used as an iPhone ringtone?

Yes. Trim the audio to 30 seconds or less in FFmpeg (`-t 30 -c:a aac -b:a 128k`), export as .m4a, and change the file extension from .m4a to .m4r before syncing with Finder or iTunes.

Back to the WebM to MP3 converter