Guide · Audio

MP3, OGG, WAV: when to convert or compress audio

By NREX Group · Published · Sources last checked: · 9 min read
Drafted with AI assistance and checked against the sources listed at the end.

Illustration on a navy background of a browser window: a dense waveform on the left, three arrows, and on the right a spectrum of bars that stops at a dashed line with a few faded bars beyond it.

Most audio questions come down to one choice made before any tool opens: what file do you hold, and what does the next step need? A WAV holds every sample. An MP3 or Ogg Vorbis file holds an approximation of them. Going from the first kind to the second is a planned loss; going from one approximation to another adds a second loss on top of the first. The six tools below differ mostly in which of those two moves they make.

The numbers come from generated test signals run through this site’s own encoders in Node and headless Chromium, with results saved next to the scripts. Nothing was played; every file was analysed offline. Generated signals are not music, so treat each table as the pattern rather than a promise for a particular track.

Start from the file you hold

Three situations cover most requests. You have a WAV or FLAC and want something small: encode once, to the format the destination accepts. You have an MP3 and the destination only takes Ogg: the conversion is possible, but you are recompressing. You have a recording that is too big only because it is uncompressed: lowering the sample rate or going to mono may be enough, and it needs no codec at all.

MDN’s codec guide puts the underlying rule in one line: if the audio will be recompressed, avoid lossy compression, since the loss compounds.[7] Keep the original when you have it, and treat every smaller copy as an output, not a new master.

Sizes you can work out before converting

A WAV file is a RIFF wrapper around linear PCM, most commonly,[5] so its size is a product: sample rate × bytes per sample × channels × seconds, plus a 44-byte header in the files WAV Compressor writes. A constant-bitrate MP3 is kilobits per second × 125 × seconds. A 240-second track was generated and run through the site’s encoders to check both formulas:

A 240-second track, formula against bytes measured with the site’s encoders. WAV is 16-bit.
OutputFormulaMeasured bytesShare of stereo WAV
WAV, stereo, 44,100 Hz44 + 240 × 44,100 × 2 × 242,336,044100%
WAV, mono, 44,100 Hz44 + 240 × 44,100 × 1 × 221,168,04450%
WAV, mono, 22,050 Hz44 + 240 × 22,050 × 1 × 210,584,04425%
WAV, mono, 11,025 Hz44 + 240 × 11,025 × 1 × 25,292,04412.5%
MP3, 128 kbps stereo128 × 125 × 2403,840,6269.1%
MP3, 192 kbps stereo192 × 125 × 2405,760,94013.6%
MP3, 320 kbps stereo320 × 125 × 2409,601,56722.7%

The WAV rows matched the formula to the byte. The MP3 rows ran 626 to 1,567 bytes above it, about 0.02% to 0.04%, which is encoder framing. The Library of Congress puts a 128 kbit/s MP3 at about 1/11 of CD-quality LPCM;[6] the measured 9.1% is the same ratio, since CD audio runs at about 1,411 kbps. For the Ogg route, the encoder’s default is quality 3, which Xiph puts at approximately 110 kbps;[1] on 20 seconds of white noise it wrote 280,824 bytes, 112.3 kbps.

Those formulas also say which lever to pull. MP3 Compressor lowers the bitrate, so the size scales with it. MP3 Converter writes a fixed 128 kbps MP3 from other audio, so the saving is the WAV-to-MP3 ratio in the table. The WAV Compressor halves the size per step of channels or sample rate and stays uncompressed.

What a bitrate takes away

Lower bitrates cut the top of the spectrum first. To see where, 20 seconds of white noise, which has equal energy at every frequency, was encoded by the site’s MP3 and Ogg encoders, decoded, and averaged into an FFT. The cutoff is the highest 500 Hz band within 20 dB of the level between 1 and 5 kHz.

Where white noise stops after encoding. Cutoff is rounded to 500 Hz; the last column is the 18–20 kHz band against the 1–5 kHz level.
EncoderCutoff18–20 kHz level
MP3 96 kbps (written at 32 kHz)about 15 kHz−76 dB
MP3 128 kbpsabout 17 kHz−86 dB
MP3 192 kbpsabout 19 kHz−5 dB
MP3 320 kbpsabout 20.5 kHz0 dB
Ogg Vorbis, default qualityabout 17.5 kHz−82 dB

The stereo 96 kbps file was written at 32,000 Hz, so its ceiling is the 16 kHz that rate allows. White noise is a harsh test: real music carries little energy up there, which is why a 128 kbps file can sound close to a 320 kbps one. What the table does show is that bitrate is not only a size knob. A 128 kbps MP3 and the default Ogg removed similar bandwidth in this test, at similar rates.

Converting lossy to lossy

MP3 to OGG decodes the MP3 to samples and encodes them again. Xiph’s FAQ calls converting from one lossy format to another generally a bad idea, because each codec throws away different parts of the waveform.[1] To put a number on it, two 30-second test tracks were encoded three ways and each result compared with the original, sample by sample, as a signal-to-noise ratio in decibels. Higher is closer. This is a waveform measure, not a listening test, and perceptual codecs deliberately do not chase the waveform.

Waveform SNR against the original, left channel, after aligning encoder delay (MP3 128 kbps, Ogg at default quality).
PathTonal trackDense track
Original → MP3 128 kbps20.3 dB13.5 dB
Original → Ogg30.6 dB13.0 dB
Original → MP3 128 kbps → Ogg20.1 dB11.5 dB

On the tonal track the second step cost 0.2 dB; on the dense track it cost 2.0 dB, probably because the Ogg encoder had to spend bits on the MP3’s coding noise as if it were signal. The Ogg made from the MP3 was no closer to the original than the MP3 itself. Different content gives different numbers, so read the table as direction rather than size. The practical rule follows: encode Ogg from the WAV or FLAC when you have it, and use MP3 to Ogg when the MP3 is all that is left.

One side effect to expect: the MP3 decode added a delay of 576 samples, about 13 ms at 44,100 Hz, that the alignment step had to remove. Ogg showed none. A player normally hides this, but a loop cut from a converted file can drift.

FLAC: smaller, but only sometimes by much

FLAC is lossless: it stores the samples in less space and returns them unchanged. RFC 9639 allows 1 to 8 channels, sample rates up to 1,048,575 Hz and bit depths from 4 to 32.[4] MDN says lossless compression is unlikely to give more than 40 to 50%.[7] A 60-second stereo clip was written as 16-bit WAV (10,584,044 bytes) and encoded with macOS’s FLAC encoder:

60-second stereo clips, WAV against FLAC (macOS afconvert encoder).
ClipFLAC bytesShare of WAVSamples after round trip
Tonal (chords with overtones)4,822,05445.6%identical
White noise9,689,42691.5%identical

A tonal, predictable signal shrank by more than half, and noise barely moved, since noise has little structure to exploit. Both decoded to exactly the original samples. That makes FLAC the format to archive and edit from, and FLAC to MP3 the step to take at the end, once, for a player or a size limit. Its 192 kbps default made a 1,440,705-byte MP3 from either clip, which shows the output size depends on the bitrate and the length, not on the source.

Cutting audio: where the cut lands

Audio Cutter copies a range of samples, so a cut can start in the middle of a wave. If the first sample is far from zero, the sound jumps from silence to that value, and a jump contains energy at many frequencies. A 440 Hz sine at amplitude 0.5 was cut into a one-second clip with the tool’s own slicing code, twice: starting on a zero crossing and starting near a crest. The measure is the energy above 2 kHz in a 1,024-sample window at the cut, against the tone’s own level.

High-frequency energy at the start of a one-second clip cut from a 440 Hz sine.
Cut startsFirst sampleEnergy above 2 kHz
At a zero crossing0.0000−32.1 dB
Near a peak0.5000−14.4 dB

The crest start was 17.7 dB louder in the high band. After MP3 encoding at the cutter’s 128 kbps the figures were −32.1 dB and −13.9 dB, so the encoder did not smooth it. Away from the cut the same band sat below −96 dB. The click is small for a sine and depends on what the music is doing at that instant, but it is why editors offer fades and why cutting at a quiet moment helps. The cutter’s output is an MP3 at a fixed 128 kbps, so a cut from a WAV is also a lossy encode; for a clean sample-exact cut, an editor that writes WAV is the alternative.

Choosing, in short

  • Archive or edit later: keep WAV or FLAC. FLAC is the smaller of the two and returns identical samples.
  • Share or play anywhere: MP3 at 128 to 192 kbps. Above that the size often grows faster than the bandwidth shown in the table.
  • A game engine or app that asks for Ogg: encode from the original; use MP3 to OGG only when nothing better exists.
  • Uncompressed but too big: try mono or a lower sample rate in the WAV Compressor before adding a lossy step. Speech needs less bandwidth than music.
  • Trimming: cut, then check the start and end for a click.

If the same question is about pictures or PDFs, see JPG, PNG, WebP, HEIC and SVG or PDFs without uploading.

Questions

Is an .ogg file always Ogg Vorbis?

RFC 5334 says .ogg is meant for Ogg files that hold only a Vorbis stream and .oga is the general extension for Ogg audio. In practice other codecs are sometimes stored in .ogg files, so a player reads the file to tell them apart.[3]

Why does a player show 112 kbps for an Ogg file whose real rate moves around?

The Vorbis header carries a nominal bitrate that the specification calls a hint, and it may be considerably off in a purely variable-bitrate stream. The encoder here measured about 112 kbps on 20 seconds of white noise, but music and silence will average differently.[2]

Will converting a WAV to FLAC change the sound?

FLAC is lossless, so decoding gives back the same samples. In the test below, a 60-second 16-bit clip came back identical after a FLAC round trip. The size saving depends on the content: 54% on the tonal clip and 8.5% on white noise.[4, 7]

Can I convert an MP3 to WAV to get the quality back?

No. A WAV made from an MP3 is a larger file holding the same decoded sound, and the detail the MP3 encoder removed is not restored. It is useful as an input for an editor, not as an upgrade.[5, 6]

Which is smaller for the same job, mono or a lower sample rate?

On an uncompressed WAV, each halves the size: mono halves the channels, and 22,050 Hz instead of 44,100 Hz halves the samples. A sample rate can only represent frequencies below half its value, so 22,050 Hz removes content above about 11 kHz. Mono removes the left-right difference. Which matters less depends on the recording.[5]

Why do two 128 kbps MP3 files from different programs sound different?

The bitrate fixes how many bytes the file gets, not how the encoder spends them. Encoders differ in their low-pass filter and in what they discard, so the same bitrate can keep different bandwidth.

Sources

Every link below was opened and checked on November 14, 2026. The sizes, spectra, SNR and cut measurements were made for this guide with the site’s own encoders; the scripts and raw output are kept with the guide’s working notes.

  1. Xiph.Org, Vorbis FAQ. Quality 3 as the default setting at approximately 110 kbps, and the statement that converting from one lossy format to another is generally a bad idea. Accessed November 14, 2026.
  2. Vorbis I specification (Xiph.Org). The three bitrate fields in the identification header are hints, and the nominal one may be considerably off in a purely variable-bitrate stream. Accessed November 14, 2026.
  3. RFC 5334, Ogg Media Types. The .ogg extension for Ogg files that contain only a Vorbis bitstream, and .oga as the general audio extension. Accessed November 14, 2026.
  4. RFC 9639, Free Lossless Audio Codec (FLAC). FLAC as a lossless format, and its range of 1 to 8 channels, sample rates from 1 to 1048575 hertz and bit depths from 4 to 32 bits. Accessed November 14, 2026.
  5. Library of Congress, WAVE Audio File Format (format description). WAVE as a wrapper that can hold an audio bitstream, most commonly linear PCM, and its place as a subtype of RIFF. Accessed November 14, 2026.
  6. Library of Congress, MP3 (MPEG Layer III Audio Encoding). A 128 kbit/s MP3 as about 1/11 the size of uncompressed CD-quality LPCM. Accessed November 14, 2026.
  7. MDN, Web audio codec guide. Typical savings of lossless (unlikely beyond 40 to 50%) and lossy (up to 80 to 95%) compression, and the advice to avoid lossy compression when audio will be recompressed. Accessed November 14, 2026.