# How to Trim a Video Without Re-Encoding (Stream Copy, Explained)

> Cutting a video usually means re-encoding it — slow, and one generation of quality loss. Stream copy skips both: our 6-second test trimmed to 4 seconds in under a second, pixel-identical.

Source: https://toolpantry.app/blog/trim-video-without-re-encoding

## About

Most "trimmers" re-encode your whole video just to cut ten seconds — slow, and a little quality gone each time. Stream copy does the cut as a copy operation. Here's how it works and where it bites back.

## Quick answer

Short answer: use the video trimmer — it copies the original compressed data instead of re-encoding. Our test: a 6-second 2.3 MB clip trimmed to 4 seconds in under a second , output pixel-identical, 1.56 MB. The trade-off: the cut snaps to the nearest keyframe, and the tool tells you exactly where it landed.

## Two ways to cut a video

**Re-encode ("export")** is what most editors and online trimmers do: every frame is decoded, filtered, and compressed again. It's precise to the frame — and it costs you minutes of processing plus one generation of quality loss. Do it five times and you've re-compressed the video five times.

**Stream copy** does what the name says: the compressed frames and audio samples are copied, in order, into a fresh container, and the timestamps are rewritten. No pixels are touched. A trim becomes a file-copy job that finishes in seconds — our 6-second test cut to 4 seconds in well under a second of processing.

## The keyframe trade-off

Compressed video isn't a stack of independent pictures. It's periodic full frames (keyframes) followed by frames that describe only what changed. A player can only start cleanly at a keyframe — so a stream-copy cut must begin at the nearest keyframe at or before your chosen point. On typical phone and camera footage, keyframes land every 1–2 seconds, so your clip may start up to that much early. Our test clip was generated with a single keyframe at the very start, which is the worst case: asking for a cut at 1.0 s produced a clip starting at 0.07 s. Real footage behaves better — and the tool always reports the actual start it used, so there's no mystery.

## When to use which

| Job | Stream copy (video trimmer) | Re-encode (compress video) |
|---|---|---|
| Cut seconds off a clip | **Ideal — instant, lossless** | Works, slower |
| Frame-exact start | Snaps to keyframe | **Ideal** |
| Make the file smaller | Only removes what you cut | **Ideal — changes bitrate** |
| Format conversion | MP4 out only | MP4 out (input: MP4/MOV) |

## Good to know

The rebuilt file carries no metadata — trimmed clips come out clean, which is quietly useful before sharing. Audio is cut at frame granularity (about 23 ms), close enough to feel exact. And if you need a loop or a sound clip instead, [Video to GIF](https://toolpantry.app/video-to-gif.html) and [Video to MP3](https://toolpantry.app/video-to-mp3.html) take the same files — all three run locally in the browser, so a private video gets trimmed without ever touching a server.

## Notes

By the Tool Pantry team, October 2026. Measured with Chrome 155 on macOS on a 1280×720 H.264 clip; output verified as valid H.264 + AAC MP4.

## FAQ

**What does 'trimming without re-encoding' mean?**

It means copying the original compressed video and audio data into a new file instead of decoding and re-compressing it. The result is pixel-identical to the source, and it takes seconds instead of minutes because no heavy processing happens.

**Why does the clip start at a slightly different time than I picked?**

Compressed video is built from keyframes: only keyframes can start playback cleanly. A stream-copy cut snaps to the nearest keyframe at or before your start point — usually within a second or two on normal footage. The tool shows the exact start it used.

**When should I re-encode instead?**

When you need a frame-exact cut, a smaller file, or a different format. Re-encoding (our video compressor does it) processes every frame — slower and slightly lossy, but it can start exactly where you asked.

**Is my video uploaded?**

No. The trim happens in your browser tab — the file is demuxed and rebuilt locally, and nothing is sent to a server.
