Crop, rotate and flip an image

Crop, rotate and flip an image locally with a mobile-friendly browser editor.

Runs locallyNo uploadYou control saved copies

Crop area
Rotate and flip

Rotation: 0°

Processing happens in a worker on this device.

Crop, rotate or flip an image locally

This editor performs geometric changes on decoded pixels in a worker. Crop presets remove outside areas, rotation changes orientation, and flips mirror the visible image.

Complete the task

  1. Choose a source and select the required crop or orientation change.
  2. Review the calculated output width and height.
  3. Process once, inspect the preview and download the newly encoded image.
Output
Cropping permanently excludes pixels outside the chosen rectangle. Rotation and flipping move pixels but do not correct perspective or camera lens distortion.
Verify
Look for clipped hair, document corners and reversed writing. A horizontal flip mirrors text as well as the subject.
Boundary
The browser decodes the image before editing, so the decoded pixel count—not only the compressed file size—determines whether it fits safely on the device.

Crop the correct source pixels, then rotate or mirror the result

Trim a screenshot, correct a sideways photograph or extract a detail from an image. This editor crops rectangles, rotates in quarter turns and flips horizontally or vertically. It exports a new JPG or WebP without changing the source.

Crop coordinates describe the decoded source image, not the size of its preview on your screen. X and Y locate the top-left corner of the rectangle; width and height say how many source pixels to retain. The chosen region is then transformed. Inspect the exported image to confirm the crop, since the on-page transformation preview shows rotation and flips without an exact crop preview.

Choose the smallest edit that matches your task

Choose an approach for your document
Your situationRecommended approach
Trim known margins from a screenshotEnter pixel coordinates and dimensions. For a source width W, keep X + width at or below W; use the equivalent check for Y and source height.
Make a centred squareChoose Center square. It retains a square equal to the shorter source dimension and centres it on the longer one.
A picture is sidewaysUse Full image and Rotate left or Rotate right. Each press changes the angle by 90 degrees, and a quarter-turn swaps output width and height.
The image must have a different pixel sizeUse Image resizer after choosing the content to keep. This editor's crop reduces the retained area; it does not provide an independent resizing control.

Make a 400 × 600 rotated crop from the sample

The document-photo.png source is 1200 × 800 pixels. A known crop makes it possible to check both the selected region and the quarter-turn dimensions.

  1. Choose document-photo.png. In Crop area, set X to 100, Y to 100, width to 600 and height to 400.
  2. Select Rotate right once and confirm Rotation: 90°. Leave both flip controls off.
  3. Choose JPG as Output format and select Apply edits. Check that Output reports 400 × 600 pixels.
  4. Download and open the result. Compare it with the rectangle from source coordinates (100, 100) to (700, 500), rotated clockwise.

Expected result. A 600 × 400 source rectangle becomes a 400 × 600 output after the 90-degree rotation. Its visible content comes from that rectangle, not from a resize of the whole source. JPG encoding can introduce small pixel differences.

Check the downloaded result

  • Check all four crop boundaries at full resolution. Confirm that small text, a signature or the edge of the intended subject was not cut off.
  • Compare an asymmetric detail, such as lettering, to check the final orientation. A mirrored result can look plausible until you try to read it.
  • Review the Output dimensions before sharing. A 180-degree rotation keeps width and height unchanged; 90 and 270 degrees swap them.
  • Open the downloaded image rather than relying on the preview. Check transparency and compression around text, then confirm you are sharing the edited copy.

Troubleshooting

The crop area must stay inside the source image

The crop extends outside the image or has an empty dimension. X and width can each be valid numbers while their sum still exceeds the source width.

Try this: Read the source dimensions, then ensure X and Y are nonnegative and both retained dimensions are positive. Use Full image to restore a valid starting rectangle.

Changing crop numbers does not visibly crop the preview

The preview applies rotation and flip transforms to the source picture. It is not a live rendering of the numeric crop rectangle.

Try this: Apply edits and inspect the result preview or downloaded file. Adjust the coordinates and run again from the original when necessary.

The image is mirrored in an unexpected direction

Flips and rotation combine; a horizontal flip is applied in the image's transform coordinates, which can feel different after a quarter turn.

Try this: Turn both flips off, establish the desired rotation, and test one flip at a time. Use visible text or another asymmetric feature to verify the result.

A transparent background becomes white

JPG cannot store transparency and this export fills the background with white.

Try this: Choose WebP when transparency is required and the recipient supports it. Inspect the exported edges; this editor does not offer PNG output.

Limits and compatibility

Export and quality
JPG and WebP use fixed-quality encoding here; there is no quality slider, free-angle rotation, perspective correction, layers or retouching. Repeatedly editing exports can accumulate compression loss.
Browser and memory
Processing is local and can use a compatibility fallback. Large decoded images face device memory limits, and selecting a HEIC/HEIF file does not ensure the browser can decode it.

Your files and form values are processed on this device. Downloaded copies remain wherever you save them. See how to check local processing and our privacy policy for site data and optional services.

Common questions

Does cropping securely remove everything outside the rectangle?
The exported raster is drawn from the selected rectangle, so omitted surrounding pixels are not part of that new visible image. Still review retained pixels, metadata and the filename before sharing sensitive material.
Can I return to the original after downloading?
The original local file is unchanged. Keep it as your editing source; the smaller exported crop does not contain the discarded area for a later uncrop operation.

Continue your document workflow

Maintained by Shakti Prasad Ram. Found a mismatch? Report the tool, browser and steps without sending a sensitive document. Back to the tool