Crop Image
Crop a picture by dragging, with the arrow keys, or by typing pixels. The picture never leaves your device.
https://flxcode.com/crop-image/
or drop it here, or paste with Ctrl+V
JPG, PNG, WebP, HEIC, AVIF, GIF and BMP, up to 50 megapixels each. Nothing is uploaded. Location and camera data are removed from the saved file.
Works offline: load this page, edit one picture, turn off Wi-Fi, edit more. Nothing you add is sent anywhere.
Your pictures never leave this device. There is no upload, no account and no watermark. How we count
Problem or idea? Email us
How to use it
- Choose one picture. The crop box starts at 80% of it, in the middle.
- Drag the box to move it, or drag a round handle to change its size. Pick 1:1, 4:5 or 16:9 to lock the shape.
- For precision, type Left, Top, Width and Height in pixels. With the keyboard, Tab to the box and use the arrow keys.
- Press Crop and save the file.
The biggest crop of each shape from a 4000 × 3000 photo
Centred, as if the box covered the whole picture when you pick the shape. Left and Top are the corner of the crop in the original.
| Shape | Crop in px | Left, Top | Pixels kept |
|---|---|---|---|
| 1:1 | 3,000 × 3,000 | 500, 0 | 75% |
| 4:5 | 2,400 × 3,000 | 800, 0 | 60% |
| 16:9 | 4,000 × 2,250 | 0, 375 | 75% |
The same on a portrait phone photo, 3000 × 4000
A portrait photo loses the sides of the other shapes at the top and bottom instead.
| Shape | Crop in px | Left, Top | Pixels kept |
|---|---|---|---|
| 1:1 | 3,000 × 3,000 | 0, 500 | 75% |
| 4:5 | 3,000 × 3,750 | 0, 125 | 93.8% |
| 16:9 | 3,000 × 1,688 | 0, 1,156 | 42.2% |
Cropping for a shape
A shape button keeps the width to height ratio while you drag. Take 4:5 for a portrait Instagram post: from a landscape photo it keeps the full height and cuts the sides.
Typing numbers is faster when you know the size, such as a 1200 × 630 link preview. Set a shape to Free, then type Width and Height. With a shape on, type one side and the other follows.
Numbers this uses
- The start box is 3,200 × 2,400 on a 4000 × 3000 photo: 80% each way, centred.
- All crop numbers are whole pixels in the original picture, not the smaller preview on screen.
- Keyboard: arrow keys move the box 1 px, Shift makes it 10 px. Alt with an arrow key resizes the box from its bottom right corner. A handle moves its own edge with the arrows.
- Shape presets: 1:1 (square), 4:5 (portrait feed post), 16:9 (wide video frame). Free means no lock.
- The box is at least 1 × 1 px and never leaves the picture.
- JPG and WebP quality starts at 90%. Saving as the same type, a JPG stays a JPG.
- Largest picture: 50 megapixels, 100 MB. One picture at a time.
How the crop is made
The tool copies the part of the original inside your box onto a new canvas, at the original resolution. Nothing is resized, so there is no blur from scaling.
JPG and WebP are saved again, which loses a little. PNG is saved without loss. The saved file has no location or camera tags.
Pictures are opened and saved by your browser. A finished run counts one event, "crop", and never a file name, size or dimension (details). Zip files are made with fflate and HEIC decoding uses libheif: open source used on this site.
FAQ
How do I crop a photo to a square?
Pick the 1:1 shape. The box turns into the biggest square that fits, and you can drag it to the part you want. Drag a corner handle to make the square smaller.
How do I crop to an exact size in pixels?
Set the shape to Free, then type Width and Height in the fields below the picture, and Left and Top to place it. The numbers are pixels in the original picture.
Can I crop with the keyboard?
Yes. Tab to the crop box and use the arrow keys to move it 1 pixel, or 10 with Shift. Tab on to a round handle to move one edge. Alt with an arrow key on the box changes its size.
Does cropping lower the quality?
The pixels inside the box are copied as they are. A JPG or WebP is saved again, which adds a little loss. Pick PNG under "Save as" if you need none, at the cost of a bigger file.
What aspect ratio is best for Instagram?
4:5 for a portrait feed post, 1:1 for a square one, and 16:9 for video-shaped images. These are the shapes the feed shows without cutting the edges.
Can I undo a crop?
Your original file is never changed. Edit the box and press Crop again to get another version, or choose the picture again to start over.
Can I crop a circle?
No. Crops here are rectangles. A circle needs a see-through corner area, which would make the file bigger and is better done in a design tool.
Are my pictures uploaded?
No. The picture is read and edited by your browser on this device. To check it, load this page, switch to airplane mode and edit a file. It still works. The picture and its file name are never put in the address, saved or counted.
More from FLXCode
Image ResizerNew
Resize photos by pixels, percent or preset for Instagram and email. Batch and zip. Nothing is uploaded.
Rotate ImageNew
Rotate a picture by 90 degrees or any angle, with a filled or see-through background. Nothing is uploaded.
Flip ImageNew
Flip a picture horizontally or vertically and turn it by 90 degrees, with a live preview. Nothing is uploaded.
Remove Background from ImageNew
Cut the background out of product, object and pet photos in your browser. Nothing is uploaded.