Skip to content
CertoflowCertoflow
Image Tools

Crop Image

Crop images by pixel coordinates.

Drag & drop images here

or click to browse · select one or many

Guide

Introduction

Full-frame photos rarely match the aspect ratio a platform demands. LinkedIn banners want 1584×396. App store screenshots need exact pixel regions. Avatar uploads crop to a square around a face. Even when you know the target size, achieving the right composition usually means cutting a rectangle from a larger image—not scaling the whole file and hoping the subject stays centered.

Certoflow's Crop Image tool extracts a pixel-defined region from any uploaded image in your browser. Set X, Y, width, and height, preview original and cropped results, then download PNG. No cloud editor account, no upload queue, no server retention of sensitive photography.

What this tool does

Crop Image provides coordinate-based cropping:

ControlPurpose
File uploadJPEG, PNG, WebP, GIF, and other browser-decodable formats
XHorizontal offset from left edge (pixels)
YVertical offset from top edge (pixels)
WidthCrop rectangle width
HeightCrop rectangle height
PreviewOriginal and cropped side by side
DownloadSaves cropped.png

When you select a file, the tool reads native dimensions and caps coordinate inputs to valid ranges. Default width and height start at 200 pixels or image size, whichever is smaller—adjust to your target region.

How it works

Certoflow loads the file into an Image object via FileReader, records maxW and maxH, and uses canvas drawImage with source and destination rectangles:

  • Source rectangle: (x, y, w, h) from the original bitmap.
  • Destination canvas: same w × h dimensions.
  • Export: PNG blob for download and preview URL.

Cropping is non-destructive to your original file on disk—you always keep the source unless you overwrite it manually. The operation discards pixels outside the rectangle in the exported file only.

Invalid crops (zero width/height, coordinates beyond image bounds) should be prevented by input min/max attributes; verify preview before download when working near edges.

All processing is local Canvas API work—images never leave your device.

Real-world examples

Square avatar from group photo. Source is 3024×4032 portrait. Set X=600, Y=800, Width=1800, Height=1800 to frame one person, download PNG, then optionally resize to 512×512 with Image Resizer.

Open Graph safe region. Designer delivered 1600×900 but social spec needs 1200×630 centered on the headline art. Calculate offset: X=200, Y=135, W=1200, H=630 after checking dimensions in Image Dimension Checker.

Thumbnail strip from screenshot. A 2560-wide UI capture needs a 800×450 product panel for docs. Measure pixel coordinates in any viewer, enter X/Y/W/H here, export crisp PNG without launching Photoshop.

Removing sensor letterboxing. Some phone exports include black bars encoded in pixels. Crop to content area before JPEG conversion to avoid wasting bytes on black rectangles.

Sprite sheet extraction. Indie devs crop individual frames from a grid by numeric coordinates consistent across a batch—faster than manual marquee when coordinates are known from engine metadata.

Common mistakes

Cropping before checking dimensions. Unknown image size leads to off-center cuts. Run Image Dimension Checker first.

Confusing display size with pixel size. Browser preview scales images with CSS; X/Y/W/H are pixel coordinates on the full bitmap, not screen inches.

Setting width/height larger than remaining area. X+W must not exceed image width; Y+H must not exceed height. Adjust when previews look clipped or empty.

Expecting interactive drag handles. This tool is numeric precision, not a visual marquee. Use design software for freehand crops; use Certoflow when you already know coordinates.

Exporting PNG for photographic megabytes. PNG crop output preserves lossless edges—great for UI, heavy for photos. Chain PNG to JPG or Image Compressor for photo crops.

Forgetting EXIF orientation. Some photos display rotated while pixel grid remains landscape. If preview looks sideways, run Rotate Image before cropping.

Use cases

Developers extract fixed regions for automated screenshot tests and UI diff baselines. Marketers produce platform-specific crops from master campaign art. Students frame evidence photos for assignments with pixel requirements. Support staff redact neighboring windows from full-screen captures by cropping to the relevant dialog.

E-commerce teams square-crop supplier photos for catalog grids. Bloggers isolate diagram portions from full desktop screenshots for inline figures.

Combine with Rotate Image when orientation is wrong, and Image Resizer when the cropped region must match an exact output width/height different from the crop rectangle.

FAQ

Are images uploaded?

No. Cropping uses Canvas locally.

Can I crop visually with the mouse?

Enter pixel coordinates for precise crops. Use Image Dimension Checker to learn image size before choosing values.

What format is output?

PNG by default, preserving quality for the selected region.

Which input formats work?

Any format your browser decodes—typically JPEG, PNG, WebP, GIF.

Do X and Y start at the top-left?

Yes. Origin is top-left corner (0,0) in pixel space.

Can I crop outside the image?

Input max values constrain coordinates to valid ranges; verify preview if results look unexpected.

Is the original file modified?

No. Only the downloaded export reflects the crop.

How is this different from Image Resizer?

Crop removes a region. Resizer scales entire image dimensions.

Frequently Asked Questions

Can I crop visually?
Enter pixel coordinates for precise crops. Use dimension checker first to know image size.
What format is output?
PNG by default, preserving quality for cropped regions.

Continue with these related utilities.