FFmpeg Cookbook
JA

Audio Converter

Convert audio files between MP3, AAC (M4A), OGG Opus, WAV and FLAC. Everything runs in your browser; nothing is uploaded.

Your file is not uploaded
Drag & drop an audio file, or tap to select
MP3 / WAV / M4A / AAC / FLAC / OGG / Opus, up to 200 MB
—
—
Lossy (MP3 / AAC / Opus) shrinks the file using a bitrate you pick — 192 kbps is transparent for most music. Lossless (WAV / FLAC) preserves the exact audio; the bitrate selector is ignored. Re-encoding a lossy file to a higher bitrate does not restore quality.
Converting… 0%

Equivalent FFmpeg command

CLI command for your current settings. Updates live as you change controls.

ffmpeg -i input.mp3 -vn -c:a libmp3lame -b:a 192k output.mp3

How to use

  1. Drop an audio fileDrag and drop an audio file, or tap to choose one (up to 200 MB).
  2. Choose the output formatMP3 to play anywhere, AAC (M4A) for Apple devices, OGG Opus for a small file, FLAC or WAV to keep the quality.
  3. Pick a bitrate (lossy only)If unsure, keep the default 192 kbps. Use 128 kbps for a smaller file, or 256 or 320 kbps to favor quality.
  4. Convert and downloadPress Convert, play the result, then download it.

Recommended settings

Music for everyday listening
MP3 192 kbps
Plays on almost any device. 192 kbps is the default here.
Smallest file at decent quality
OGG Opus 128 kbps
At low bitrates, Opus keeps quality better than MP3 or AAC.
Apple devices / iMovie
AAC (M4A) 256 kbps
Works as is on Apple devices and in their editing apps.
Editing master / archival
FLAC
Keeps the quality and is smaller than WAV.

When it goes wrong

Converting MP3 → WAV/FLAC did not improve the quality

Cause: Sound lost in the first lossy encode does not come back. Converting to a lossless format only makes the file bigger.

Fix: For better quality, convert again from the original lossless file or the highest-bitrate copy you have.

The output sounds the same but the file is much bigger

Cause: You chose a bitrate above the source, or converted lossy to lossless.

Fix: Use the same bitrate as the source or lower; going higher does not improve the sound.

A very large file is slow or runs out of memory

Cause: Everything runs in the browser tab, so memory is limited.

Fix: The tool reads files up to 200 MB. Cut long recordings down to the part you need first.

Questions

Is my audio uploaded anywhere?

No. Conversion runs in your browser with ffmpeg.wasm, and nothing is sent to a server.

Which format should I choose?

MP3 for the widest compatibility, AAC (M4A) for Apple devices, OGG Opus for a small file, and FLAC or WAV when you need to keep the quality (for example, for editing).

Does converting to a higher bitrate improve quality?

No. Sound that a lossy encode threw away does not come back, and a higher bitrate only makes the file larger. Start from the best-quality source you have.

What is the difference between WAV and FLAC?

Neither loses quality. WAV is uncompressed and large; this tool writes it as 16-bit, so a 24-bit source becomes 16-bit. FLAC compresses the same sound into a smaller file and keeps a 24-bit source at 24 bits. Use FLAC unless something specifically needs WAV.

Why is the bitrate selector greyed out?

WAV and FLAC do not use a bitrate setting, so the selector is disabled when you pick them.

Can it convert the audio inside a video file?

No, this tool takes audio files only. To pull the audio out of a video, use the Audio Extractor.

More detail (settings, limits, FFmpeg commands)

What each setting means

Output format
The format to write. MP3 (libmp3lame) and AAC play on almost any device. Opus keeps quality well at low bitrates. WAV is uncompressed, and this tool writes it as 16-bit. FLAC compresses without losing quality and is smaller than WAV.
Bitrate
How much data a lossy format uses per second (kbps). Higher means better quality and a larger file. Not used for WAV or FLAC.

Browsers and limits

  • Runs in the browser, so it reads files up to 200 MB. Smaller files can still fail if memory runs out.
  • Audio files only. Use the Audio Extractor to pull audio out of a video.

The same job with the FFmpeg command line

WAV → MP3 192 kbps
ffmpeg -i input.wav -vn -c:a libmp3lame -b:a 192k output.mp3
Any → AAC (M4A) 256 kbps
ffmpeg -i input.flac -vn -c:a aac -b:a 256k output.m4a
Any → OGG Opus 128 kbps
ffmpeg -i input.mp3 -vn -c:a libopus -b:a 128k output.ogg
Any → FLAC (lossless)
ffmpeg -i input.wav -vn -c:a flac output.flac