WAV files are uncompressed and huge — a few minutes of stereo audio can easily run to tens of megabytes. That’s great for editing masters, but terrible for sharing, streaming, or fitting on a phone. Converting WAV to MP3 shrinks the file by roughly 90% while keeping the audio sounding excellent. This guide shows the core FFmpeg command, how to choose between VBR and CBR, and how to balance quality against size with bitrate, channel, and sample-rate settings.
Tested with: FFmpeg 8.1
What You’ll Learn
- The one command that turns WAV into MP3
- VBR (
-q:a) vs. CBR (-b:a): which to choose - A bitrate / quality cheat sheet
- Controlling mono vs. stereo
- Setting the sample rate correctly
- Why MP3 is smaller (and what you trade for it)
- Troubleshooting
- FAQ
1. The One Command
This is the standard, high-quality conversion:
ffmpeg -i input.wav -c:a libmp3lame -b:a 192k output.mp3
-c:a libmp3lame… encode with LAME, the standard high-quality MP3 encoder-b:a 192k… constant 192 kbps — transparent for most listeners- The output keeps the source’s channels and sample rate unless you change them
192 kbps CBR is a safe, predictable default that sounds great and plays everywhere.
Prefer variable bitrate (smaller files)?
ffmpeg -i input.wav -c:a libmp3lame -q:a 2 output.mp3
-q:a 2 is VBR quality level 2 (~190 kbps average) — usually a touch smaller than 192k CBR at the same perceived quality.
2. VBR vs. CBR — Which Should You Use?
| Mode | Option | Behavior | Best for |
|---|---|---|---|
| VBR (variable) | -q:a 0 to 9 | Allocates bits to complex passages | Best quality-per-MB; general use |
| CBR (constant) | -b:a 128k, 192k, 320k | Same bitrate throughout | Strict compatibility, predictable size |
VBR (-q:a) gives the best size-to-quality ratio and is the modern recommendation for archiving your own music. CBR (-b:a) is the right pick when something downstream — a podcast host, a hardware player, an upload spec — requires a fixed, known bitrate.
The VBR scale runs backwards — lower numbers are higher quality:
-q:a value | Approx. average bitrate | Quality |
|---|---|---|
| 0 | ~245 kbps | Highest VBR quality |
| 2 | ~190 kbps | Excellent (recommended) |
| 4 | ~165 kbps | Very good |
| 6 | ~115 kbps | Good, smaller files |
3. Bitrate / Quality Cheat Sheet
For CBR (-b:a):
| Bitrate | Quality | Good for |
|---|---|---|
| 320k | Maximum MP3 quality | Music you want to keep at top quality |
| 192k | Transparent for most listeners | General music |
| 128k | Good | Casual music, demos |
| 96k | Acceptable | Voice, audiobooks |
| 64k | Low | Long speech, very tight storage |
A 4-minute stereo WAV at 44.1 kHz/16-bit is about 40 MB. At 192 kbps MP3 it drops to roughly 5–6 MB — about a 7:1 reduction — with no audible difference for most people.
4. Mono vs. Stereo
If your WAV is a voice recording or a mono source, force mono output to halve the size:
ffmpeg -i input.wav -c:a libmp3lame -q:a 5 -ac 1 output.mp3
-ac 1… downmix to a single (mono) channel
Keep stereo (-ac 2) for music — converting stereo music to mono throws away the left/right separation and can’t be undone. Only use mono when the source is genuinely single-channel (spoken word, a single instrument, etc.).
5. Setting the Sample Rate
MP3 preserves the source sample rate by default. To standardize to the common 44.1 kHz (CD quality):
ffmpeg -i input.wav -c:a libmp3lame -b:a 192k -ar 44100 output.mp3
-ar 44100… resample to 44.1 kHz
Why bother? Some WAVs come in at unusual rates (e.g., 48 kHz from video tools or 96 kHz from recording gear). Standardizing to 44.1 kHz maximizes compatibility with old players. For speech, you can drop to -ar 22050 to save a little more space, but for music stay at 44.1 kHz or higher.
6. Why MP3 Is Smaller (and the Trade-off)
WAV stores every sample uncompressed (PCM), so its size is fixed by sample rate × bit depth × channels × duration. MP3 is a lossy codec: it discards audio information that the human ear is least likely to notice (a perceptual model), then compresses what remains.
| Format | Compression | 4-min stereo size (approx.) | Quality |
|---|---|---|---|
| WAV (PCM) | None | ~40 MB | Lossless |
| MP3 320k | Lossy | ~9 MB | Near-transparent |
| MP3 192k | Lossy | ~5.5 MB | Transparent for most |
| MP3 128k | Lossy | ~3.7 MB | Good |
The trade-off: you can never recover the discarded data, so don’t use MP3 as your editing master — keep the WAV for that, and export MP3 for distribution.
7. Troubleshooting
Error 1: Unknown encoder 'libmp3lame'
Cause: Your FFmpeg build lacks LAME.
Fix: Install a full build (official Windows builds and most Linux packages include it). Specifying -c:a libmp3lame explicitly is recommended. Note that -c:a mp3 is just an alias that maps to the available MP3 encoder — on a typical build that is libmp3lame — so it isn’t a separate, lower-quality encoder.
Error 2: The MP3 sounds quieter or distorted
Cause: The WAV may be 24-bit or 32-bit float and clipped during conversion, or it was already near 0 dBFS.
Fix: Normalize or apply a small gain reduction, e.g. -af "volume=-1dB" before encoding.
Error 3: Output is mono when you wanted stereo
Cause: You added -ac 1, or the source WAV is mono.
Fix: Remove -ac 1. If the source is truly mono, MP3 will be mono; there’s no real stereo to recover.
Error 4: File is larger than expected
Cause: You used 320k CBR.
Fix: Use -q:a 2 VBR or -b:a 192k for a smaller file at near-identical quality.
Error 5: Player won’t recognize the sample rate
Cause: An unusual source rate like 96 kHz.
Fix: Resample to a standard rate with -ar 44100.
FAQ
Q1. Does WAV to MP3 lose quality?
A. Yes — MP3 is lossy by design. At 192k CBR or -q:a 2 VBR, the loss is inaudible to almost everyone. For archival masters, keep the WAV.
Q2. VBR or CBR for converting my music library?
A. VBR (-q:a 2) gives the best quality-to-size ratio. Use CBR only when a service or device requires a fixed bitrate.
Q3. What bitrate should I use?
A. 192k for general music, 320k if you want maximum MP3 quality, 96k–128k for speech. VBR -q:a 2 is an excellent all-rounder.
Q4. Should I convert stereo music to mono to save space? A. No — you’d lose the stereo image permanently. Only use mono for genuinely single-channel sources like voice.
Q5. Can I go back to WAV from the MP3? A. You can decode the MP3 to WAV, but the discarded audio data is gone for good — it won’t restore the original quality. Always keep the original WAV.
Q6. My WAV is 24-bit. Is that a problem? A. No. FFmpeg handles 16/24/32-bit WAV automatically; MP3 doesn’t carry bit depth, so it’s simply re-encoded to the MP3 format.
Related Articles
Tested with FFmpeg 8.1 — verified with our command-check script Primary sources: ffmpeg.org/ffmpeg.html / ffmpeg.org/ffmpeg-codecs.html