DT
DevToolKit
Clearly labeled tools
Tools
Workspaces
Resources
Browse tools
DT
DevToolKit
Practical PDF, image, developer, and everyday tools

Clearly labeled processing for everyday tasks.

Core processing runs in the browser for most tools. Server-backed and external-provider workflows are labeled separately. Basic tools are available without signup; individual limits vary by tool.

46 unique tools4 workspacesNo signup for basic tools
Browse toolsTrust Center
Tools
All toolsPDF workspaceImage studioDeveloper workbenchGeneral tools
Product
BlogSupportContact
Company
AboutTrust CenterPrivacy PolicyTerms of Use

© 2026 DevToolKit. Practical PDF, image, developer, and everyday tools with clearly labeled processing.

In-browserServer-backedExternal preview
amanhirut32@gmail.com
HomeToolsImageImage Crop

Image Crop

  • In-browser
  • No signup
  • Visual crop

Select a rectangular region from one JPG, PNG, or WebP with aspect presets, pixel coordinates, and format-aware export.

Core processing runs in your browser and does not upload this file for the task.

Preparing the editor...

The guide and instructions on this page are available while the tool loads.

Continue your workflow

  • Image CompressorReduce an image’s file size. Crop frames a rectangular region; it does not compress.
  • Image ResizerResize by exact pixels, percentage, or presets. Crop sets size from the crop box; it is not a dedicated resizer.
  • Image ConverterRe-encode JPG, PNG, WebP, or AVIF. Crop can export the framed area; it is not a dedicated format converter.

What this tool does

Image Crop exports a rectangular region from one image. Default aspect is Free. Default output is Original format at quality 90.

When to choose it instead of a similar DevToolKit tool

  • Use Crop to discard edges or reframe.
  • Use Resizer to change the whole image’s pixel size without choosing a region.
  • Use Rotate if the problem is orientation, not framing.

Typical jobs this page is built for

  • Cut a square 1:1 from a photo for a profile crop.
  • Frame a 16:9 banner or a 9:16 story from a larger still.
  • Type x/y/width/height when you already know the pixel box.

Supported inputs, limits, and output behavior

Input
JPG, PNG, or WebP, 20 MB.
MAX_DIMENSION
12000 px warning only.
Output
{base}-cropped.jpg|.png|.webp

How the transformation actually works

readCropData uses cropper.getData(true). Export uses imageSmoothingQuality high. PNG skips the quality argument; JPEG/WebP use quality/100.

Step-by-step workflow

  1. Upload one image.
  2. Adjust the crop box.
  3. Pick an aspect preset if you need a fixed ratio.
  4. Pick output format (and quality for JPG/WebP).
  5. Click Crop image.
  6. Download {base}-cropped.{ext} and check the pixel size.

What can change in the output

The result is a new encoding of the cropped canvas, not a lossless crop of a JPEG MCU grid. Metadata is not copied by toBlob.

Known limitations and failure cases

  • Very large images can be slow.
  • CROP_EXPORT_FAILED if the canvas blob is empty.
  • AVIF/HEIC not accepted.

Privacy / where data goes

Cropper.js and canvas export run in the browser. The image is not posted to a crop API. Identified analytics may include byte counts and output dimensions, not the pixel contents.

Practical output-review checklist

  • Confirm width×height match the pixel fields from readCropData.
  • Check JPEG white flatten on transparent PNG crops.
  • Inspect edges after wheel zoom; export uses the crop box, not the on-screen zoom alone.
  • Keep the original uncropped file.

Frequently asked questions

Does crop copy the original file bytes outside the box?

No. exportCroppedCanvas rasterizes the selected rectangle and encodes a new image. The rest of the source file is not included.

What do the aspect presets actually set?

Free leaves Cropper.js unconstrained (value null). 1:1, 4:3, 16:9, and 9:16 call setAspectRatio with those numbers. smartFitCropper resets, zooms with computeBaseZoom (0.92 padding), then fitCropBoxToCanvas (0.12 padding).

When is JPEG fill used?

getCroppedCanvas sets fillColor #ffffff only when the output MIME is image/jpeg. PNG and WebP omit that fill. PNG also skips the quality argument; JPEG/WebP use quality/100 (default 90).

Can I crop AVIF or HEIC here?

No. ALLOWED_IMAGE_TYPES is JPEG, PNG, and WebP (type or .jpg/.jpeg/.png/.webp). Files above 12000 px on a side show a slowness warning but are not blocked.

Related guides

Longer reads that pair well with this tool.

Image guide

How to Prepare Images for Websites and Documents

A practical image-preparation workflow: choose the required format, set dimensions, review processing labels, and inspect the exported file before sharing.

Image guide

How to Remove an Image Background Online

Use DevToolKit's server-backed, AI-assisted Background Remover with supported files, subject presets, browser-side export controls, and clear review steps.

Related tools

Common next steps after using this tool.

Image Compressor

Compress a JPG, PNG, WebP, or AVIF image with format, quality, and optional resize controls.

Image Resizer

Resize a JPG, PNG, or WebP image by exact dimensions, percentage, or common web and social presets.

Image Converter

Decode a supported image and re-encode it to JPG, PNG, WebP, or AVIF with quality, transparency, and optional resize controls.

Background Remover

Remove an image background, review the cutout, refine its edge softness, and export it with transparency or a new background.

Explore more in Image

Browse related tools or open the full workspace.

Image workspaceAll tools