Skip to content
AZ Tools

Video Compressor & Trimmer

Make a video smaller, cut out a clip or remove its sound, right in your browser: pick a resolution, a quality or a target file size. Nothing is uploaded.

How to use

  1. Drop a video or click to choose one.
  2. Set the start and end of the part to keep — type the seconds or play to a point and use Set start / Set end.
  3. Choose a mode: Quality, Target size (in MB) or Trim only, then the resolution and whether to keep the sound.
  4. Press Convert, compare the sizes, preview the result and download it.

About this tool

Show

Drop a video, choose the part to keep, and the tool re-encodes it with your browser's own video encoder (WebCodecs) at the resolution and quality you pick. Three modes cover the usual jobs. Quality re-encodes at a low, medium or high quality level. Target size works out the bitrate that brings the clip in just under the number of megabytes you enter, handy for e-mail or chat limits. Trim only cuts the clip without re-encoding at all, which is fast and loses no quality. The video never leaves your device.

Re-encoded videos are saved as MP4 with H.264 when your browser can encode it (Chrome, Edge and Safari on most systems), which plays almost everywhere. Where H.264 encoding is not available, as in some Linux builds and Firefox, the tool falls back to WebM with VP9 and Opus and tells you so; every modern browser and VLC play it, though some older phones and editors do not. Lowering the resolution saves the most: 720p carries less than half the pixels of 1080p.

Trim only copies the compressed frames as they are, so a copy can only start on a key frame. An MP4 keeps the frames from that key frame but marks them to be skipped, so it still plays from your start; WebM has no way to mark them, so a WebM clip begins at the key frame, often a second or two before the point you chose. The result says which happened. For a frame-accurate cut, use one of the re-encoding modes. Target size is an estimate: encoders land close to the requested bitrate but can overshoot by a few percent on very busy scenes, and a size far below what the resolution needs gives a blocky picture. Long or 4K videos take a while and use a lot of memory; very large files may be beyond what a phone can handle. Reading and writing the MP4 and WebM files is done by the open-source Mediabunny library (MPL-2.0), which loads only when you open a video. When the first encode still comes out over the target, as happens with grainy or very busy footage, the tool encodes again with a lower bitrate and then a lower resolution, keeps the smallest result, and tells you if the target could not be met.

Frequently asked questions

Is my video uploaded?

No. Decoding, trimming and encoding all happen in your browser with its built-in WebCodecs encoder. The file is read from your disk and the result is created in memory.

Why did I get a WebM file instead of MP4?

Your browser cannot encode H.264, which MP4 needs for wide compatibility; this is the case in Firefox and some Linux builds of Chromium. The tool then uses VP9 in WebM. Try Chrome, Edge or Safari for MP4.

Why can Trim only start earlier than I asked?

Without re-encoding, a copy can only begin on a key frame, and many cameras and recorders write one only every few seconds. In an MP4 the extra frames are kept but marked to be skipped, so it plays from your start; a WebM cannot mark them, so it starts at the key frame. Use the Quality or Target size mode for an exact cut in WebM.

How small can I make it?

Lower the resolution first, then the quality. A one-minute clip at 720p and medium quality is typically 10–25 MB, at 480p low quality a few MB. Asking for far less than that gives a blocky, smeared picture.

Why is the result bigger than the original?

The original was already compressed harder than the settings you chose, for example a phone video re-encoded at high quality. Choose a lower quality or resolution, or the Target size mode.

Does it work on phones?

On recent iPhones and Android phones with an up-to-date browser, yes, but long or high-resolution videos may run out of memory. Short clips work best.

Related tools