Resize an image
Type the longest edge you need in pixels and get a smaller copy of your photo with its proportions intact.
or drop them here · files stay on your device
We count formats and sizes. Filenames stay private unless you opt in.
Downloads a small public example. Your own files are not used.
- Runs on your device
- No sign-up or watermark
- No fixed file size cap
The short answer
To resize an image, open it here and type the longest edge you want in pixels, for example 1080 or 2048. The other side is scaled in proportion, so nothing is stretched. The resize runs in your browser and the photo is never uploaded. This tool only shrinks; an image already smaller than your number keeps its size.
A worked example
See a real input and result
This synthetic sample produced 1 output file from 1 input file. These are synthetic demonstration files, not someone’s documents.
- Input count
- 1
- Output count
- 1
- Before
- 507 KB
- After
- 7 KB
- Change
- 99% smaller
- Dimensions
- 400 × 300
- Input 1 dimensions
- 1600 × 1200 px
- Output 1 dimensions
- 400 × 300 px
- Input bytes
- 518998
- Downloadable output bytes
- 7544
Settings used: format: jpg · maxEdge: 400 · quality: 85
This synthetic sample only; results depend on the input.
Ran through this tool on . Use “Try sample files” above to run it yourself.
How to resize an image to a specific size in pixels
- STEP 1
Open your image
Drop one photo on the page or choose it from your device. HEIC and TIFF decode as well as JPEG, PNG and WebP.
- STEP 2
Enter the longest edge
Type a pixel value in Longest edge (px). The default is 2048; 1080 suits social posts and 1920 suits most screens.
- STEP 3
Choose format and quality
JPEG is the default output. Pick PNG to keep transparency, or WebP or AVIF for smaller files, and adjust Quality if needed.
- STEP 4
Save the resized copy
The report shows dimensions for the first image and combined sizes for a batch. Check each downloaded image if dimensions matter; your originals are left as they were.
Resizing versus cropping versus compressing
Resizing changes how many pixels an image has. Shrinking a 4032 by 3024 phone photo to a longest edge of 2048 gives 2048 by 1536: the whole picture is still there, just with fewer pixels, so it is lighter and quicker to load.
Cropping is different: it cuts part of the picture away to change its shape. Compressing keeps the pixel count and reduces how many bytes each pixel costs. Resizing is often the most effective way to cut file size, because halving both dimensions leaves a quarter of the pixels.
Setting the longest edge rather than width and height is a simple way to resize portrait and landscape photos with one number. A 2048-pixel cap fits both a tall phone shot and a wide panorama without distorting either.
What survives, and what does not
The photo is decoded in your browser and drawn onto a canvas at the new size with the browser’s high-quality smoothing, then encoded in the format you pick. The scale factor is the longest edge you asked for divided by the image’s longest edge, applied to both sides, so the aspect ratio is always preserved.
What you keep
The aspect ratio; nothing is stretched or squashed
The whole frame; nothing is cropped away
Transparency, if you choose PNG or WebP
What you lose
Pixels, by design, when the image is scaled down
EXIF and GPS metadata, dropped on re-encode
No enlarging, no exact width-and-height box and no percentage mode; use the upscaler to make images bigger
Honest limits are published on every tool page. If a tool cannot do something well, it says so here rather than letting you find out after the download.
Resize an image at a glance
| Input | JPEG, PNG, WebP, AVIF, GIF, BMP, HEIC, TIFF |
|---|---|
| Output | JPEG, PNG, WebP or AVIF |
| Resize mode | Longest edge in pixels, 16 to 12000 |
| Aspect ratio | Always kept |
| Runs on | Your device, in the browser |
| Works offline | After the first visit |
If something goes wrong
The image did not change size
It was already smaller than the longest edge you entered. This tool never enlarges; lower the number, or use the upscaler if you need it bigger.
I need an exact width and height, like 1200 by 628
Crop to that ratio in an image editor first, then set the longest edge here. This tool keeps proportions and only shrinks, so the cropped source must be at least as large as your target.
The background turned white
JPEG has no transparency, so see-through areas are filled with white. Choose PNG or WebP as the output format to keep them.
Resize an image questions
How do I resize a photo without losing quality?
Shrinking always removes pixels, but done with good resampling it looks clean, because the screen was not showing that detail anyway. Keep Quality around 85 or above for JPEG, or choose PNG for a lossless result at the new size.
How do I resize an image to 1080 pixels for Instagram?
Enter 1080 in Longest edge. A square photo becomes 1080 by 1080 and a portrait one becomes 1080 pixels tall. If you also need a specific shape such as 4:5, crop to that ratio first.
Does resizing keep the aspect ratio?
Always. Both sides are multiplied by the same factor, so a 4:3 photo stays 4:3. There is no way to stretch an image here, which also means you cannot set width and height independently.
Is my photo uploaded to resize it?
No. Decoding, scaling and encoding all happen inside your browser tab. The page keeps working with the network switched off once it has loaded, which is a quick way to see that nothing is being sent.
Can I resize an image on my iPhone?
Yes. Open the page in Safari, choose a photo from your library, set the longest edge and save the result to Files or Photos. iPhone HEIC photos are supported directly.
Can I make a small image bigger here?
No. Resize only scales down. To enlarge, use the upscale tool, which doubles, triples or quadruples the dimensions with clean resampling, though it cannot add detail the original never had.