Why Do This in Your Browser?
After loudness normalization the average level is right, but individual peaks can still spike past 0dB and clip on playback. The fix is a brickwall limiter: a fast compressor with an extremely high ratio (effectively infinite) and a ceiling parameter that the audio cannot cross. The limiter catches the brief peaks and pulls them back to the ceiling, leaving everything below untouched. The result is loud but never distorted.
Limit-after-normalize is the standard mastering chain for streaming and broadcast delivery. Spotify plays music at about -14 LUFS and asks for masters that peak no higher than -1 dBTP; Apple Music's Sound Check plays at about -16 LUFS with the same -1 dBTP guidance. Apply the normalizer first to set the average level, then apply the limiter to catch the peaks. FFmpeg's `alimiter` filter handles this — and it runs in the wasm build with no additional dependencies.
How It Works
Drop an audio file. Set the ceiling, the highest sample peak allowed: -1.0 dB is the usual streaming starting point, and -1.5 dB if you need the true peak at or under -1 dBTP. MP3, AAC and OGG output can rise a little during encoding, so keep that headroom for lossy files. Set the release time, how quickly the limiter recovers after a peak (5-50 ms typical; faster keeps transients, slower sounds smoother), and the lookahead, how far ahead the limiter looks so it can turn down a peak before it arrives (5 ms default). After limiting, the tool measures the result's true peak and loudness so you can check it against your target.
FFmpeg applies alimiter=limit=L:attack=A:release=R:asc=1:level=0:latency=1, where L is the ceiling converted to a linear level, A is the lookahead and R the release in milliseconds. `level=0` turns off alimiter's auto-level stage, which would otherwise raise the limited audio back to full scale and undo the ceiling; makeup gain is the normalizer's job. `latency=1` removes the lookahead delay so the output stays in sync with any video. `asc=1` adapts the release to the signal. Then a second pass with `ebur128=peak=true` measures true peak and integrated loudness. MP3, WAV, OGG, FLAC, M4A and AAC keep their format; anything else is saved as MP3.
Tip: For the loudness normalization that should precede limiting, use the Audio Normalizer first. After limiting, the Audio Compressor finishes the chain with codec/bitrate conversion for distribution.
Common Use Cases
What the ceiling does to the exported file, measured
The limiter runs FFmpeg's alimiter with your ceiling converted to a linear level, its auto-level stage switched off (otherwise it scales the result back up to full scale) and its latency compensated, so the output stays in sync. It holds the ceiling on the samples it writes; what happens after that depends on the output format. After every export the tool measures the file it produced with FFmpeg's ebur128 filter and shows the true peak, so you can see this for your own audio.
Measured on October 12, 2026 with FFmpeg 6.1: a 10-second stereo test track at 48 kHz (pink noise with bass hits, sample peak −0.1 dBFS, −17.0 LUFS), limited with the defaults (ceiling −1.0 dB, lookahead 5 ms, release 50 ms, auto-release on; turning auto-release off gave the same figures) and saved in each format the tool writes.
| Output | Sample peak (dBFS) | True peak (dBTP) | Loudness change (LU) |
|---|---|---|---|
| WAV (16-bit) | -1.0 | -0.9 | -0.2 |
| FLAC | -1.0 | -0.9 | -0.2 |
| M4A (AAC 192k) | -1.0 | -1.0 | -0.2 |
| MP3 (192k) | -1.2 | -1.2 | -0.5 |
| Ogg Vorbis (160k) | -0.8 | -0.7 | -0.2 |
Three things follow from this. The ceiling is exact on the samples (−1.0 dBFS in WAV and FLAC), but the waveform between samples can rise 0.1 dB higher, which is what true peak measures. Ogg Vorbis encoding pushed the true peak 0.3 dB above the ceiling; a −1.3 dB ceiling brought it to −1.2 dBTP. And taming peaks this way costs very little loudness here (0.2 LU), because the limiter only acts on the short transients; the 0.5 LU loss in MP3 comes from the encoder, not the limiter.
If you deliver to a platform with a true-peak limit (EBU R 128 sets −1 dBTP for broadcast), set the ceiling about 0.3 to 0.5 dB below that limit when exporting a lossy format, then confirm the measured figure the tool shows. Shortening the lookahead to 0.5 ms changed the results by at most 0.1 dB on this material.