Comparison, tested

Opus or MP3: which should you export?

Updated Tested November 21, 2026ffmpeg 6.1.1, libopus and libmp3lame5 bitrates, 2 sources, 9 tones

Two audio file boxes side by side, the right one smaller, with a tall glowing waveform and high-frequency spike above it.

Short answer

Export MP3 when the file goes somewhere you cannot check, because every browser plays it. Export Opus when you control the player, such as a web page or an app, and want a smaller file. At the same bitrate setting, the Opus files came out 12% to 35% smaller on two synthetic stereo noise sources (on a mono 16 kHz voice-like file the gap was 11% at 32k and 6% at 64k), and a 64 kbps Opus file kept tones up to 20 kHz that a 128 kbps MP3 had already lost above 16 kHz. RFC 6716 says Opus never codes audio above 20 kHz; libopus 1.6 adds an Opus HD mode for 96 kHz audio left untested.

WAV to Opus (free, in your browser)

Key takeaways

  • The same -b:a does not give the same bytes. In 10 runs on two stereo noise sources the Opus file was 12% to 35% smaller (on a mono 16 kHz voice-like file: 11% at 32k, 6% at 64k); with -vbr off, Opus at 96k was 241,945 bytes against 240,813 for MP3.
  • On pure tones, MP3 at 64 kbps lost everything from 12 kHz up and at 128 kbps everything from 17 kHz up. Opus kept every tone to 20 kHz at both rates and lost 21 kHz.
  • An Opus file reports 48000 Hz even when the source was 16000 Hz. An MP3 kept the 16 kHz source rate in our test; MP3 tops out at 48 kHz, so a 96 kHz source was resampled to 48000 Hz.
  • The Koldflux WAV to Opus converter produced a file of the same size (130,120 bytes) as ffmpeg with -compression_level 0, a lighter setting than the 96k default command below. We compared sizes, not file contents.

The pick: MP3 for anywhere unknown, Opus where you set the rules

Our pick rests on one question. Do you know what will play the file? If the answer is no (a client's inbox, an upload form, an old car stereo), export MP3. It plays in every browser on the MDN compatibility table, and it is the file nobody has to ask about. Simple.

If you do know, Opus is the better file. It is smaller at the same setting, it keeps high frequencies at bitrates where MP3 has already cut them, and it is free to use. The catch is support: Opus needs a player or a container that accepts it, and you have to check that before you ship. Do not skip it.

The two codecs side by side
MP3Opus
Browser support (MDN)Chrome, Edge, Firefox, Opera and Safari: yesChrome 33, Edge 14, Firefox 15, Opera 20. Safari: MDN says only inside a CAF file, on macOS 10.13 or iOS 11
Containers (MDN)MPEG-1, MPEG-2, MP4, ADTS, 3GPOgg, WebM, MPEG-TS, MP4
Bitrate range32 to 320 kbps in our runs6 to 510 kbps (opus-codec.org)
Sample rate in the file, 16 kHz mono source16000 Hz48000 Hz
Highest tone kept in our test16 kHz at 128 kbps; 8 kHz but not 12 kHz at 64 kbps20 kHz at 64 and 128 kbps
LicencePatent-free in the EU since 2012 and in the US since April 16, 2017 (MDN)Open and royalty-free (opus-codec.org)

Support, containers and licence are from the MDN audio codec guide and opus-codec.org, read November 21, 2026; the rest is what we ran.

Free tools:WAV to Opus (free, in your browser)WAV to MP3 (free, in your browser)

Same bitrate setting, different file size

We made two 20 second sources, white noise and pink noise that switches on and off every second, and encoded each at 32, 64, 96, 128 and 192 kbps with libmp3lame and libopus. MP3 here is constant bitrate. Its size is the same for both sources. Opus is variable bitrate by default, so it lands under the number you asked for. Look at the last column.

-b:aMP3Opus, gated noiseOpus, white noiseOpus smaller by
32k80,39762,25770,86823% / 12%
64k160,557118,727117,08526% / 27%
96k240,813155,368161,02335% / 33%
128k321,069209,680219,98635% / 31%
192k481,581323,391349,77233% / 27%

The last column is the gap on each source. Our script, test-results.txt.

The control matters. At 96 kbps with -vbr off, Opus came to 241,945 bytes, 0.5% above the MP3 at 240,813. So the smaller files are variable bitrate spending less than you asked for, not a bitrate trick. Whether those fewer bytes sound as good is a different question, and the next section measures only what survives, not how it sounds.

Both sources are synthetic stereo noise, which is an odd diet for a codec, and the 12% to 35% range holds only for them. A 5 second mono 16 kHz voice-like file gave a smaller gap: Opus 11% smaller at 32k (18,182 against 20,529 bytes) and 6% at 64k (38,629 against 40,941, commands.log). Real speech or music is untested.

What each codec keeps above 12 kHz

We played nine single tones, from 8 to 21 kHz, through each codec at 64 and 128 kbps, decoded them, and compared the level with the original. A tone that comes back within a decibel is kept; one that comes back 40 dB lower is gone. The control, a 1 kHz tone, came back at -0.4 dB from MP3 and -0.1 dB from Opus at 64 kbps, so the chain itself does not remove anything.

MP3 at 64 kbps kept 8 kHz and lost 12 kHz (-47.0 dB). At 128 kbps it kept 16 kHz and lost 17 kHz (-48.2 dB). Opus kept everything from 8 to 20 kHz at both rates and lost 21 kHz (-51.6 and -51.8 dB). That matches RFC 6716, which says Opus never codes audio above 20 kHz, the usual upper limit of human hearing. The opus-codec.org page lists an Opus HD mode for 96 kHz audio in libopus 1.6, untested.

Do you hear 17 kHz? Many adults do not, so this table is not a quality verdict. It shows where each codec draws its line, and that the MP3 line moves with the bitrate while the Opus line does not. We also ran white noise through both and read the band level: at 96 kbps the 16 kHz band came back 10.5 dB lower from MP3 and 0.1 dB higher from Opus. That is a level check; an encoder can match a band's level without matching the waveform, so treat it as supporting evidence only.

Grid of decoded tone levels in dB for MP3 and Opus at 64 and 128 kbps. MP3 loses tones from 12 kHz at 64 kbps and from 17 kHz at 128 kbps; Opus keeps tones up to 20 kHz and loses 21 kHz.
Level of each decoded tone against the original, from our script (tone-results.txt).

Header details that change your pipeline

A 16 kHz mono voice file (5 seconds, phone-style) showed the biggest practical difference. As MP3 at 128 kbps it stayed at 16000 Hz and took 81,837 bytes, while as Opus at 96 kbps it came out at 48000 Hz and took 58,833 bytes. In a separate 3 second test, a 96 kHz stereo noise file saved as MP3 came out at 48000 Hz, because MP3 tops out at 48 kHz. If a later step expects the original rate, such as a tool that resamples or a mixer that does not, you need to know which one you are handing it. Check.

Start time and length differ too. On the 20 second sources ffprobe reported an MP3 start time of 0.023021 s and a duration of 20.040000 s; the Opus file started at 0.000000 s and lasted 20.006500 s. Decoded with ffmpeg, both came back at exactly 3,840,078 bytes, the size of the source WAV. A player that ignores those header fields is untested here, so for a seamless loop test your own player first.

Where each one plays, and where we stop

MDN lists MP3 as supported in every major browser. For Opus it gives Chrome 33, Edge 14, Firefox 15 and Opera 20, and a Safari condition: the audio element only with a CAF file, on macOS 10.13 or iOS 11. That page can change. Read it again before you rely on a version number, and keep an MP3 next to any Opus file you hand to someone whose player you have not seen.

Upload acceptance on social and podcast platforms is a different matter, and we have no accounts to test it. The Koldflux platform pages cover what each one accepts: see the Opus and MP3 compatibility guides linked below. We did not retest them here.

Export both: ffmpeg and the Koldflux converters

These commands write the files we measured. voice.wav stands for your WAV master; start from the master each time, not from a file that is already MP3 or Opus. The last two lines read the codec, sample rate and channel count of each result.

In the browser, the Koldflux converters take a WAV file and run entirely on your device. On our 20 second gated-noise file, WAV to Opus gave 130,120 bytes, the same size as ffmpeg with -compression_level 0 (a lighter setting than the 96k command below; only sizes were compared, not file contents), and WAV to MP3 gave 320,877 bytes against 321,069 from ffmpeg at 128k. Tones came through as in the table: 16 kHz kept by both, 20 kHz gone from the MP3 (-59.7 dB) and kept in the Opus (-0.8 dB). The converters take WAV only and set the bitrate for you, so for 96k or a constant bitrate use ffmpeg.

ffmpeg -v error -i voice.wav -c:a libopus -b:a 96k voice.opus
ffmpeg -v error -i voice.wav -c:a libmp3lame -b:a 128k voice.mp3
ffmpeg -v error -i voice.wav -c:a libopus -b:a 96k -vbr off voice-cbr.opus
ffprobe -v error -select_streams a:0 -show_entries stream=codec_name,sample_rate,channels -of csv=p=0 voice.opus
ffprobe -v error -select_streams a:0 -show_entries stream=codec_name,sample_rate,channels -of csv=p=0 voice.mp3
Opus at 96 kbps, MP3 at 128 kbps, Opus at a constant 96 kbps, then the probes. Output and exit codes are in commands.log.
The Koldflux Convert WAV to MP3 page with the test file burst.wav loaded and a Download MP3 button under the file box.
The Koldflux WAV to MP3 converter after our test file was converted, as drawn by headless Chromium on our server.

How we checked, and what is missing

We ran ffmpeg 6.1.1 on Ubuntu, wrote every number to a log, and used controls: a 1 kHz tone through the same chain, the constant-bitrate Opus run, a 320 kbps MP3 and a 510 kbps Opus on the white noise. The gated source was 27 dB quieter in its off seconds, so it is not pure silence.

What is missing: a listening test, real speech or music, other encoders such as the Fraunhofer MP3 encoder, and any platform upload. The page makes no claim about those.

Do it in your browser

Free Koldflux tools, no account needed.

WAV to Opus (free, in your browser)WAV to MP3 (free, in your browser)

Questions people ask

Is Opus better than MP3?

In the runs, yes on size and on frequencies kept: Opus files were 12% to 35% smaller at the same -b:a on stereo noise (6% to 11% on a mono voice-like file) and held tones to 20 kHz where MP3 at 128 kbps stopped at 16 kHz. MP3 is better for support, since MDN lists it in every major browser. We did not run a listening test, so we make no claim about how either one sounds.

Why is my Opus file smaller at the same bitrate?

libopus uses variable bitrate by default and may spend less than the number you gave it. Our 128k Opus files came to about 84 to 88 kbps. Add -vbr off and the size tracks the setting: 241,945 bytes at 96k against 240,813 for MP3.

Which one should I use for a podcast?

Use MP3 for the file you give to hosting sites and listeners you cannot see, since it plays everywhere. Use Opus only where you control the player. We tested no podcast host, so check your host's accepted formats first.

Can I upload an Opus file to Instagram, TikTok or YouTube?

We did not test any platform, and we have no accounts. See the Opus platform compatibility guide linked on this page, and keep an MP3 as a fallback.

Why does ffprobe say 48000 Hz for my 16 kHz file?

In the edge test a 16 kHz mono WAV became an Opus file at 48000 Hz and an MP3 at 16000 Hz (a 96 kHz source became a 48000 Hz MP3). Opus lists sampling rates from 8 kHz to 48 kHz on opus-codec.org, and ffmpeg wrote the file at 48000 Hz.

How do I convert a WAV to Opus in the browser?

Open the Koldflux WAV to Opus converter, choose the WAV, press Convert to Opus and download the file. It runs on your device. On our test file it gave 130,120 bytes, the same size as ffmpeg with -compression_level 0 and smaller than the 155,368 bytes of the default 96k command; only sizes were compared, not file contents.

Related

More guides on this topic

Sources and how we checked

  1. MDN: Web audio codec guide (Opus and MP3 sections) (checked 2026-11-21)
  2. RFC 6716: Definition of the Opus Audio Codec (checked 2026-11-21)
  3. Opus Codec: overview, features and bitrate range (checked 2026-11-21)
  4. Koldflux WAV to Opus converter (our own tool, run November 21, 2026) (checked 2026-11-21)
  5. Koldflux WAV to MP3 converter (our own tool, run November 21, 2026) (checked 2026-11-21)
  6. Koldflux test log: sizes, probes, band levels (our measurement, November 21, 2026) (checked 2026-11-21)
  7. Koldflux tone log: nine tones through both codecs (our measurement, November 21, 2026) (checked 2026-11-21)
  8. Koldflux command log: every command on this page, run on a test file and an edge file (checked 2026-11-21)

We made two 20 second sources with ffmpeg 6.1.1 (white noise and gated pink noise), a 5 second 16 kHz mono edge file and nine 2 second sine tones, encoded them with libmp3lame and libopus, and recorded sizes, ffprobe fields, band levels and tone levels after decoding. Controls: a 1 kHz tone, a constant-bitrate Opus run, and 320 kbps MP3 and 510 kbps Opus on the white noise. The live Koldflux WAV to MP3 and WAV to Opus converters were driven in headless Chromium on the same files. Every shell command on this page was run as written on the test file and on the edge file (commands.log). Browser support, containers, licence and the 20 kHz limit come from MDN, opus-codec.org and RFC 6716, read November 21, 2026. We ran no listening test, no platform upload and no real speech or music.