react-advanced-cropper, react-easy-crop, and react-image-crop are React libraries designed to handle image selection, manipulation, and cropping within web applications. Each provides a component to render an image with an interactive overlay, allowing users to adjust the visible area before exporting the result. While they share the same core goal, they differ significantly in how they manage state, handle touch interactions, and allow UI customization. react-image-crop is a lightweight, established choice for standard cropping. react-easy-crop focuses on mobile-friendly interactions with built-in zoom and rotate support. react-advanced-cropper offers deep customization through a stencil system for complex interface requirements.
react-advanced-cropper, react-easy-crop, and react-image-crop all solve the same problem β letting users select a portion of an image β but they handle state, touch input, and customization differently. Understanding these differences helps you pick the right tool for your project without over-engineering or hitting limitations later.
How each library tracks the crop area affects how you write your components.
react-image-crop keeps state entirely in your hands. You pass a crop object and update it via callbacks. This gives you full visibility but requires more boilerplate.
// react-image-crop: Manual state management
const [crop, setCrop] = useState({ unit: '%', width: 50, height: 50 });
<ReactCrop
src={imageSrc}
crop={crop}
onChange={setCrop}
/>
react-easy-crop separates position (crop) and scale (zoom). You manage both, but the library handles the math for keeping them in bounds.
// react-easy-crop: Separated crop and zoom state
const [crop, setCrop] = useState({ x: 0, y: 0 });
const [zoom, setZoom] = useState(1);
<Cropper
image={imageSrc}
crop={crop}
zoom={zoom}
onCropChange={setCrop}
onZoomChange={setZoom}
/>
react-advanced-cropper uses a single state object that includes coordinates, size, and canvas info. It simplifies updates by bundling related data.
// react-advanced-cropper: Unified state object
const [state, setState] = useState(null);
<Cropper
src={imageSrc}
onChange={setState}
stencilProps={{ aspectRatio: 1 }}
/>
Mobile support is often the deciding factor for user-facing apps.
react-image-crop supports touch but requires extra work for zooming. You typically need to wrap it or add logic to handle pinch gestures manually.
// react-image-crop: Basic touch support
// Zooming requires custom implementation or wrapper
<ReactCrop
src={imageSrc}
crop={crop}
onChange={setCrop}
// No built-in zoom prop
/>
react-easy-crop has zoom and rotation built into the core component. It works smoothly on mobile devices out of the box.
// react-easy-crop: Built-in zoom and rotation
<Cropper
image={imageSrc}
crop={crop}
zoom={zoom}
rotation={rotation}
onCropChange={setCrop}
/>
react-advanced-cropper supports touch and zoom through its transformer system. You can enable it via props, but it may require configuration for specific gestures.
// react-advanced-cropper: Configurable touch support
<Cropper
src={imageSrc}
onChange={setState}
transformers={[transformers.touch, transformers.zoom]}
/>
The look of the cropping overlay matters for brand consistency.
react-image-crop uses a standard rectangular overlay. Customizing the look requires CSS overrides, which can be fragile across versions.
// react-image-crop: CSS overrides for UI
<ReactCrop
src={imageSrc}
crop={crop}
className="my-custom-crop-style"
/>
react-easy-crop also uses a standard overlay. It focuses on function over form, so deep UI changes are limited without forked code.
// react-easy-crop: Limited UI customization
<Cropper
image={imageSrc}
crop={crop}
// No direct stencil prop for custom shapes
/>
react-advanced-cropper lets you swap the stencil component entirely. You can build circular, polygon, or branded overlays easily.
// react-advanced-cropper: Custom stencil component
<Cropper
src={imageSrc}
stencilProps={{ component: MyCustomStencil }}
onChange={setState}
/>
Getting the final image file is the last step in the flow.
react-image-crop provides helper functions like canvasPreview and canvasToBlob. You must call these manually after cropping.
// react-image-crop: Manual export helpers
const canvas = await canvasPreview(imageRef, crop, rotate);
const blob = await canvasToBlob(canvas);
react-easy-crop relies on external utilities often shown in docs, like getCroppedImg. You manage the canvas creation logic based on crop values.
// react-easy-crop: Utility based export
const croppedImage = await getCroppedImg(imageSrc, crop, rotation);
react-advanced-cropper includes methods on the component reference to get the canvas or blob directly. This reduces boilerplate code.
// react-advanced-cropper: Built-in export methods
const canvas = cropperRef.current.getCanvas();
const blob = await cropperRef.current.getBlob();
| Feature | react-image-crop | react-easy-crop | react-advanced-cropper |
|---|---|---|---|
| State Model | Manual crop object | Separate crop + zoom | Unified state object |
| Mobile Touch | Basic (Zoom needs work) | Excellent (Built-in) | Configurable (Transformers) |
| UI Customization | CSS Overrides | Limited | Full (Custom Stencils) |
| Export Logic | Helper Functions | External Utilities | Built-in Methods |
| Best For | Standard rectangular crops | Mobile profile uploads | Custom branded interfaces |
react-image-crop is the reliable workhorse π΄ β perfect for admin panels or internal tools where standard rectangular cropping is enough and you want minimal dependencies.
react-easy-crop is the mobile specialist π± β ideal for consumer apps where users upload photos from phones and expect smooth pinch-to-zoom and rotate gestures.
react-advanced-cropper is the custom builder π οΈ β best for design-heavy products where the cropping tool must match a unique interface or support non-standard shapes like circles or polygons.
Final Thought: All three libraries are actively maintained and capable. Your choice should depend on whether you prioritize mobile gestures, UI flexibility, or simple integration.
Choose react-advanced-cropper if you need full control over the cropping interface, such as custom shapes, complex constraints, or a unique design system. It is ideal for applications where the cropping UI must match a specific brand look or require non-standard interaction patterns like circular stencils with custom handles.
Choose react-easy-crop if your primary concern is mobile usability and you need built-in support for zooming and rotating images. It is the best fit for user-generated content flows, like profile picture uploads, where touch gestures must work smoothly without extra configuration.
Choose react-image-crop if you want a lightweight, stable solution for standard rectangular cropping with minimal dependencies. It suits projects that need a reliable, no-frills implementation where developers prefer to manage the canvas export logic themselves for maximum control over the output.
Documentation /
Examples /
Sandbox
:warning: It's the beta version. The API can be changed in the future. Therefore, it's recommended to fix the version with ~.
React Advanced Cropper is the advanced library that gives you opportunity to create your own croppers suited for any website design. It means that you are able to change not only the cropper appearance, you area able to customize its behavior also.
Features:

npm install --save react-advanced-cropper
yarn add react-advanced-cropper
import React, { useState } from 'react';
import { CropperRef, Cropper } from 'react-advanced-cropper';
import 'react-advanced-cropper/dist/style.css'
export const GettingStartedExample = () => {
const [image, setImage] = useState(
'https://images.unsplash.com/photo-1599140849279-1014532882fe?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1300&q=80',
);
const onChange = (cropper: CropperRef) => {
console.log(cropper.getCoordinates(), cropper.getCanvas());
};
return (
<Cropper
src={image}
onChange={onChange}
className={'cropper'}
/>
)
};
/*
Maybe you need to set the limits for the cropper sizes or its container sizes
otherwise a cropping image will try to fill all available space
*/
.cropper {
height: 600px;
background: #DDD;
}
| Prop | Type | Description | Default |
|---|---|---|---|
| src | string | The cropping image (link / base64) | |
| stencilComponent | Component | The stencil component | RectangleStencil |
| stencilProps | object | The props for the stencil component | {} |
| className | string | The optional class for the root cropper block | |
| imageClassName | string | The optional class for the cropping image | |
| boundariesClassName | string | The optional class for the area. | |
| backgroundClassName | string | The optional class for the background under the image | |
| autoZoom | boolean | Enable / disable transitions | true |
| transitions | boolean, object | Enable / disable auto zoom | false |
| stencilSize | object | The size of the stencil in pixels | |
| canvas | boolean | The flag that indicates if canvas should be used | true |
| minWidth | number | The minimum width of the stencil (percents) | |
| minHeight | number | The minimum height of the stencil (percents) | |
| maxWidth | number | The maximum width of the stencil (percents) | |
| maxHeight | number | The maximum height of the stencil (percents) | |
| checkOrientation | boolean | Check if EXIF orientation should be checked | true |
| resizeImage | boolean, object | The options for the image resizing (details) | true |
| moveImage | boolean, object | The options for the image moving (details) | true |
| rotateImage | boolean, object | The options for the image moving (details) | false |
| imageRestriction | string | Set restrictions for image position ('fillArea' 'fitArea', 'stencil', 'none') | 'fillArea' |
| defaultSize | object, Function | The function that returns the default size of the stencil or object | |
| defaultPosition | object, Function | The function that returns the default position of the stencil or object | |
| defaultTransforms | object, Function | The function that returns the default image transforms or object | |
| wrapperComponent | Component | The wrapper component | CropperWrapper |
| wrapperProps | object | The props for the wrapper component | {} |
| backgroundWrapperComponent | Component | The background wrapper component | CropperBackgroundWrapper |
| backgroundWrapperProps | object | The props for the background wrapper component | {} |
See the documentation for more props and details.
| Prop | Type | Description | Default |
|---|---|---|---|
| aspectRatio | number | The aspect ratio | |
| minAspectRatio | number | The minimum aspect ratio | |
| maxAspectRatio | number | The maximum aspect ratio | |
| className | string | The class for root block of the stencil component | |
| previewClassName | string | The class for the preview component | |
| movingClassName | string | The class applied when user drag the stencil | |
| resizingClassName | string | The class applied when user resize the stencil | |
| boundingBoxClass | string | The class for the bounding box component | |
| handlerComponent | Component | The handler component | |
| handlers | object | The object of handlers that should be visible or hidden. | |
| handlerClassNames | object | The object of custom handler classes | |
| handlerWrapperClassNames | object | The object of custom handler wrapper classes | |
| lineComponent | Component | The handler component | |
| lines | object | The object of lines that should be visible or hidden. | |
| lineClassNames | object | The object of custom line classes | |
| lineWrapperClassNames | object | The object of custom line wrapper classes |
See the documentation for more props and details.
The source code of this library is licensed under MIT, the documentation content belongs to Norserium, except the photos that belong to their respective owners.