Cropping a video is the act of selecting one fixed rectangle inside every frame and discarding everything outside it — expressed as four whole-pixel numbers: an X offset, a Y offset, a width, and a height. The crop applies to the full duration of the clip, not a slice of time, so the coordinates you choose define the visible region for every frame from start to finish. Because the rectangle is described in source pixels, the source's decoded dimensions set the hard ceiling: X plus width and Y plus height must both fit inside the frame, the offset and the dimensions must each be a nonnegative whole number, and the output area is bounded at 3840 × 2160 pixels. Skip any of those rules and the tool rejects the rectangle without rounding, shifting, or producing a partial file. Getting those details right is what separates a frame-accurate export from a wasted render, and the rest of this guide walks through each detail in turn.

The Pixel Rectangle Is the Whole Job
Every crop is defined by four values — X, Y, width, and height — all measured in source pixels. X is the horizontal offset from the top-left corner of the decoded frame; Y is the vertical offset from the same point. X moves the rectangle right, Y moves it down. Width controls how far the rectangle extends to the right; height controls how far it extends down. The defaults inside Video Cropper select the full frame,
Three hard rules govern those numbers. First, every value must be an untrimmed nonnegative whole-pixel count — fractions are not allowed. Second, width and height must each be at least two pixels, so a one-pixel sliver cannot be requested. Third, the rectangle must fit entirely inside the decoded source: X + width must not exceed the source width, and Y + height must not exceed the source height. If any rule fails, the tool rejects the rectangle outright without shifting, clipping, or rounding, and no output file is produced.
| Input | Meaning | Constraint |
|---|---|---|
| X | Horizontal offset from top-left | Whole pixels, ≥ 0 |
| Y | Vertical offset from top-left | Whole pixels, ≥ 0 |
| Width | Horizontal extent of the rectangle | Whole pixels, ≥ 2, X + Width ≤ source width |
| Height | Vertical extent of the rectangle | Whole pixels, ≥ 2, Y + Height ≤ source height |
The rectangle is applied uniformly to every frame, so the crop cannot track a moving subject, follow an object, or change shape over time. That makes it well suited to clipping out static edges, watermarks confined to a fixed region, or producing a known frame for a platform that demands a specific dimension. For anything that moves or zooms, a single-rectangle crop is the wrong tool and a tracked mask or pan-and-zoom editor is the right one. The guide Can the Crop Move During the Video in a Video Cropper? covers this boundary in more depth.
Source Limits That Decide Whether a Crop Will Run
The crop is only as available as the source file. The browser must decode the file first, and that depends on the codec support of the current browser rather than the file extension alone. MP4, WebM, MOV, M4V, and Ogg are accepted extensions, but an accepted extension does not guarantee that decoding will succeed — that decision belongs to the browser. If the video fails to load, the source dimensions never appear and the rest of the workflow cannot start.
When decoding succeeds, four numeric gates decide whether the crop can run. The file itself must be positive and no larger than 500 MiB. The decoded duration must be above zero and no longer than five minutes. No individual source side may exceed 4096 pixels. The total source area must remain inside 3840 × 2160 pixels. The cropped output inherits its own ceiling: the output area may not exceed 3840 × 2160 pixels, even if the source is large enough to allow it.
| Gate | Limit |
|---|---|
| Source file size | Positive, up to 500 MiB |
| Decoded duration | Above zero, up to 5 minutes |
| Source side (max dimension) | Up to 4096 pixels |
| Source area | Up to 3840 × 2160 pixels |
| Output area | Up to 3840 × 2160 pixels |
Those gates are evaluated together. A file that passes the size check but is six minutes long is rejected. A 4K file that decodes inside the area gate can be cropped down to fit the output ceiling, but a rectangle that itself exceeds 3840 × 2160 pixels will fail before the recording ever starts. Reading the source dimensions off the loaded preview and then computing a rectangle that stays inside them is the only way to satisfy all of those constraints at once.
Audio, Subtitles, and Metadata — What Carries Over
A crop changes the visible frame; it is not a trim, resize, compress-only, redact, blur, or object-removal operation. With that scope in mind, audio handling has a specific rule. When the browser exposes an audio track through media capture, the tool appends that track to the Canvas stream and the recorder captures it alongside the picture. When the browser does not expose such a track, the output is video-only. Browser support varies, so the source may also play audibly during real-time processing; this is normal behavior, not a failure.
Beyond audio, the crop does not preserve several pieces of metadata and container features. Subtitles are not carried into the output. Chapter markers, embedded attachments, rotation tags, HDR signaling, and most color metadata are dropped along the way. The output is a re-encoded WebM, not a container-level edit, so anything stored outside the picture-and-audio payload should be assumed lost unless reviewed in the destination player.
That is why the contract asks you to keep the original until the entire output has been reviewed. Confirm the audio plays, confirm the crop is in the right place on representative frames, confirm the duration is finite, and confirm the file decodes in the application you actually plan to use. Once those checks pass, the original can be archived or deleted as needed.
Real-Time Processing and the WebM You Get
Processing happens in real time inside the active page. The source is played locally, only the requested rectangle is drawn into a Canvas of the same size, and that Canvas stream is recorded as WebM. A one-minute source therefore takes about one minute to process, and the tab must remain open for the duration of the recording. Closing the tab, navigating away, or letting the device sleep can interrupt the capture and leave you with a partial or empty file.
The recorder uses the first browser-reported WebM format it can produce, working through VP9, VP8, and a generic WebM container in that order. Requested bitrate is derived from the cropped pixel area at 30 frames per second and is bounded from 180 kbps through 8 Mbps. This is a disclosed single-pass browser setting — a target the encoder aims for — not a guarantee of final file size or visual quality. Fast motion, noise, grain, the source codec, and the browser's own encoder all influence the actual result, and the spec points to W3C MediaStream Recording for the underlying MediaRecorder behavior.
Streaming MediaRecorder output commonly omits a finite container duration, so after recording the tool runs a Matroska Duration patch on the WebM. It parses Segment Info and TimestampScale and inserts a big-endian Duration value in timestamp-scale ticks, following the structure described in the IETF Matroska Media Container Format specification. The patched file must remain nonempty and must decode with the requested dimensions; if either check fails the output is discarded. Object URLs, timers, recorder tracks, and playback are stopped or released on replacement, error, stale completion, or unmount so the page does not leak resources.
How to Crop a Video with Exact Pixel Coordinates
The walkthrough below describes the steps in order. Each step depends on the one before it, so do not skip ahead.
- Choose a browser-decodable video file (MP4, WebM, MOV, M4V, or Ogg) and wait for its source dimensions to load. If the file extension is accepted but the dimensions never appear, the current browser cannot decode the codec and the rest of the workflow will not start.
- Read the decoded width and height off the loaded preview. These numbers are the absolute upper bound for the rectangle you are about to enter.
- Enter whole-pixel X, Y, width, and height values that stay inside every source frame. X and Y must be nonnegative; width and height must each be at least 2; X + width must be ≤ source width; Y + height must be ≤ source height; output area must be ≤ 3840 × 2160 pixels.
- Select Crop video. The source will play locally and the recorder will capture the requested rectangle in real time. Keep the tab open for the entire duration — a one-minute source takes about one minute.
- When the recorder finishes, download the WebM. Open it in the destination player and verify duration, crop position, audio, and overall compatibility before you delete the original.
Verify the Output Before You Delete the Original
The verification step is part of the job, not an optional extra. Open the downloaded WebM in the application you actually plan to use, then check four properties in order.
- Duration: Confirm the clip plays from start to finish without ending early. The Matroska Duration patch should have produced a finite length; if your player reports an unknown or zero duration, the patch failed and the file is unreliable.
- Crop position: Scrub to several points across the clip and confirm the rectangle stays in the right place. Remember the crop is fixed across every frame, so a movement bug will show up consistently rather than randomly.
- Audio: If the source had audible sound, confirm the output carries it. If the source was silent, confirm the output is also silent — a phantom track points at an unexpected media capture path.
- Compatibility: Confirm the WebM decodes in the destination player without warnings. If it does not, re-encode with Video Compressor using one of its small, balanced, or quality presets and recheck the result.
Once all four checks pass, archive the original and keep the cropped WebM as the working copy. If any check fails, the original is still intact and the crop can be redone with corrected coordinates or a different rectangle. That round-trip is the safety net that makes pixel-exact cropping reliable enough to trust with a finished edit.
For a deeper look, see What Details Matter When You Use Video Compression.