How do I resize or crop an image to an exact size?
Enter a width and height, or a percentage, and the tool rescales the image on a canvas; anything outside the crop box is trimmed. The result is produced locally, so the original image is never uploaded.
Runs entirely in your browser · no upload · no account · no watermark
- Choose the image you want to resize.
- Enter a width and height, or a percentage, and pick a crop ratio if you need one.
- Resize, then download the result.
JPEG, PNG, WebP or AVIF. The file is read by this page and never sent anywhere.
Overrides the dimensions above.
Centred; “None” keeps the full frame.
Applies to lossy formats only.
What this page can do
- Scale by width, height or percentage, with the aspect ratio locked
- Crop to a fixed aspect ratio
- Choose the output format and quality
- Files are never uploaded
When to use this page
- A form asks for an exact pixel size, such as a passport photo or a social cover.
- Scaling a batch of images by a percentage before sharing them.
- Cropping to a fixed aspect ratio with predictable dimensions.
When to use something else
- You need subject-aware cropping, face detection or content-aware fill.
- You are enlarging a small image and expect missing detail to be restored.
- You need a choice of resampling algorithm or output sharpening.
How it compares with other options
Canvas uses the browser’s built-in scaling, which is fast but plain; ImageMagick, Photoshop and dedicated upscalers offer Lanczos or bicubic resampling, sharpening, and AI-based enlargement. This tool changes geometry only. Enlarging a photo makes it bigger, not sharper, and cropping is a fixed rectangle rather than a decision about what matters in the frame.
Where your files go
Nowhere. This page loads the code that does the work, and from then on the file you open is read by your own browser. There is no upload step, no temporary server copy and no cleanup to trust — the data never crosses the network, so there is nothing to delete afterwards. You can confirm it yourself: open your browser’s network panel while the tool runs and watch it stay quiet.
Questions about this tool
- What does the aspect-ratio lock actually do?
- When it is on, typing a width recalculates the height to keep the original proportion, so the picture is never stretched. Turn it off to set both sides independently — useful when a form demands an exact size such as 600×600 even if that squashes the subject.
- Where does the crop cut from?
- The crop is centred: the tool keeps the largest region of the image that matches the ratio you picked and discards equal margins on both sides. For example, a 16:9 crop of a square photo trims the same amount from the top and bottom.
- Will resizing up make my image sharper?
- No. Enlarging cannot invent detail that was not captured — the canvas interpolates between existing pixels, so a 2× upscale looks softer, not sharper. Downscaling does discard pixels and can genuinely improve apparent sharpness. The browser also applies any EXIF orientation tag on load, but the re-encoded output carries no metadata.
Other tools in the same group
Guides
- How to compress an image without losing visible qualityRe-encode a JPEG, PNG or WebP at a quality you choose, with the before and after size side by side. Runs in your browser.
- How to resize a photo for an online form and get under the size limitPassport photos, visa applications and job portals all want exact pixels and kilobytes. Here is how to hit both without a photo editor.