WAV files are usually uncompressed and large: a few minutes of stereo audio can easily take tens of megabytes. That suits editing masters, but not sharing, streaming or storing on a phone. Converting WAV to MP3 at 192 kbps makes the file roughly one seventh of its size, and it still sounds excellent.
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… a constant 192 kbps. Most listeners cannot hear a difference from the WAV- The output keeps the source’s channels and sample rate unless you change them, up to what MP3 can hold: 5.1 becomes stereo, and 96 kHz becomes 48 kHz
192 kbps CBR is a safe default. The file size is predictable, and the MP3 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 (about 190 kbps on average). It usually gives a slightly smaller file 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 |
Uses more bits on 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 quality for the size. It is the usual modern choice for archiving your own music. Use CBR (-b:a) when a podcast host, a hardware player or an upload spec requires a fixed, known bitrate.
On the VBR scale, a lower number means 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 | Most listeners hear no difference | 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. As a 192 kbps MP3 it is roughly 5–6 MB, about a 7:1 reduction, and most people hear no difference.
4. Mono vs. Stereo
If your WAV is a voice recording in stereo, mix it down to mono to make the file smaller (a mono WAV already gives a mono MP3):
ffmpeg -i input.wav -c:a libmp3lame -q:a 5 -ac 1 output.mp3
-ac 1… mix down to one channel (mono)
For music, keep stereo (-ac 2). Converting stereo music to mono loses the left/right separation, and you cannot undo it. Use mono only when the source really is single-channel (speech, a single instrument and so on).
5. Setting the Sample Rate
By default, the MP3 keeps the source sample rate. MP3 cannot store more than 48 kHz, so higher rates such as 96 kHz become 48 kHz. To convert 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
Some WAVs use other rates, such as 48 kHz from video tools or 96 kHz from recording gear. Converting to 44.1 kHz gives the best compatibility with old players. For speech, you can go down to -ar 22050 to save a little more space. For music, stay at 44.1 kHz or higher.
6. Why MP3 Is Smaller (and the Trade-off)
A typical WAV stores every sample uncompressed (PCM), so its size is set by sample rate × bit depth × channels × duration. MP3 is a lossy codec. It uses a model of human hearing to discard the sounds you are least likely to notice, then compresses what remains.
| Format | Compression | 4-min stereo size (approx.) | Quality |
|---|---|---|---|
| WAV (PCM) | None | ~40 MB | Lossless |
| MP3 320k | Lossy | ~9 MB | Almost indistinguishable |
| MP3 192k | Lossy | ~5.5 MB | Most hear no difference |
| MP3 128k | Lossy | ~3.7 MB | Good |
You can never get the discarded data back. Do not use MP3 as your editing master: keep the WAV for editing, and export MP3 for distribution.
7. Troubleshooting
Error 1: Unknown encoder 'libmp3lame'
Cause: Your FFmpeg build lacks LAME.
Fix: Install a full build (on Windows, for example the gyan.dev full build linked from ffmpeg.org’s download page; most Linux packages also include it). Write -c:a libmp3lame explicitly. -c:a mp3 is only an alias for the MP3 encoder your build has (libmp3lame on a typical build). It is not a separate, lower-quality encoder.
Error 2: The MP3 sounds distorted
Cause: The WAV was already close to 0 dBFS (the highest level digital audio can hold), or it is a 32-bit float WAV with peaks above 0 dBFS. MP3 encoding can push peaks slightly higher, and anything above 0 dBFS clips on playback.
Fix: Normalize it, or lower the gain a little before encoding, for example with -af "volume=-1dB".
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 really is mono, the MP3 will be mono too; there is no real stereo to recover.
Error 4: File is larger than expected
Cause: You used 320k CBR.
Fix: Use VBR -q:a 2 or -b:a 192k for a smaller file at almost the same quality.
Error 5: Player won’t recognize the sample rate
Cause: The player cannot play the MP3’s sample rate. MP3 cannot store more than 48 kHz, so a 96 kHz WAV becomes a 48 kHz MP3.
Fix: Resample to the common 44.1 kHz with -ar 44100.
FAQ
Q1. Does WAV to MP3 lose quality?
A. Yes. MP3 is lossy by design. At 192k CBR or VBR -q:a 2, almost no one can hear the loss. Keep the WAV as your archival master.
Q2. VBR or CBR for converting my music library?
A. VBR (-q:a 2) gives the best quality for the size. 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 the highest MP3 quality, 96k–128k for speech. VBR -q:a 2 is a good all-round choice.
Q4. Should I convert stereo music to mono to save space? A. No. You would lose the stereo image for good. Use mono only for sources that really are single-channel, such as voice.
Q5. Can I go back to WAV from the MP3? A. You can decode the MP3 to WAV, but the discarded audio does not come back, so the original quality is not restored. Always keep the original WAV.
Q6. My WAV is 24-bit. Is that a problem? A. No. FFmpeg handles 16-, 24- and 32-bit WAV automatically. MP3 does not store a bit depth, so the audio is encoded to MP3 in the usual way.