Trim Video
Published Updated
Set a start and end time in 0.1 second steps and save just that part of an MP4 or WebM video.
Trimming means recording the range again
This tool does not slice the file. It jumps the video to your start time, plays it at normal speed, draws the playing video on a canvas at the original width and height, and stops when the playback position reaches the end time. The new file is an MP4 where your browser can record H.264, otherwise a WebM, and its name ends in -trimmed.
Because the end is checked once per screen refresh, the last frame can land a frame early or late, and further off in some browsers, as the measurements below show. Do not rely on it for cuts that must land on an exact frame.
A worked example
Cut a clip from 0:42.3 to 1:07.8 out of a 40-minute lecture.
| Item | Value |
|---|---|
| Kept range | 25.5 seconds (67.8 minus 42.3) |
| Processing time | About 25.5 seconds, not 40 minutes |
| Frames recorded | Up to 765 at 30 fps (25.5 x 30) |
| Source frame rate | Any. Above 30 fps, frames are dropped |
| Output file name | lecture-trimmed.mp4 (or .webm) |
What to check before you rely on it
Keep the tab open and in front while it runs, since most browsers pause the animation callbacks that draw each frame in background tabs. There is no cancel button. Sound is recorded only where the browser lets the page capture the playing video's audio (the page skips Firefox), and the note under the preview says when there is none. The recording is made through the MediaRecorder API, so the container you get depends on what your browser can write.
Where each cut starts and ends, frame by frame
We made test clips in which every frame shows its own number as a block code, cut them with this page's own tool in Google Chrome 156, Chromium 153 (Playwright build, not Google Chrome), Firefox 155 and Playwright's WebKit build (not the Safari app), and read every frame of each result back. The range was 2.0 to 5.0 seconds of a 10-second 640 x 360 clip at 30 frames per second, which holds source frames 60 to 149.
| Engine | File written | First frame | Last frame | Plays for | Source frames in the file |
|---|---|---|---|---|---|
| Chrome 156 | MP4, H.264 | 60 | 148 | 2.998 s | 89 of 90 |
| Chromium 153 | MP4, H.264 | 60 | 148 | 2.976 s | 70 of 90 |
| Firefox 155 | WebM, VP8 | 60 | 150 | 3.055 s | 77 of 90 |
| WebKit build | MP4, H.264 | black for 0.08 s, then 60 | 142 | 3.180 s | 77 of 90 |
Across all seven cuts we made per engine, Chrome 156, Chromium 153 and Firefox 155 always started on the exact frame at the start time. Chrome 156 and Chromium 153 ended up to one frame early, and Firefox 155 up to one frame late. The WebKit build opened every cut with 0.05 to 1.1 seconds of black frames and ended up to seven frames early, so its files ran up to 1.13 seconds longer than the selection. Fewer than 90 source frames means some were skipped and the frame before stayed on screen longer; Chromium 153 kept only 60 of 90 at 1920 x 1080.
Long files, 60 fps sources, file sizes and sound
The same test clips, one run per cell. Time runs from pressing Trim Video to the download link.
| Test | Chrome 156 | Chromium 153 | Firefox 155 | WebKit build |
|---|---|---|---|---|
| 10 s cut from 5:00 to 5:10 of a 10-minute clip: time | 10.0 s | 10.0 s | 10.1 s | 10.2 s |
| Same cut: source frames in the file, of 300 | 299 | 263 | 255 | 268 |
| Same cut: keyframes, seconds into the file | 0, 3.4, 6.7 | 0, 3.4, 6.8 | 0, 7.3 | 0, 2.0, 4.0, 6.0, 8.1 |
| 3 s cut of a 60 fps clip: source frames kept, of 180 | 90 | 90 | 77 | 89 |
| 3 s cut at 640 x 360 / 1280 x 720 / 1920 x 1080 | 44,772 / 67,916 / 129,389 B | 34,878 / 85,903 / 106,920 B | 37,327 / 77,107 / 167,829 B | 28,449 / 57,820 / 128,319 B |
| Sound of a clip with a 440 Hz tone | kept: 440 Hz, level within 1% | kept: 440 Hz, level within 1% | no sound track | no sound track (run with a silent track only) |
Processing time follows the length of the cut, not of the file, because the tool jumps straight to the start. Keyframes are the frames a player can jump to directly; the WebKit build placed one every 2 seconds, Firefox 155 one about every 7 to 8 seconds. The test picture is a flat grey frame with a moving bar, which compresses far better than camera footage, so the sizes compare engines and frame sizes, not what your own clip will weigh.
How to trim a video
Step 1
Add an MP4 or WebM
Pick the video. The sliders and the two time boxes cover its whole length, from 0:00 to the end.
Step 2
Set the start and the end
Drag the handles or type seconds in 0.1 steps. A selection must be at least 0.2 seconds long.
Step 3
Trim, preview, download
Press Trim Video. The chosen range is recorded at normal speed, then you can play it and download it.
When another tool fits better
Trim Video is built for short cuts from a clip you already have. Pick something else when:
- You need an exact frame or a lossless copy. A desktop editor that copies the stream does this without re-encoding.
- You want to frame the picture as well. Use Crop Video afterwards, or Rotate Video if it was filmed sideways.
- The file must fit an upload limit. Compress Video to Size aims at a target in megabytes.
- You want to drop quiet stretches instead of cutting by hand. Remove Silence from Video does that.
Trimming questions
How long does trimming take?
As long as the part you keep. The browser plays the range at normal speed while it records, so a 25-second cut takes about 25 seconds. The total length of the original does not matter, because the tool jumps straight to your start time.
Is the result a lossless cut?
No. The picture is decoded, drawn on a canvas and encoded again by your browser, so a small amount of quality is lost and the bitrate is the browser's default, not the original's. A lossless cut needs a desktop tool that copies the stream without re-encoding.
What happens to a 60 fps video?
The recorder is capped at 30 frames per second. A 60 fps source keeps about half of its frames or fewer (77 to 90 of 180 in the four engines of the 60 fps test above), while the resolution stays the same.
Can I remove a section from the middle?
Not in one pass. The tool keeps one range. Trim the part before the cut and the part after it as two files, then join them with Merge Video Clips.
Why can I not select less than 0.2 seconds?
The page does not let a selection get shorter than 0.2 seconds, and the sliders and time boxes move in 0.1 second steps.
Does the trimmed clip have sound?
When the browser lets the page capture it, yes: the sound of the chosen range is recorded with the picture. The page takes it from the playing video's own audio capture where the browser offers one and skips Firefox; a browser without it writes a silent file, and the note under the preview says so. In a test with a 440 Hz tone, Chrome 156 and Chromium 153 kept it at the same level, while Firefox 155 wrote a file without a sound track; the WebKit build, run only on a clip with a silent track, wrote none either.
Will the cut start on the exact frame I chose?
In Chrome 156, Chromium 153 and Firefox 155, yes: the first frame of every test cut was the frame shown at the start time, read back from a clip whose frames carry their own numbers. The WebKit build opened each cut with 0.05 to 1.1 seconds of black frames before that frame. The end of a cut is less exact; the table above has the numbers.
Does cutting from the middle of a long video take longer?
No. The tool jumps to your start time, so only the length of the cut counts. A 10-second cut from 5:00 to 5:10 of a 10-minute test clip took 10.0 seconds in Chrome 156 and 10.2 seconds in the WebKit build.
Why is my trimmed clip a WebM file without sound?
That is what Firefox writes. In Firefox 155 the result was a WebM file with VP8 video and no sound track, even from a clip with sound, and the page showed its no-sound note. Chrome 156 wrote an MP4 file that kept the sound of the same clip.
Related guide
Trim, crop and caption a video in the browser. The guide measures how close a trim lands: a 1.0 to 3.0 second range read back as 2.10 to 2.34 seconds in three engines, and why trimming first shortens every later step.