Why Do This in Your Browser?
Every podcast recording starts with a few seconds of silence while the host hits record and settles in. Every one ends with a similar tail. In a clean session those bookends are obvious; in a multi-segment edit they multiply and the manual trim work compounds. And inside the recording itself, awkward pauses, breaths, and dead-air gaps each cost a second or two — across a 30-minute episode that's minutes of wasted attention.
The fix is automated silence detection: an algorithm scans the waveform, identifies regions where amplitude stays below a threshold for a minimum duration, and removes (or shortens) those regions. FFmpeg's `silenceremove` filter does exactly this, and it runs in the wasm build with no extra dependencies. This tool exposes the two parameters that matter — threshold (how quiet counts as silence) and minimum duration (how long the gap has to be) — and applies the filter in two modes: end-trim only, or aggressive mid-clip gap compression.
How It Works
Drop an audio file. Pick a mode, a threshold and a minimum silence length. Choose Leading and trailing only to keep every pause inside the recording, or Compress mid-clip gaps to shorten long pauses to the length you set in Pause to keep. Adjust the threshold in dBFS — -40dB is a good default for podcasts, -50dB for quieter content. Set the minimum silence duration that should be removed — 500ms is standard for natural-sounding edits.
The tool works in two passes. First FFmpeg’s silencedetect filter lists every stretch below your threshold that lasts at least the minimum length. The tool then works out which time ranges to keep: in trim-only mode everything between the end of the leading silence and the start of the trailing silence; in gaps mode the same, minus each inner pause longer than Pause to keep, which is cut down to that length (half kept on each side). Finally FFmpeg keeps exactly those ranges with aselect and re-times the audio so there are no holes. Until October 12, 2026 the tool used a single silenceremove chain whose settings removed inner pauses in both modes.
Tip: For manual frame-accurate trimming rather than auto-detection, use the Audio Trimmer. After cleaning silence, run the result through the Audio Normalizer for distribution-ready loudness.
Common Use Cases
Worked example: what each mode removed from a test file
On October 12, 2026 we ran the tool itself in Chromium (FFmpeg.wasm) on an 8-second test file: 1 s of silence, a 1 s tone, a 2 s pause, a 1 s tone, a 0.3 s pause, a 0.7 s tone and 2 s of silence at the end. Settings were the defaults: −40 dB, 0.5 s minimum. Re-run after the October 12 fix; before it, both modes gave about 3.0 s because both deleted the 2 s pause.
| Part of the file | Input | Leading and trailing only | Mid-clip gaps, keep 0.3 s | Mid-clip gaps, keep 0 s |
|---|---|---|---|---|
| Leading silence | 1.00 s | Removed | Removed | Removed |
| Tones (sound) | 1.00 + 1.00 + 0.70 s | Kept in full | Kept in full | Kept in full |
| 2 s pause in the middle | 2.00 s | Kept (2.00 s) | Shortened to about 0.3 s | Removed |
| 0.3 s pause (shorter than the minimum) | 0.30 s | Kept | Kept | Kept |
| Trailing silence | 2.00 s | Removed | Removed | Removed |
| Total length | 8.00 s | 5.02 s | 3.34 s | 3.02 s |
- Trim-only mode leaves the middle alone. Only silence touching the start and the end is removed; every pause inside the recording, however long, stays exactly as it was.
- Choose how much pause to keep. Cutting a pause to nothing butts speech together like a jump cut. Gaps mode keeps 0.3 s of each long pause by default (set 0 to remove pauses completely); pauses shorter than the minimum are never touched.
- Sound itself was not trimmed. All three tones came through at full length, so the threshold isn't eating into quiet starts at these settings. With noisy recordings, set the threshold a few dB above the room noise, or nothing will count as silence.
Sources
Checked on .