Cropping by dragging handles feels fast until you need precision. Platform templates demand exact pixel regions, a set of avatars must all be perfectly square, and slicing one wide banner into identical panels is tedious with any mouse-driven editor. This tool crops by numbers instead: enter the x, y, width, and height of the region in pixels, and it extracts exactly that rectangle. Upload, type four values, preview, download a PNG. Everything runs locally in your browser with no upload to a server and no signup.
Numeric cropping is a different mindset from visual cropping, and it is the better one for repeated, precise work. Once you know that a platform's avatar slot starts at 40 pixels from the top of a 600 x 600 source, or that a banner slice must be exactly 728 x 90, typing the numbers guarantees the result every time, on every image, for every member of a team following the same recipe.
The tool validates your region against the original dimensions before cropping, so a rectangle that would run past the right edge or below the bottom is caught with a clear message rather than producing a silently wrong output. This page explains the coordinate system, shows worked examples for the most common recipes, and covers the edge cases that trip people up, such as regions near the borders and coordinate origins.
Understanding the Crop Coordinates
The coordinate system matches canvas and CSS conventions: the origin is the top-left corner of the image, x grows to the right, and y grows downward. That downward growth is the part people get wrong most often, coming from math class where y grows upward. A crop region is fully described by four numbers: x is the distance from the left edge to the rectangle's left side, y is the distance from the top edge to its top side, width and height are the rectangle's size in pixels.
Everything must stay inside the source: x plus width cannot exceed the image width, and y plus height cannot exceed the image height. For a 1920 x 1080 image, the largest valid region is x 0, y 0, width 1920, height 1080, which is the whole image. A region at x 1900 with width 30 would need x plus width equal to 1930 and is rejected, with the tool telling you the maximum width available from that x position, which is 20 pixels.
Worked crop recipes
| Goal | Source size | x, y, width, height | Result |
|---|---|---|---|
| Centered square avatar | 1200 x 800 | 200, 0, 800, 800 | 800 x 800, full height, horizontally centered |
| Leaderboard banner slice | 1920 x 1080 | 596, 495, 728, 90 | 728 x 90 standard ad size |
| Top-left quadrant | 1000 x 1000 | 0, 0, 500, 500 | Exact quarter of the image |
| Remove 60-pixel watermark strip | 1600 x 900 | 0, 0, 1600, 840 | Bottom strip excluded, aspect slightly wider |
The centered avatar recipe generalizes: for a square side equal to the smaller dimension, set that side as both width and height, y at 0, and x at the source width minus the square side, divided by two. For the 1200 x 800 example, that is 1200 minus 800, which is 400, divided by 2, so x equals 200 for a perfectly centered crop. Shift x toward 0 to bias the frame left or toward 400 to bias it right, which is the real advantage of numeric control: framing stays deliberate and reproducible.
How to Crop an Image (Step by Step)
- Upload the image by dragging it in or tapping the upload area. The original width and height are displayed prominently, since every coordinate is relative to them.
- Enter x and y, the top-left corner of your region, in pixels from the left and top edges.
- Enter width and height for the region size. The tool checks the four values against the source dimensions immediately.
- Fix any validation message: values that overflow the image are rejected with the maximum allowed size shown, so you can adjust without guessing.
- Preview the extracted region and download it as a PNG. The output is lossless and preserves transparency from the source.
Key Features
- Numeric precision: x, y, width, and height in exact pixels, repeatable across images and team members.
- Instant validation: regions that overflow the source are rejected with concrete maximums instead of silently producing wrong crops.
- Lossless PNG output: pixels are copied, not resampled, so a crop is perfectly sharp at 100 percent zoom, including text and pixel art.
- Transparency preserved: alpha channels survive cropping, so cutout graphics stay usable.
- Local processing: cropping happens in browser memory; screenshots of confidential systems never leave the device.
- Free and unlimited: no account, no watermark, mobile-friendly.
Cropping Is Lossless, and Why That Matters
Cropping removes pixels outside the rectangle and keeps the pixels inside untouched. Unlike rotation at arbitrary angles or any resize, there is no interpolation anywhere in the operation, so the cropped output is exactly as sharp as the corresponding region of the original. This is why cropping is the right first step in almost any image workflow: straighten and crop from the cleanest source, then resize, compress, or convert afterward.
The lossless property also has a privacy dimension worth using deliberately. Cropping out everything except the relevant area of a screenshot removes names, email addresses, and sidebar data from the output file entirely, not just visually. A crop that shows only one table cell region cannot leak the rest of the spreadsheet, because those pixels are not in the file at all.
Common Use Cases
- Extracting perfectly square avatars from team photos, with the same numeric recipe applied to every portrait so the set aligns in a grid.
- Slicing a wide banner into standard ad or hero panels, such as 728 x 90 leaderboard strips, using identical y and height values with shifting x offsets.
- Cleaning screenshots for documentation: cropping to exactly the UI element under discussion, one numeric region per figure.
- Trimming scanner borders and white margins from scanned pages by cropping inside the content area.
- Removing watermark or timestamp strips from the bottom edge of your own source images.
- Producing platform-specific assets from one master image, for example a 1080 x 1080 post region and a 1200 x 630 preview region cut from the same photo.
Planning Crops with Simple Math
Two formulas cover most recipes. For centering a region of width W in an image of width IW, set x to (IW - W) divided by 2; for a 1200-wide source and a 728-wide banner, that is (1200 - 728) / 2, so x equals 236. For equal slices of an image IW wide into N panels, each panel is floor(IW / N) wide, and panel i starts at x equal to i times the panel width. A 1920-wide image cut into 4 slices yields panels of 480 pixels starting at x 0, 480, 960, and 1440, with the last slice absorbing any rounding remainder if you use 480 for all four.
Vertical layout math works identically with y and height. Slicing a 1080-tall story image into three stacked panels gives 360 pixels each, at y 0, 360, and 720. Doing this arithmetic once per template and recording the numbers turns cropping into a repeatable pipeline rather than a hand-eye coordination exercise.
Tips and Best Practices
- Crop from the largest source available. Cropping cannot add pixels; a region cut from a small image is small, and enlarging it afterward softens it.
- Validate visually once, then trust the numbers. Check the preview the first time you run a new recipe, then reuse the coordinates confidently.
- When trimming edges symmetrically, subtract the trim from both dimensions and shift x and y by the trim amount. A 1600 x 900 image trimmed 50 pixels on every side crops at x 50, y 50, width 1500, height 800.
- Crop before compressing. Cropping a heavily compressed JPEG re-encodes artifacts into the PNG output, while cropping a clean source keeps them out entirely.
- Remember y grows downward. If a crop lands one region too high or too low, invert your mental model before nudging values.
Numeric Cropping vs. Visual Cropping Tools
| Aspect | Numeric crop (this tool) | Drag-handle editors |
|---|---|---|
| Repeatability | Identical rectangles every time | Varies by hand and session |
| Exact template sizes | Guaranteed to the pixel | Easy to miss by 1 or 2 pixels |
| Speed for one-off artistic crops | Slower, requires coordinates | Faster and more intuitive |
| Batch consistency | Same numbers, same results | Each crop drifts independently |
Use visual editors when framing is artistic and one-off; use numeric cropping when exactness and repeatability are the requirements, which is the case for most template-driven and batch work.