Back to the audio guide

Command-line conversion guide

Convert MP3 to WAV with FFmpeg

Use FFmpeg when you need a repeatable command-line conversion. The command below decodes a local MP3 and writes 16-bit PCM audio in a WAV container. It does not recover detail removed during MP3 encoding.

The basic command

The basic command

Run this in a folder containing input.mp3, and choose a new output filename:

ffmpeg -i input.mp3 -c:a pcm_s16le output.wav

What the arguments do

Input

The -i option names the source MP3. Put quotation marks around file paths with spaces.

Audio encoder

The -c:a pcm_s16le option requests signed 16-bit little-endian PCM. The output is not an MP3 hidden behind a .wav extension.

Output

The .wav filename selects the WAV container. FFmpeg may ask before overwriting an existing file; this example deliberately omits the -y overwrite option.

Check the file instead of trusting the extension

Use ffprobe to read the first audio stream. Verify codec_name=pcm_s16le and inspect the reported rate and channel count for your file.

ffprobe -v error -select_streams a:0 -show_entries stream=codec_name,sample_rate,channels,bits_per_sample -of default=noprint_wrappers=1 output.wav

A reproducible example

On 2026-11-16, FFmpeg 8.0.1 converted a 1-second synthetic tone encoded as a 128 kb/s MP3 (17,179 bytes) to a 176,478-byte WAV. ffprobe reported pcm_s16le, 44,100 Hz, two channels and 16 bits per sample. This small test verifies the command and output settings, not perceived quality or every input file.

Limits and alternatives

A PCM WAV will often be larger than its MP3 source, and lost MP3 detail cannot be restored. If the file cannot be decoded, verify its codec or try another source. Convertidor offers a browser-based, no-install path for compatible local files, but its result still depends on browser decoding support.

Command references