Keep the WebM (Opus) file if it plays where you listen. For a device whose maker lists AAC and not Opus, as Apple does for the iPhone, take the M4A (AAC) or convert the WebM audio to M4A. Neither is smaller as such.
Checked on 2026-11-21 on xconvert.com/convert-webm-to-m4a. The size tables were measured on files we encoded that day. Sources at the end.
WebM vs M4A audio: the difference in one table
| WebM audio | M4A | |
|---|---|---|
| What the file is | A WebM file with sound only (.webm, .weba) | An MP4 file with sound only (.m4a) |
| Sound inside | Opus or Vorbis | AAC in every M4A measured here; an .m4a can also hold Apple Lossless (ALAC) |
| Sample rate | 48,000 Hz in every Opus file we made | The source’s own: 44,100 Hz from our recordings |
| A piano hour at 128 kbps | 68.58 MB as our converter builds it | 58.22 MB |
| Highest frequency kept at 128 kbps | 20.1 kHz | 15.5 kHz |
| Median bitrate of uploads to our tools, per uploader | 128.9 kbps | 128.0 kbps |
A WEBA file is WebM audio under another name: one file, named .weba and then .webm, came back from our converter as the same M4A, byte for byte.
The WebM project’s guidelines do not mention .weba; what a WEBA file is covers the extension.
The last row covers audio files uploaded to our tools from 22 October to 20 November 2026.
Counted: 790 uploads of Opus in a file named .webm or .weba, from 98 uploaders, and 11,328 of AAC in a file named .m4a, from 2,907. Ten uploaders sent 78 % of the WebM audio files.
What it costs in size and quality (measured)
An hour of solo piano and a rock album of 32:23 were each encoded both ways on our own server on 2026-11-21, with the settings our converter’s code builds. MB is 1,000,000 bytes.
| Rate set | Piano hour, M4A | Piano hour, WebM audio | Rock album, M4A | Rock album, WebM audio |
|---|---|---|---|---|
| 64 kbps | 29.42 MB | 34.80 MB | 15.88 MB | 15.33 MB |
| 96 kbps | 43.82 MB | 52.15 MB | 23.65 MB | 22.38 MB |
| 128 kbps | 58.22 MB | 68.58 MB | 31.43 MB | 29.78 MB |
| 160 kbps | 72.62 MB | 85.54 MB | 39.20 MB | 37.34 MB |
An M4A at a constant bitrate weighs bitrate times length plus 0.9 to 2.2 % at these four rates, on both recordings.
For WebM audio the rate is a target, and the Opus encoder moves about it with the music: the piano hour came out 17.8 to 19.0 % larger than its M4A, the rock album 3.5 to 5.4 % smaller.
Held at a constant rate, which our converter does not do for a WEBA, the WebM file was 0.9 to 2.2 % larger than the M4A. As an .opus file (the same codec in an Ogg container, held constant) the piano hour is 58.06 MB at 128 kbps.
What each file keeps is measured as a width: the highest frequency at which a 100 Hz band stays within 10 dB of the lossless recording.
| Rate set | M4A keeps up to (both recordings) | WebM audio keeps up to |
|---|---|---|
| 64 kbps | 13.1 kHz | 18.0 kHz (piano), 20.1 kHz (rock) |
| 96 kbps | 14.3 kHz | 20.1 kHz |
| 128 kbps | 15.5 kHz | 20.1 kHz |
| 160 kbps | 16.1 kHz | 20.1 kHz |
The Opus specification, RFC 6716, says “Opus never codes audio above 20 kHz”.
A width is not a verdict on sound: no listening test was run. MDN’s audio codec guide gives both codecs the same recommended minimum for stereo sound, 96 kbps. For Opus against MP3, see Opus vs MP3.
Where each one plays
The browser rows are about sound played by a web page, not by an app.
| Where (source, read November 2026) | WebM audio (Opus) | M4A (AAC) |
|---|---|---|
| Chrome, Edge, Firefox (caniuse: Opus, AAC) | Chrome from 33, Edge from 14, Firefox from 15 | Chrome and Edge from 12; Firefox only where the system has the codec |
| Safari on a Mac (WebKit, Apple’s release notes, caniuse) | WebM since Safari 14.1 (WebKit); Opus in WebM added in Safari 15 (Apple); caniuse rates Safari partial | From Safari 4 |
| Safari on iPhone and iPad (caniuse, WebKit) | From 17.4; rated full from 18.4 | From 4.0 |
| Android (Android Developers) | Opus decoded from Android 5.0; Ogg, MPEG-4 and Matroska files named for reading it | AAC decoded; .m4a named |
| Windows (Microsoft Learn) | Opus is not in the list of included codecs | AAC-LC decoded |
| iPhone (Apple’s tech specs) | Opus and WebM are not named | AAC is named |
Apple’s line begins “Supported formats include AAC, APAC, MP3”, and “include” does not make a list complete. Microsoft’s page lists “the codecs that are included with Windows”, not what an installed program plays.
M4A or WebM: which to pick
- The same recording is offered both ways. Take the one your player has a row for above; size does not settle it.
- An iPhone or a Windows PC, outside a browser. M4A: Apple and Microsoft list AAC and not Opus.
- A current browser. Either one, by the table.
- An Android phone, a car, a USB player or an editing program. Android’s page names no .webm file for reading Opus, and no maker’s page we read covers the rest. Try a short file of each kind first.
- The file already plays where you need it. Do not convert it, and do not expect a new name to change it: from 22 October to 20 November 2026, 538 uploads named .mp3 held Opus (37 uploaders, one of whom sent 225).
- Neither plays. MP3 is the most common result on our site: of 770 finished jobs on WebM audio uploads in the same 30 days, 508 made an MP3, 171 an OGG and 5 an M4A. M4A vs MP3 weighs that pair.
A recording can be longer than the part worth keeping. Cutting the silent start, the end and the pauses is an editing step, separate from the choice of format, and it comes first.
Converting between them
A conversion between the two decodes the sound and encodes it again in the other codec; nothing is copied through. The result keeps at most what the upload had. A four-minute piano clip went through our converter pages both ways on 2026-11-21:
| Direction and setting | Upload | Result | Result keeps up to |
|---|---|---|---|
| WebM audio to M4A, nothing changed | 4.55 MB, 20.1 kHz | 3.62 MB | 16.5 kHz |
| WebM audio to M4A, Constant Bitrate at 128 kbps | 4.55 MB, 20.1 kHz | 3.89 MB | 15.5 kHz |
| M4A to WEBA, nothing changed | 3.88 MB, 15.5 kHz | 13.65 MB | 15.5 kHz |
| M4A to WEBA, Constant Bitrate at 128 kbps | 3.88 MB, 15.5 kHz | 4.66 MB | 15.6 kHz |
The first row is four runs with one result; the others ran once. The 13.65 MB WEBA is 3.52 times its upload and no wider than the 3.88 MB M4A it came from.
To make an M4A from WebM audio (the file is processed on our servers, not in your browser):
- On the WebM to M4A converter, click Upload and pick the file. A sound-only file named .webm or .weba is accepted.


- Under FILE COMPRESSION, click Constant Bitrate. The list of that name shows 128 kbps and holds 17 rates, from 8 kbps to 384 kbps: pick a rate no higher than the Audio Bitrate: on the file card. Pictured: the test clip loaded, the list at 128 kbps.


- Click Convert. On the downloads page, wait for “Completed”, read the line that begins Output Size:, then click Download. Pictured: the test clip’s card, “Output Size: 3.89 MB”.


Skip step 2 and Quality Preset stays selected, its list on “Very High (Recommended)”: the encoder then picks the rate itself, 119.2 kbps for the test clip.
Limits to know:
- The M4A always holds AAC: the page offers no other codec.
- A sound-only file named .webm shows a Retry button on its card; the conversion works all the same.
- Title, artist and album tags were kept in both directions.
- For a WEBA, Constant Bitrate sets a target: at 128 kbps the clip came out at 155 kbps. The finished card shows no note when a result is larger than its upload.
- Uploads and results are deleted automatically about 5 hours after they were written.
The converter is the wrong choice in two cases:
- To undo a conversion. What a file lost does not come back: keep the original.
- For a WEBA at a fixed rate. With ffmpeg on a computer,
ffmpeg -i clip.m4a -vn -ac 2 -b:a 128000 -vbr off -c:a libopus -f webm clip.webamade 3.93 MB of the test clip, against the page’s 4.66 MB.
What we could not confirm
- Apple’s and Microsoft’s own apps. No Apple page we found says which formats Music, Files or QuickTime Player open. No file was played on any device, a Windows PC included.
- The hour on the converter’s page. The hour and the album were encoded on our server, not uploaded. At Constant Bitrate 128 kbps, the clip’s M4A from the page and from the server have the same number of bytes.
- Cover art and Vorbis. The test files carried no picture, and no Vorbis file was encoded.
Sources
- WebM project: WebM Container Guidelines: a WebM file holds Vorbis or Opus audio; the page does not mention .weba. Read 2026-11-21.
- MDN: Media container formats: .m4a is listed under MPEG-4 (MP4) with the type audio/mp4. Read 2026-11-21.
- Library of Congress: MPEG-4 File Format, Version 2: “M4A files contain only MPEG 4 Audio”, said beside MP4 files that hold video: an M4A is the file with sound only. Read 2026-11-21.
- Apple: Apple Lossless Format “Magic Cookie” Description, in Apple’s open-source Apple Lossless code: the file containers it names for the codec are “M4A/MP4, CAF”. Read 2026-11-21.
- RFC 6716: Definition of the Opus Audio Codec: the quoted sentence on 20 kHz. Read 2026-11-21.
- MDN: Web audio codec guide: the recommended minimum bit rate for stereo sound, 96 kbps, for Opus and for AAC. Read 2026-11-21.
- caniuse, Opus and AAC: the versions for Chrome, Edge and Firefox, for AAC in Safari and for Safari on iPhone and iPad, and the rating of Safari on a Mac as partial; all for the audio element of a web page. Not taken from caniuse: Opus in a WebM file in Safari on a Mac, which its data first note at Safari 17.4 and Apple’s release notes put in Safari 15. Read 2026-11-21 in the site’s data files.
- WebKit: WebKit Features in Safari 17.4: WebM on the Mac since Safari 14.1, on iPhone and iPad since 17.4. Read 2026-11-21.
- Apple: Safari 15 Release Notes, version 15 released on 20 September 2021: “Added support for the Opus audio codec in WebM containers.” Read 2026-11-21.
- Android Developers: Supported media formats: the Android row. Read 2026-11-21.
- Microsoft Learn: Supported codecs: AAC-LC in the list of codecs included with Windows, no row for Opus; the quoted words. Read 2026-11-21.
- Apple Support: iPhone 17 Pro Max, Tech Specs: the quoted line, under Audio Playback; the iPhone 16 page has the same line. Read 2026-11-21.
- The test recordings, on the Internet Archive, read 2026-11-21: The Open Goldberg Variations, Kimiko Ishizaka, piano, marked CC0 1.0 Universal; No Life After Crypts by The Crypts!, marked Attribution 4.0 International. No part of a recording is published here, only sizes and measured widths.
- Our measurements: the first 60 minutes of the piano recording and the whole rock album (32:23), converted to 16-bit, 44.1 kHz stereo WAV and encoded with ffmpeg on our own server on 2026-11-21, one file at a time, with the settings the converter’s code builds for M4A and for WEBA and, for comparison, with the Opus encoder held at a constant rate. Sizes are the files’ bytes; widths compare each decoded file with its WAV. On the converter pages: seven jobs on 2026-11-21 with one four-minute clip, as a 4.55 MB WebM audio file and a 3.88 MB M4A, one at a time.
- Our counts: audio files uploaded to any of our tool pages from 22 October to 20 November 2026 (UTC), 105,243 uploads; counts and medians only, no name or owner read out. Jobs are finished jobs on those uploads in the same 30 days.
