Audio Declicker
Operator: Abdulla Al Fahad. How tools are built and checked
A click is a handful of samples that do not belong to the sound around them: a speck of dust on a record, a dropout on tape, a mouth noise, a digital glitch. Because the samples before and after are fine, the damaged ones can be replaced by values the surrounding audio predicts, and nothing else needs to be touched. This page finds each click by how badly a model of the audio fails to predict it, replaces only those samples, and shows every repair on the waveform.
Key features
- Two modes: clicks and pops up to 6 ms long, or crackle, many ticks of up to 1.2 ms with a lower threshold
- A sensitivity slider that shows the threshold it sets, in robust standard deviations of the prediction error
- Before and after waveforms with every repair marked, a table of each click's time, length and size, and a before or after listen around any click
- Repair runs off the page's thread and reports its percentage; Cancel stops it at once, and the repaired audio exports as WAV or MP3
How clicks are detected and filled in
The file may be up to 6 minutes of audio or a video with sound; its length is read from the header before anything is decoded, and a longer file is refused with the length shown. The audio is repaired at the file's own sample rate and channel count, each channel on its own, so a click on the left leaves the right untouched.
Clicks within the first and last few dozen samples of a file cannot be repaired, because the model needs known audio on both sides. A disturbance longer than the limit for the mode is left alone and counted, since a long gap is better filled by hand than guessed.
The export panel writes 16-bit WAV, or MP3 at the bit rate you choose. MP3 needs one of its own sample rates (8 to 48 kHz); a file at another rate must be saved as WAV.
How it works
The audio is cut into blocks of 2,048 samples. For each block a linear predictor of order 32 (order 20 below 32 kHz, and 20 for crackle) is fitted to the audio from 1,024 samples before to 1,024 after, using a Hann window and the Levinson-Durbin recursion. The prediction error of every sample is computed, and its robust spread is 1.4826 times the median absolute error.
Samples whose error is larger than the threshold times that spread are flagged, and flags within 6 samples of each other (3 for crackle) form one disturbance. The default 50% sensitivity is a threshold of 6.25 for clicks and 4.2 for crackle; 0% is 9 and 6, 100% is 3.5 and 2.4.
Each disturbance is repaired on its own. A fresh model is fitted to up to 1,024 clean samples either side of it, leaving the gap out. The gap starts at three samples, and the page replaces it with the values that minimise the model's total prediction error across it (least-squares interpolation, solved by a banded Cholesky factorisation). If the repaired signal still predicts badly, the gap grows by an eighth and the repair is redone, so a one-sample tick is not repaired as a 30-sample hole.
Three passes run, each refitting on the repaired audio, so a click that a bigger one was masking is found on the second pass. Repairs on the same channel within 48 samples of each other are counted as one click.
Common use cases
- A 20-minute vinyl side captured as a WAV: run crackle mode on 5-minute pieces, listen to a drum hit before and after, and lower the sensitivity if the hi-hat loses its edge.
- A podcast interview with a handful of mouth clicks: clicks mode at 50% marks them on the waveform, and the list shows each as a few milliseconds long.
How to use this tool
- Drop the recording and wait for the waveform.
- Choose Clicks and pops for isolated damage, or Crackle for the dense ticking of a worn record.
- Leave the sensitivity at 50% and press Find and repair; cancel at any point if it is taking long.
- Look at the red marks on the before waveform, click one, and press Hear before and Hear after.
- If clicks remain, raise the sensitivity and run again; if real transients were changed, lower it. Then export.
- Choose WAV or MP3 in the export panel and save.
Example
Illustrative: a clean 3-second recording at 44.1 kHz with five clicks of 1, 5, 40, 2 and 12 samples added to it
Clicks and pops, sensitivity 50% (threshold 6.25), three passesHow far the audio around each click is from the clean original (RMS over about 2 ms), before and after repair
1-sample tick: 0.600 before, 0.0022 after.
5-sample burst: 0.332 before, 0.0046 after.
2-sample tick: 0.583 before, 0.0022 after.
12-sample burst: 0.979 before, 0.0059 after.
40-sample ringing click: 1.879 before, 0.319 after, so it is mostly but not fully repaired.
Samples outside the repaired gaps: unchanged.Common pitfalls
Crackle mode is aggressive. Its threshold sits near 4 robust standard deviations, where even undamaged audio throws up some large prediction errors, so a few samples are rewritten that were never clicks. Use it on a recording that really is crackly, and treat a very high repair count on clean music as a sign the threshold has reached the sound itself.
Sharp musical transients, such as a rim shot or a plucked string, also surprise a predictor. At high sensitivity they can be flagged and softened; the table shows how many repairs there were, which is a warning when it is high.
A repair is an interpolation, not the lost sound. For a 5 ms gap in loud, noisy music the new samples are plausible, not identical to the original.
Steady hiss and mains hum are not clicks, so this page leaves them alone; Audio Noise Reducer and Remove Hum from Audio on this site are the pages for those.
- Repair first: after noise reduction or compression a click has been smeared and is no longer a short event with clean audio on both sides.
- Raise the sensitivity in steps of 10 to 15 points and watch the count: a jump of hundreds for one small step means the threshold has reached the signal's own detail.
Common errors and how to fix them
- "song.wav" is 9 minutes long; this tool takes up to 6 minutes
- Cut the file into parts of under 6 minutes first; each part is repaired on its own.
- The repair worker could not start
- Your browser may block module workers. Try a current Chrome, Edge, Firefox or Safari.
- Nothing crossed the threshold
- Raise the sensitivity. If the clicks are longer than 6 ms, they are beyond the repair limit and counted as too long, not repaired.
- Too long, left: 12
- Those disturbances were longer than the repair limit for the mode. Edit them by hand in an editor, or cut them out.
Best practices
- Declick the lossless capture and export WAV, then make the MP3 from that file. Repairing a file that is already lossy and encoding it again costs a second generation of loss.
- Read the Size column of the click table and audition the largest repairs first: a big change on a drum hit or a plucked string is the repair most likely to be audible, and the one to undo by lowering the sensitivity.
What the click count says about the recording
The page reports the total and the clicks per minute. A steady rate across the whole file points to the surface of a record or the condition of a tape. A burst of clicks in one stretch points to a single event, such as a scratch or a dropout, and is worth listening to on its own.
When you raise the sensitivity a step, watch what the count does. If it rises a little each time, you are still finding damage. If it jumps by hundreds for one step, the threshold has dropped into the music's own detail, and the previous setting was the better one.
Frequently asked questions
What happens to a deep scratch that makes a thump?
A thump lasts longer than the repair limit, which is 6 ms in clicks mode and 1.2 ms in crackle mode. It is counted under Too long, left, and not changed, because filling a long gap from a model would invent the music rather than repair it.
Why does it show fewer clicks than the red marks?
Repairs within 48 samples of each other count as one click, and the markers are thinned to 1,500 on a very long file so the picture stays readable. The count uses the full list; the table below it shows the first 200.