LocalExcelTool
Get started

Video Trimmer

Cut a specific section out of a video and save it as MP4.

Runs in your browserNo account neededFree up to 100 MB

What is Video Trimmer

The Video Trimmer cuts the section you select out of a video and saves it as a new MP4. Because the selected range is re-encoded with WebCodecs, it cuts at any timestamp — not snapped to keyframes. Nothing is uploaded; everything runs in your browser (up to 200 MB / 15 minutes).

File

No file chosen

… up to 100 MB · up to 3:00

🔒 Everything runs in your browser. Nothing is uploaded.

What this tool actually does with your file

Where it runs
In your browser, on this page
Upload
None — the file never leaves your device
Size limit
100 MB free, 200 MB with Pro
Duration limit
180s free, 15 min with Pro
Offline
Works with the network disconnected

Cut points land on keyframes unless you re-encode

Video is stored as occasional keyframes plus deltas referencing them. Cutting at an arbitrary timestamp means either starting at the nearest preceding keyframe (fast, but the cut drifts from what was asked) or re-encoding from the cut point (exact, but slower and lossy).

This tool re-encodes the selected range, so the cut lands where it was placed. The cost is that the output is a new generation of compression, which for a single trim is imperceptible and for a chain of trims is not.

Why the audio drifts

Audio and video are separate tracks with independent timelines. A trim that starts mid-frame leaves the audio starting at a slightly different instant, and the mismatch accumulates if timestamps are recomputed naively — the classic symptom is sound that is in sync at the start and half a second off at the end.

The fix is to cut both tracks at the same media time and rebuild the timestamps from zero for the output. Any tool that trims video and copies audio without adjusting its start offset produces exactly that drift.

Trimming instead of compressing

For anything over the size limits, trimming is the better first move: it reduces the decoded size the encoder has to handle, and it usually produces a more useful file than a heavily compressed full-length version.

Keep the original until the result is verified. A trim is destructive in the sense that the removed footage is not in the output, and re-deriving it from a compressed copy is not the same as re-deriving it from the source.

How to use it

  1. 1.Choose a video
  2. 2.Enter the start and end time
  3. 3.Download the trimmed MP4

How Video Trimmer works under the hood

Audio and video work on containers and codecs, which are different layers. Extracting audio copies encoded samples; compressing video must decode and re-encode every frame. That difference explains the speed gap between the two tools.

  1. 1

    Demux the container

    mp4box reads the MP4 boxes (ftyp, moov, mdat) and exposes the individual tracks without touching their encoded data.

  2. 2

    Extract or decode

    Audio extraction copies the AAC samples straight into a new container. Compression decodes each frame through WebCodecs' VideoDecoder.

  3. 3

    Re-encode if needed

    Frames are scaled on a canvas and re-encoded with VideoEncoder at the chosen bitrate and resolution; audio is re-encoded to AAC or MP3.

  4. 4

    Mux the result

    mp4-muxer writes a fresh MP4 with a correct index, so the output seeks properly in any player.

  5. Processing pipeline

Why compression is CPU-bound

Decoding and re-encoding a 10-minute 1080p video means processing roughly 18,000 frames twice. WebCodecs uses hardware acceleration when the browser exposes it, but the tab still does the work — expect minutes, and keep the tab in the foreground. This is also why the free tier caps duration rather than file count.

Extraction is lossless

Pulling audio out of a video does not re-encode it, so the sound is bit-for-bit what was in the original. Converting to MP3, however, does re-encode and is lossy; if you need an exact copy, choose the original codec (AAC/M4A) rather than MP3.

Cut points land on keyframes

A compressed video stores full frames only at keyframes; the frames between them depend on earlier ones. Trimming therefore snaps to the nearest keyframe unless the clip is re-encoded, which is why a trim can start a fraction of a second late. Re-encoding costs quality and time; snapping costs a few frames.

Verify it yourself

The file is read by the browser, not uploaded. Watch the network panel during a run.

  1. 1.Open DevTools on this page and switch to the Network tab
  2. 2.Keep the filter on Fetch/XHR and run the tool
  3. 3.Confirm no request carries your file — you should see only page assets and fonts

Frequently asked questions

How do I enter the times?

Use `10` (10 seconds), `1:30` (1 min 30 s) or `0:01:30`.

Is the cut snapped to keyframes?

No. The range is re-encoded, so cuts land within 0.1 s — at the cost of a slight quality loss.

What about the audio?

Audio is cut to the same range. You can also remove audio and get a silent MP4.

Is this tool free?

Yes — no sign-up and no card. The free tier handles 3 minutes / 100 MB. Everything runs in your browser, so your file is never uploaded.

What happens if my file is over the limit?

You see a notice before any processing starts, and nothing is charged automatically. Pro raises the limit to 15 minutes / 200 MB. If you'd rather stay free, compress or split the file first.

What this kind of conversion cannot keep

Video and audio are processed with the browser's own codecs (WebCodecs where available, otherwise a JavaScript encoder). It is slower than a native app because it runs on one thread in a sandbox, but the file is never uploaded — which is the only reason to accept the trade.

Go deeper

More in Video & Audio