The details that matter when you trim a video locally in your browser are the source container and its decodable codec, the file size ceiling, the decoded duration and resolution ceilings, the exact start and end time boundaries you enter, the minimum clip length, and the output format expectations that follow from a real-time browser re-encode. Getting these details right is what separates a usable WebM clip from a failed run, a silent file, or an output whose timeline surprises your player. The Video Trimmer ties all of these details together in one local pass: you pick a file, the tool decodes it in your tab, you wait for the duration to populate, you enter bounded start and end seconds with milliseconds, and it writes a new WebM whose Segment Info carries the duration you actually requested. None of the source bytes leave your machine, the codec is selected from what your browser can encode, and the dimensions of the original are preserved while the quality, keyframes, color metadata, and audio layout are not.

The Source File: Container, Size, and Codec
Five container formats are accepted: MP4, WebM, MOV, M4V, and Ogg. The file itself can be up to 500 MiB on disk. Container recognition is necessary but not sufficient — the browser must be able to decode the codecs inside the container, which is why a familiar extension is not a guarantee of success. A file whose filename ends in .mp4 but whose video track uses a codec your browser does not decode will not populate a duration and cannot be trimmed. Before entering times, wait for the duration field to fill in; that population is the browser telling you it could decode the media. The Cancel control also stays available so you can stop a long run if a wrong file was selected.
| Accepted container | Maximum file size | Decoding requirement |
|---|---|---|
| MP4, WebM, MOV, M4V, Ogg | 500 MiB | Browser must decode the inner codecs (filename alone is not enough) |
Time Range Boundaries and Decimal Input
Start and end times are written as seconds, with milliseconds allowed as the decimal portion. Three rules determine whether a range is valid: the start must be zero or greater, the end must be later than the start, and the end must be no later than the decoded duration. The selected clip must also be at least 0.1 seconds long. Reversed or out-of-bounds ranges are rejected visibly rather than clamped or guessed, so a single misplaced decimal is the most common reason a trim fails to start. If your source shows a duration of 312.5 seconds, an entry like start 5, end 310 is fine, but start 300 end 320 will not run because the end exceeds the source. The same applies if you reverse the pair — start 310, end 5 — because the end is not later than the start.
Decoded Duration and Resolution Limits
Even when the file loads, three decoded limits can still block the trim. The decoded source must be no longer than five minutes, no wider or taller than 4096 pixels on either axis, and no greater than 3840 × 2160 pixels in total area. A large 4K file that fits the byte limit can still fail to trim if the browser's decoded frame is too wide or too tall. These limits come from the media element and the recorder, not from the file format, which is why two files of the same size can behave differently when one is 8K and the other is 1080p. Eight independent range fixtures inside the tool cover zero-based, middle, fractional, tail, and five-minute boundaries, so the validation logic is exercised against realistic edge cases rather than just simple splits.
| Decoded limit | Threshold |
|---|---|
| Decoded duration | ≤ 5 minutes |
| Width or height | ≤ 4096 pixels per axis |
| Total resolution | ≤ 3840 × 2160 pixels |
| File size on disk | ≤ 500 MiB |
Output Format, Quality, and Frame Accuracy
The output is always a WebM file. The codec is selected from the browser's supported VP9, VP8, and optional Opus combinations, and the dimensions of the source are preserved. What is not preserved is the rest of the media shape: quality, keyframe placement, color metadata, audio channel layout, and final file size can all differ from the source. Trimming is performed by seeking the media element to the requested start, capturing the browser-exposed media stream, and recording until the requested end — a real-time re-encode, not packet-level lossless cutting. Because the MediaRecorder API samples playback time during recording rather than exposing frame-level seek points, the last encoded frame can land a small fraction around the requested boundary. If you need frame-accurate cuts for broadcast or keyframe-aligned edits, that is the detail most worth checking against your expectations, and the WebM Segment Info is patched with the selected duration so compatible players report a finite timeline rather than the full source length.
How to Trim a Video Locally Step by Step
- Open the Video Trimmer in a current desktop browser and choose one supported local video — MP4, WebM, MOV, M4V, or Ogg, up to 500 MiB.
- Wait for the duration field to populate. If it stays empty, the browser cannot decode the inner codecs even if the extension is on the accepted list.
- Enter the start and end times as decimal seconds (milliseconds allowed), keeping the start at or above zero, the end later than the start, the end inside the decoded duration, and the resulting clip at least 0.1 seconds long.
- Select Trim video. The UI reports the requested clip duration and the output size once recording completes, and an empty output is rejected rather than offered as a download.
- Download the resulting WebM file. The clip's Segment Info stores the selected duration so compatible players report a finite timeline, and the file is delivered through a revocable Object URL.
What to Check After the Download
Two outputs deserve a quick verification before you treat the clip as final. First, open the WebM in a player that reads Matroska Segment Info and confirm the timeline matches the duration you requested; the tool patches that field so players report a finite length, but a third-party converter that rewraps the file can reset it. Second, scrub the very end of the clip in your player and confirm the boundary lands close enough to your target — given the playback-capture re-encode, a sub-second drift at the tail is the detail most likely to surprise you on long clips. For a fuller verification routine that covers scrubbing, re-mux behavior, and timeline integrity, the post-trim result check walks through each step in more depth.
When a Supported Extension Still Fails
This is the detail that catches most first-time users: container recognition is not codec support. A .mov file can wrap codecs a particular browser cannot decode, an .mp4 can use an audio track that fails to record, and an .ogg can contain a video codec the browser has never shipped. The trim tool does not bypass DRM, fetch remote media, remove watermarks, preserve every metadata field, or promise professional frame accuracy. If your file fails to load or the recorder produces an empty stream, the most useful detail to check is whether the browser's built-in media pipeline supports the codecs inside the container — not whether the filename looks correct. Subtitle tracks, multiple audio channels, and embedded chapter markers are also not carried through to the WebM, which matters if your source relies on them.
Use only video you own or have explicit permission to edit. For broadcast delivery, exact keyframe cuts, subtitle preservation, multitrack audio, source footage longer than five minutes, or a required MP4 codec rather than WebM, the detail that matters is that this is a convenient local trimmer, not a replacement for a dedicated desktop editor that can inspect the exported timeline frame by frame. When you need a re-encoded clip with smaller size, a precise crop, an audio-only export, a frame grab, or a different aspect, the surrounding video tools in this category handle each of those jobs against the same local-browser model.
For a deeper look, see Best Way to Trim Video: A Practical Method Comparison.