You receive a FLAC file that your car stereo refuses to play. A client sends a WMA recording from an old laptop. A game engine wants OGG, a transcription service wants 16 kHz WAV, and your phone saved everything as M4A. Audio formats multiply quickly, and each one exists for a reason.
This guide explains the formats you are most likely to meet, the three numbers that decide quality and size (bitrate, sample rate and channels), and the one rule that prevents most conversion mistakes. It then shows how to convert in a browser, in Audacity and with ffmpeg.
Codec versus container
Two ideas are often mixed up:
- A codec is the method used to compress (or not compress) the sound: MP3, AAC, Vorbis, Opus, FLAC, PCM.
- A container is the file wrapper that holds the encoded audio plus metadata such as title, artist and cover art:
.m4a,.ogg,.wav,.mka.
An .m4a file is an MPEG-4 container that usually holds AAC, but can also hold Apple Lossless (ALAC). An .ogg file can hold Vorbis, Opus or FLAC. When a player says "unsupported format", the problem can be the codec, the container, or both.
Lossy and lossless
Lossless formats keep every sample exactly. WAV (and AIFF on Apple systems) usually stores raw PCM with no compression at all. FLAC and ALAC compress the same data the way a ZIP file does, typically to around half to two-thirds of the WAV size, and decode back to identical samples.
Lossy formats throw away information that a model of human hearing predicts you will not notice. MP3, AAC, Vorbis and Opus all work this way. At sensible bitrates the result is hard to tell from the original, and the files are five to ten times smaller than WAV.
The rule that follows: quality can only go down, never up. Converting a 128 kbps MP3 to FLAC or 320 kbps MP3 produces a larger file that sounds exactly like the 128 kbps MP3. Each lossy-to-lossy conversion (MP3 to AAC, AAC to MP3) adds a little new damage on top of the old, so convert from the best source you have and avoid round trips.
The formats at a glance
| Format | Type | Typical use | Notes |
|---|---|---|---|
| MP3 | Lossy | Sharing, older players, car stereos | Plays almost everywhere; 128-320 kbps |
| AAC / M4A | Lossy | iPhone, Android, streaming, video soundtracks | Usually better than MP3 at the same bitrate |
| OGG Vorbis | Lossy | Games, open-source software | Royalty-free; good quality at 128-192 kbps |
| Opus | Lossy | Voice calls, voice messages, web | Excellent at low bitrates; works at 48 kHz |
| WAV | Lossless (uncompressed) | Editing, recording, speech services | About 10 MB per minute for CD-quality stereo |
| FLAC | Lossless (compressed) | Archiving, music libraries | Smaller than WAV, identical sound |
| WMA, AMR | Lossy | Old Windows PCs, basic phones | Worth converting to something modern |
Bitrate, sample rate and channels
Bitrate (kbps) is how much data each second of audio uses. It controls both size and, for lossy formats, quality. File size is simple arithmetic:
size in MB ≈ bitrate (kbps) × duration (seconds) ÷ 8 ÷ 1000
A 4-minute track at 192 kbps is about 192 × 240 ÷ 8 ÷ 1000 ≈ 5.8 MB. For MP3, 128 kbps is fine for speech, 192 kbps is a safe default for music, and 320 kbps is the maximum the format allows. AAC and Vorbis reach similar quality a little lower; Opus sounds clear for speech at 32-64 kbps.
Sample rate is how many times per second the waveform is measured. 44.1 kHz (CD audio) and 48 kHz (video) are standard. A sample rate can represent frequencies up to half its value, so 44.1 kHz covers the whole range of human hearing. Lower rates such as 16 kHz are enough for speech recognition (for example before running a file through Speech to Text) and make files smaller, but cut off high frequencies.
Channels: stereo has two, mono has one. A voice recording from a single microphone gains nothing from being stereo, and mono halves the size of uncompressed audio.
Convert audio in your browser
The Audio Converter runs ffmpeg compiled to WebAssembly on your own device, so the file is not uploaded. It reads MP3, WAV, M4A/AAC, OGG, OPUS, FLAC, WMA, AMR, AIFF and the soundtrack of video files.
- Open the Audio Converter and drop a file on the box, or click to choose one. The tool shows its length and size.
- Under Output format, choose MP3, M4A (AAC), WAV, FLAC, OGG (Vorbis) or OPUS.
- For lossy formats, pick a Bitrate between 64 and 320 kbps. 192 kbps is marked as recommended.
- If needed, set Sample rate (keep original, 48, 44.1, 32, 22.05 or 16 kHz) and Channels (keep, stereo or mono).
- Click Convert to …. The first time, the engine (about 31 MB) downloads from a CDN and is cached for later.
- Listen to the result on the page, compare the before and after sizes, and click Download.
The result note tells you the source codec and sample rate, which is a quick way to find out what an unknown file really contains. Two limits to know: Opus output is always 48 kHz, because the encoder used only accepts that rate, and WMA and AMR can be read but not written. Very large files (hundreds of MB) may fail on phones because the whole file is held in browser memory.
If you only need MP3 from a WAV or an M4A, the dedicated WAV to MP3 and M4A to MP3 tools offer LAME VBR presets and a size estimate. To pull the sound out of a video, see how to extract audio from a video.
Other ways to convert audio
Audacity
Audacity is free for Windows, macOS and Linux. Open the file, then use File → Export and pick the format and quality. It is a good choice when you also want to edit, and it handles batch jobs through its macros feature. It decodes the audio and re-encodes it, so the lossy rule above still applies.
Operating system apps
On a Mac, the Music app can create MP3 or AAC versions of songs in your library once you choose the encoder in its import settings. On Windows, VLC's Media → Convert/Save dialog converts between common formats. Phones generally lack a built-in converter, which is where a browser tool is handy.
ffmpeg on the command line
ffmpeg is the engine behind most converters. Some reliable commands:
# Any audio to MP3 at 192 kbps
ffmpeg -i input.flac -c:a libmp3lame -b:a 192k output.mp3
# To AAC in an M4A container
ffmpeg -i input.wav -c:a aac -b:a 192k output.m4a
# To Opus (good for speech)
ffmpeg -i input.wav -c:a libopus -b:a 64k output.opus
# To lossless FLAC
ffmpeg -i input.wav -c:a flac output.flac
# 16 kHz mono WAV for a speech-to-text service
ffmpeg -i input.m4a -ar 16000 -ac 1 -c:a pcm_s16le output.wav
For folders of files, ffmpeg in a shell loop is the fastest method by far.
Tips and common problems
"My converted file is bigger but sounds the same"
That is expected when going from lossy to lossless or to a higher bitrate. The extra bits store the existing sound more precisely; they cannot recreate what was removed earlier.
Choosing a format for a specific destination
- Email or messaging to someone who might use any device: MP3.
- Adding music to an iPhone or an Android phone: M4A (AAC) or MP3.
- Editing in a DAW or video editor: WAV, then export your final mix to a lossy format.
- Long-term archive of CDs or masters: FLAC.
- Web page or game audio: Opus or OGG Vorbis, with MP3 as a fallback for older software.
The file has no audio track
The converter reports this when the file is empty, damaged or a video without sound. Try playing it in VLC first; if VLC shows no audio stream, there is nothing to convert.
Frequently asked questions
Which audio format has the best quality?
Lossless formats (WAV, FLAC, ALAC) preserve the source exactly, so they are the best possible copy. Among lossy formats, AAC and Opus usually sound better than MP3 at the same bitrate.
Is FLAC better than MP3?
FLAC is lossless and MP3 is lossy, so a FLAC made from the original recording is more accurate. A FLAC made from an MP3, however, sounds identical to that MP3.
What bitrate should I use for MP3?
Use 128 kbps for speech and podcasts, 192 kbps for general music, and 256-320 kbps when you want headroom for critical listening.
Does changing the sample rate improve sound?
No. Raising the sample rate cannot add detail that was never captured. Lowering it reduces size and removes high frequencies, which is fine for speech.
Can I convert audio without installing software?
Yes. A browser-based converter such as ours processes the file locally after downloading its engine once, so nothing needs installing and the audio is not uploaded.