Audio compression, explained by ear

A compressor is a volume control moved by the signal itself. When the level is above the threshold, the gain drops: ratio and knee decide by how much, attack and release decide how fast. The peaks come closer to the average level, and makeup gain uses this free headroom to raise the whole signal, so quiet details become louder compared to the peaks.

Playground

Compressed by0.0 dB
Loading the sound…
InputOutputThresholdOver 0 dBFS
Transfer curve
Threshold−30 dB
Attack5 ms
Release150 ms
Knee10 dB
Makeup Gain+13.5 dB
Editor presets

Threshold

The level in dBFS where gain reduction starts. The number only makes sense for a given recording: −20 dB is heavy compression on a mastered mix, and almost nothing on a quiet room recording.

Threshold−30 dB
The body is compressed, not just the peaks
  • −3 to −10 dB — only the peaks
  • −15 to −25 dB — usual for voice and for the mix bus
  • −30 dB and lower — the whole signal is compressed, not only the peaks

Set it by the meter, not by the number: 3 to 6 dB of gain reduction on the loudest parts usually sounds transparent.

The math
in ≤ T → out = in in > T → out < in
Levels in dBFS, 20·log₁₀|x|: −6 dB is half the amplitude, −20 dB a tenth.

Ratio

How much the level above the threshold is reduced. At 4:1, a signal 8 dB over the threshold leaves only 2 dB over it: 6 dB of gain reduction. Above about 10:1 the curve is almost flat, and the compressor works as a limiter. 20:1 is the maximum here.

Ratio6:1
Heavy, clearly audible
  • 1.5:1 to 2:1 — glue on a mix, the dynamics stay
  • 3:1 to 5:1 — firm control for voice
  • 6:1 to 10:1 — heavy, clearly audible
  • 20:1 — limiting

Threshold and ratio work as a pair. A low threshold with a low ratio changes everything a little, and the sound becomes denser. A high threshold with a high ratio leaves most of the signal alone and stops only the peaks: control without density.

The math
out = T + (in − T) / R g = (in − T) · (1/R − 1)
g is the gain change. At 4:1, 8 dB over the threshold: g = 8 · (¼ − 1) = −6 dB.

Attack

How fast gain reduction grows after the level passes the threshold.

Attack5 ms
Transients pass, punch

Attack decides what happens to transients. A fast attack catches them: the sound becomes smoother, but also softer and further away in the mix. A slower attack lets the transient pass before the gain drops, so the start of each hit is louder compared to the rest. This is how a compressor adds punch. On bass, a very fast attack can change the gain inside a single wave cycle, and you hear it as distortion.

  • 0 to 3 ms — transients caught, flat and dull
  • 5 to 30 ms — transients pass, punch on drums and consonants
  • 50 ms and more — only long sounds are compressed
The math
g ← g + (target − g) · (1 − e^(−Δt/τ)) τ = attack while target < g
A one-pole smoother on the gain, target being the gain the curve asks for. The Web Audio spec defines attack as the time to reduce the gain by 10 dB.

Release

How fast the gain returns to normal after the level falls below the threshold.

Release150 ms
Natural for voice and most music

Too fast, and the gain follows the waveform: you hear pumping, breathing and distortion in the low end. Too slow, and the gain never returns between hits, so the compressor stays at the same reduction and works as a simple volume cut. In between, the gain follows the phrase or the groove, and you stop hearing it move.

  • 20 to 80 ms — fast, you hear the gain move
  • 100 to 300 ms — natural for voice and most music
  • 500 ms and more — slow, keeps the overall level even rather than shaping each hit

Match it to the material: the meter should return close to zero just before the next hit or phrase.

The math
τ = release while target > g target = 0 dB once in ≤ T
The same smoother in the other direction. The browser also adapts the release to how deep the reduction is.

Knee

How gradually the ratio grows from 1:1 to its full value. With a hard knee (0 dB), the full ratio starts right at the threshold. With a soft knee, it grows across the knee width, shown as the shaded band on the transfer curve.

Knee10 dB
Soft knee, hard to hear it start
  • 0 dB (hard knee) — exact, for peaks and limiting
  • 10 to 30 dB (soft knee) — you hardly hear it start, for voice and full mixes

Here the knee starts at the threshold, not around it. So a wider knee also means less gain reduction overall. Lower the threshold to compensate.

The math
in < T slope 1 T ≤ in ≤ T + W slope 1 → 1/R in > T + W slope 1/R
W is the knee width. Here the knee starts at T; in many plugins it is centred on T, from T − W/2 to T + W/2.

Makeup gain

A fixed gain after the compressor. Gain reduction lowers the peaks, and makeup gain uses that headroom to raise the whole signal. The result: quiet parts are louder than in the original.

Makeup Gain+13.5 dB
Raises the whole signal

Match loudness before you judge: in any A/B, the louder version wins. This is why the reference values in the other sections set makeup gain so the output is as loud as the input, by RMS. Red bars mean the output is over 0 dBFS and the peak guard is soft-clipping it.

The math
out′ = out + M M ≈ RMS(in) − RMS(out)
In amplitude, a factor of 10^(M/20). The second line is the loudness match the examples here use.

When to use compression

Speech level changes with emphasis and with distance to the mic. A moderate ratio, a soft knee and a release about one syllable long keep it steady for listening in the car or on earbuds. Start with Podcast or Vocal.

On a full mix, a low ratio with 1 to 3 dB of gain reduction makes the sound denser. On drums, a slower attack lets the hit pass and raises the sound between hits. Mastered tracks are already compressed, so start with Gentle.

Over an hour of speech, the level drifts from one session or chapter to the next. A low ratio with slow attack and release corrects this drift and keeps the delivery alive.

Phone speakers have little headroom and no bass. Heavy compression with makeup gain raises the average level at the same peak, so an alert is heard over street noise without the speaker distorting.

A voice with a small dynamic range can stay at one level above the music, so quiet words are not masked.

Common mistakes

A very low threshold with a very high ratio removes almost all dynamic range. The sound becomes flat and tiring. Raise the threshold or lower the ratio until the music breathes again.

Deep gain reduction with a fast release ducks everything on each hit, and the level swells again between hits. On drum rooms and in EDM it is often wanted. If not, use a longer release or less gain reduction.

A 0 ms attack catches the start of every hit. Try 10 to 30 ms, so the transient passes before gain reduction grows.

This example hardly compresses: it catches only the highest peaks and adds 6 dB of makeup gain. It still seems better, because at a higher level we hear more bass and treble. Match loudness before you decide anything.

Makeup gain raises the pauses between words as much as the words. Remove noise first, and keep gain reduction moderate. In the editor, the filter comes before the compressor, so a high-pass filter also keeps rumble away from the detector.

Too much makeup gain pushes peaks over 0 dBFS. The peak guard soft-clips them, so the download sounds the same as playback and does not hard-clip, but it is still distortion. If the bars turn red, use less makeup gain.

How to compress audio on audiocutter.online

  1. Open your file in the editor. It is processed in the browser and never uploaded.
  2. Open Effects → Compression, or press P.
  3. Pick a preset or enter your own values.
  4. Press Apply. To bypass it, press Disable in the same dialog.
  5. Download the file. The compression is part of it.

Compression applies to the whole project. The source file never changes.

Questions

What is the difference between compression and normalization?

Normalization is one fixed gain change that brings the peak to a target level. The dynamic range stays the same. Compression changes the gain over time and makes the dynamic range smaller. In the editor, Normalize measures the signal before the compressor, so with compression on, set the final level with makeup gain.

What is the difference between a compressor and a limiter?

A limiter is a compressor with a very high ratio, a fast attack and a high threshold. It stops peaks, but does not shape the dynamics. The Limiter preset is 20:1 at −6 dB with a hard knee. It is not a true-peak limiter, so leave some headroom for MP3 and other lossy formats.

Does compression make the file smaller?

No. This compression changes level, not data. File size depends on the format and bitrate you download.

In what order should I set the controls?

Start with a high ratio, around 10:1, so the effect is easy to hear. Lower the threshold until the meter shows reduction on the parts you want to control. Set attack for the transients and release for the recovery while the effect is still exaggerated. Then lower the ratio until it stops sounding processed. Match loudness with makeup gain last, and judge with the A/B.

You can find the other guides here.