Remove Silence from Video
Published Updated
Cut silent stretches from an MP4, MOV or WebM using a threshold from -60 to -10 dB and a shortest gap of 200 to 2000 ms. The kept parts are played back and recorded again at 30 frames per second, so processing takes as long as the result.
Real-time re-recording
For every range to keep, the page seeks the video to the start, plays it, copies each frame onto a canvas and stops at the end of the range. The canvas stream is recorded together with the audio. Because it works by playback, nothing runs faster than real time, and the time left is about the length of what is kept.
MDN's captureStream page describes the canvas stream used here, with a frame rate you can set. This page sets 30.
Recording test in Google Chrome 156
A busy animated canvas recorded for 4 seconds with a MediaRecorder set up like the page's, minus the audio track:
| Frame size | Type | Size | Rate | Wall time |
|---|---|---|---|---|
| 1280 x 720 | video/mp4;codecs=avc1 | 1.24 MB | 2.5 Mbps | 4.02 s |
| 1920 x 1080 | video/mp4;codecs=avc1 | 1.53 MB | 3.1 Mbps | 4.00 s |
Real footage compresses differently, so treat the rates as a guide.
What each browser wrote
Measured with the page's own code in Google Chrome 157, Firefox 155 and Playwright's WebKit build (not the Safari app), on clips recorded in a browser with MediaRecorder: 640 × 360, 3.2 seconds, a 440 Hz tone for 1.0 second, 1.2 seconds of silence, then the tone for 1.0 second, with a millisecond clock drawn in the picture. At the default -35 dB and 700 ms the page reported the same line in every run that finished: Cut 1 gap, 0.9 s removed, 0:02 remaining. Each cell gives the output type, then the length of its audio and of its video.
Chrome 157 and the WebKit build reported all five types the page tries as recordable and wrote MP4 (H.264). Firefox 155 reported only WebM with VP8 and Opus, and plain WebM, and wrote WebM. The files were named clip-no-silence.mp4 or clip-no-silence.webm to match.
| Input clip | Chrome 157 | Firefox 155 | The WebKit build |
|---|---|---|---|
| MP4 recorded in Chrome 157 | MP4: 2.08 s / 2.21 s | No file: a message after 0.1 s | MP4: 6.12 s / 6.12 s |
| MP4 recorded in the WebKit build | MP4: 2.14 s / 2.25 s | WebM: 2.35 s / 2.37 s | MP4: 3.26 s / 3.26 s |
| WebM recorded in Chrome 157 | MP4: 2.20 s / 2.26 s | No file: a message after 31 s | MP4: 2.37 s / 2.37 s |
| WebM recorded in Firefox 155 | At 0% after 40 s before the 1 December 2026 fix; a message after 3 s in Google Chrome 158 after it | WebM: 2.39 s / 2.40 s | MP4: 2.45 s / 2.45 s |
In every run that finished, the clock in the output advanced to between 0.95 and 1.25 seconds of the source and then resumed between 2.0 and 2.25 seconds, so the cut fell inside the silence, which ran from 1.0 to 2.2 seconds. The exception was on MP4 input: the WebKit build repeated one picture for part of the output, clock 1081 in the 6.12 second file and 2149 in the 3.26 second one. The WebM inputs that finished showed no repeats.
The sound goes into a MediaStreamAudioDestinationNode, which the Web Audio standard describes as an audio destination representing a MediaStream, and the page does not connect it to the speakers. The type of the recording comes from the recorder's mimeType option, which the MediaStream Recording draft says specifies the media type and container format for the recording.
Time and length with nothing cut
The same MP4 clip recorded in Chrome 157 (3.2 seconds), with the minimum gap at 2000 ms so that nothing is cut, took about as long as the clip to record in each browser.
| Browser | Output | Length: audio / video | Size shown | Wall time |
|---|---|---|---|---|
| Chrome 157 | MP4 | 2.98 s / 3.05 s | 135.3 KB | 3.16 s |
| Firefox 155 | WebM | 3.13 s / 3.14 s | 122.1 KB | 3.26 s |
| The WebKit build | MP4 | 3.60 s / 3.60 s | 83.4 KB | 3.93 s |
Removing silence from a clip
Step 1
Add the video
MP4, MOV or WebM. The audio track is decoded separately to find the quiet parts, and a file with no readable audio track is refused.
Step 2
Set the threshold and minimum gap
The preview line shows how many seconds and gaps would be cut. Defaults are -35 dB and 700 ms, with 120 ms kept at each end of a cut.
Step 3
Start and keep the tab in front
Progress is shown while the kept parts are recorded. The result is named after your file plus -no-silence, as MP4 or WebM.
Related tools
- The whole soundtrack is decoded into memory before any cutting, so a very long video needs room for that as well as for the recording.
- Nothing is stitched at the cut points: each kept range is played into the same recording one after another.
- For the sound alone, Remove Silence from Audio writes an MP3 and is much quicker.
- To trim by time instead, Trim Video cuts by start and end.
Video silence questions
Why does processing last as long as the result?
The page cannot cut a file directly. It plays each kept part into a canvas and records that again with MediaRecorder. In a Chrome 156 test, 4 seconds of video took 4.0 seconds to record. A 10-minute result needs about 10 minutes.
Why should the tab stay visible?
Frames are drawn from a requestAnimationFrame loop, and MDN says those calls are paused in most browsers in background tabs. A hidden tab can stall or skip the recording.
Is the picture quality the same as the original?
No. It is a new encode at 30 frames per second, at the browser's default bitrate. A busy animated 720p test came out near 2.5 Mbps and a 1080p one near 3.1 Mbps. Footage with a higher frame rate is reduced.
Which format will I get?
MP4 with H.264 if the browser can record it, otherwise WebM. Chrome 156 reported support for all five types the page tries, so it wrote MP4.
Does it cut by picture or by sound?
By sound only. A silent but visually busy stretch is cut, and a loud one is kept. The louder of the stereo channels decides each 30 ms window.
Is the video uploaded?
No. It is decoded, drawn and recorded in the page.
What happens with a WebM recorded in another browser?
In the test a WebM recorded in Firefox 155 stayed at 0% in Chrome 157 for 40 seconds, and a WebM recorded in Chrome 157 stopped at 51% in Firefox 155. Since the 1 December 2026 fix the page ends such a run with a message and no file, after about 3 seconds in Chrome 158 and about 31 seconds in Firefox 155. Both files finished in the browser that recorded them and in the WebKit build.
Which format will I get in Firefox or the WebKit build?
Firefox 155 reported only WebM with VP8 and Opus, and plain WebM, as recordable, so it wrote WebM. The WebKit build reported all five types and wrote MP4 with H.264, as Chrome 157 did. The file name ends in .webm or .mp4 to match.
Why is the result longer than the part I kept?
The page reported 0.9 seconds removed from a 3.2 second clip, which leaves about 2.3 seconds. WebM inputs came out between 2.20 and 2.45 seconds in the browsers where they finished. In the WebKit build two MP4 inputs gave 3.26 and 6.12 seconds, with one picture repeated for part of the output.
Why does the size line show 0:03 for a WebM recorded in a browser?
Chrome 157 reports an infinite length for such a file until its end has been read, so the page uses the length of the decoded audio, which was 0:03 for the 3.2 second test file.