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. When converting WAV to MP3 from 44.1 kHz/16-bit stereo PCM, a 192 kbps MP3 has roughly one seventh as much audio data. MP3 is lossy. Choose VBR or CBR and adjust the bitrate, channels and sample rate to balance quality and size.
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… 192 kbps CBR at 32, 44.1 or 48 kHz. Lower sample rates have different supported bitrates.- The output keeps the source’s channel count and sample rate unless you change them, if MP3 supports them. 5.1 becomes stereo, and 96 kHz becomes 48 kHz.
192 kbps CBR targets high quality and predictable file size, and plays on MP3-capable devices.
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 is a rough guide. Average bitrate and file size depend on the source audio.
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 | High-quality compression of typical music |
| CBR (constant) | -b:a 128k, 192k, 320k |
Same bitrate throughout | Strict compatibility, predictable size |
VBR (-q:a) is an efficient choice for high-quality compression of typical music. It suits playback copies of your music library. Keep archival originals in a lossless format such as WAV or FLAC. 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 | Targets high quality | 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.
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 source sample rate is kept if libmp3lame supports it. Supported rates are 8, 11.025, 12, 16, 22.05, 24, 32, 44.1 and 48 kHz. Other rates are converted to a supported rate; 96 kHz becomes 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. Use -ar 44100 when the playback device requires 44.1 kHz. CBR file size mainly depends on bitrate and duration. Lower the bitrate to reduce file size. For low-bitrate speech, -ar 22050 is also an option. 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 | Targets high quality |
| MP3 192k | Lossy | ~5.5 MB | Targets high quality |
| 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). On Linux, availability depends on the distributor and build, so use a package with libmp3lame enabled. 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 input peaks are near or above 0 dBFS. Integer PCM has a ceiling of 0 dBFS. Floating-point PCM can hold values above 0 dBFS. MP3 can have higher peaks after decoding. Peaks still above 0 dBFS clip when output as integer PCM.
Fix: Normalize with peak headroom or lower the gain before encoding, for example with -af "volume=-1dB". −1 dB is not always enough, so check the peaks after conversion.
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 to reduce file size.
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. 192k CBR and VBR -q:a 2 target high quality. You may hear differences depending on the source audio and listening conditions. Keep the WAV as your archival master.
Q2. VBR or CBR for converting my music library?
A. VBR (-q:a 2) is an efficient choice for high-quality compression of typical music. Use CBR 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.