What this tool does
Make a deliberate crop and orientation change without uploading the source image or relying on a remote editor.
How to use it
- Choose a JPG, PNG or WebP image and confirm its dimensions.
- Enter the crop rectangle and choose rotation and flips.
- Process the preview, inspect edges and download the PNG.
Formula and method
The browser decodes the source, crops the entered source-pixel rectangle, applies horizontal and vertical flips on the cropped source axes, rotates clockwise around the center in 90-degree steps, and encodes a new PNG with Canvas.
Example
For a 1200×800 source, cropping x=100, y=50, 600×400 and rotating 90° produces a 400×600 output.
Useful for
- Correcting photo orientation
- Cropping a precise product area
- Creating a mirrored or rotated PNG copy
Limits and notes
JPG, PNG and WebP files up to 25 MB and decoded images up to 40 megapixels are accepted. The crop must use whole pixels and stay inside the source. Canvas PNG export can change color handling and discards source metadata, animation and layers; available memory still depends on the device.
Frequently asked questions
Does this change the original file?
No. It creates a separate PNG download and leaves the selected file unchanged.
Can I crop by dragging?
This version uses exact pixel coordinates for keyboard-friendly, reproducible crops.