Image resizing changes the width and height of an image in pixels. Unlike cropping (which removes parts of the image), resizing scales the entire image up or down while keeping all the content visible.
When do you need to resize images?
- Uploading profile photos (LinkedIn requires 400×400px, Twitter requires 400×400px)
- Preparing images for blog posts (recommended: 1200×630px for featured images)
- Reducing file size before sending via email
- Fitting images into specific website layouts
- Creating thumbnails for video platforms
Social media image size guide 2025
| Platform | Recommended Size |
|---|---|
| Instagram square | 1080 × 1080px |
| Instagram story | 1080 × 1920px |
| Twitter/X post | 1200 × 675px |
| Facebook cover | 820 × 312px |
| LinkedIn post | 1200 × 627px |
| YouTube thumbnail | 1280 × 720px |
How to resize images for free
- Go to Privatool Image Resizer
- Upload your image (JPG, PNG, WebP, GIF — max 10MB)
- Enter target width and height, or select a social media preset
- Toggle aspect ratio lock to avoid distortion
- Choose output format (JPG, PNG, or WebP)
- Click Download
Your file is processed entirely in your browser using the HTML5 Canvas API. Nothing is uploaded to any server.
Tips for best results
- Always keep aspect ratio lock ON unless you intentionally want to stretch the image
- For web use, export as WebP — same quality, 30% smaller than JPG
- If you need to reduce file size too, run the result through Image Compressor after resizing
- For retina screens, double the target dimensions (e.g. 600×600 for a 300×300 display size)
Resizing vs compressing: what's the difference?
Resizing changes the pixel dimensions. Compressing reduces the file size by encoding pixel data more efficiently. For the smallest possible file, do both: resize to your target dimensions first, then compress.
Upscaling cannot add detail
Enlarging a 500px image to 2000px does not recover detail that was never captured. The algorithm invents intermediate pixels by interpolating from neighbours, which produces a larger, softer image rather than a sharper one.
This is why "enhance" in crime dramas is fiction. Modern AI upscalers do better by hallucinating plausible detail learned from training data — but plausible is not the same as accurate, which matters for anything evidential or documentary.
Practical rule: always resize down from the largest original you have. Keep originals, and generate smaller versions from them rather than resizing an already-resized copy.
Resampling algorithms
The method used to decide new pixel values changes the result noticeably:
| Algorithm | Best for | Trade-off |
|---|---|---|
| Nearest neighbour | Pixel art, sharp-edged graphics | Blocky on photographs |
| Bilinear | Fast general use | Slightly soft |
| Bicubic | Photographs — the common default | Can overshoot at hard edges |
| Lanczos | High-quality downscaling | Slower, can ring |
For pixel art, nearest neighbour is the only correct choice — anything else blurs the deliberately hard edges that define the style.
Aspect ratio and cropping
Changing an image's proportions distorts it. If a target size has a different aspect ratio from the source, you must either letterbox (add padding) or crop.
For a portrait photo becoming a square avatar, cropping is usually right — but crop from the centre of interest rather than the geometric centre, or heads end up cut off. This is why automated square thumbnails so often decapitate people.
Compute the ratio before resizing: 1920×1080 is 16:9. A target of 1200×630 is roughly 1.9:1, so a 16:9 source needs a small vertical crop rather than a squeeze.
Device pixel ratio
A "400px wide" image on a modern phone is rendered across roughly 800 or 1200 physical pixels, because high-density displays pack two or three device pixels into each CSS pixel. Supplying only a 400px image gives a visibly soft result on those screens.
Serve at 2× the layout size for retina displays, and let the browser choose:
<img src="photo-400.jpg"
srcset="photo-400.jpg 1x, photo-800.jpg 2x"
width="400" height="300" alt="...">
Always set width and height attributes. They let the browser reserve space before the image loads, which prevents the layout shift that hurts Cumulative Layout Shift scores.
Frequently asked questions
Does resizing reduce file size?
Yes, and it is usually the biggest single saving available — file size scales roughly with pixel count, so halving both dimensions cuts pixels to a quarter. Resizing before compressing beats compressing an oversized image.
What resolution do I need for print?
About 300 DPI at the physical size. A 4×6 inch print needs roughly 1200×1800 pixels. Screen images at 72 DPI look poor in print.
Why does my resized image look blurry?
Either it was upscaled, or the wrong algorithm was used, or the source was already compressed and the artefacts got magnified. Start from the highest-quality original available.
Should I resize before or after cropping?
Crop first, then resize. Cropping afterwards discards pixels you spent quality on retaining.
Are my images uploaded?
No. Resizing runs in your browser using the Canvas API, so images never leave your device — which matters for personal photos, since these frequently carry GPS coordinates in their EXIF metadata.