Scale by ratio, set exact pixels or crop to meet any platform's size requirements
The screenshot below was taken in this tool with a real file and the stated settings — it is not a mock-up.
Tip: All processing happens in your browser: images are never uploaded to a server. Results live only on this page, so download them promptly.
Resizing means resampling the pixel grid. When shrinking, many source pixels merge into one and the browser averages them so edges stay smooth. When enlarging, colours must be invented for positions that did not exist before, inferred only from neighbouring pixels.
That is why shrinking is almost always safe while enlarging blurs: shrinking discards excess information, enlarging has to fabricate it. However good the interpolation (bilinear, bicubic), it can only smooth the transitions — it cannot recover real detail.
The other key point is aspect ratio. Changing width without height stretches the image. Keeping the ratio means multiplying both by the same factor.
| WeChat avatar | 640 × 640 px (square) |
|---|---|
| WeChat Moments cover | 1080 × 1080 px |
| Taobao hero image | 800 × 800 px or larger, square recommended |
| Instagram post | 1080 × 1080 px |
| WeChat article cover | 900 × 383 px (2.35 : 1) |
| Web images | Output at the width actually displayed; a long edge of 1200–2000 px is typical |
Shrinking is safe, enlarging costs sharpness. Keep the original and work on a copy.
The mode selector is not cosmetic; each option computes the output size by a different rule, and mixing them up is the most common reason a resized image comes back distorted.
Math.round, so an odd size can drift by one pixel.That last one deserves a clear statement, because the page subtitle mentions cropping and the code does not crop. A preset sets the canvas to those dimensions and draws the whole image into it. A landscape photo sent to 1080×1350 is squeezed, not trimmed. To fill a portrait frame without distortion, resize with the aspect lock to the matching long edge, then cut the surplus with Crop Image.
Rounding twice is harmless on large images and visible on small ones. Take a 999 × 1000 px file and scale it to 33%: the height becomes 330 and the width 330, so a 0.999 aspect ratio quietly becomes 1.000. Take 1001 × 1000 at 50%: 500 and 500, and the change is invisible. The drift only matters when you are matching a strict pixel box — an ID photo, a marketplace thumbnail, a favicon source — where the receiving system checks dimensions rather than appearance.
Scaling down also crosses a quality threshold. Halving is gentle, because the browser's smoothing has four source pixels for every destination pixel. Going from 1200 px to 120 px is a ten-to-one reduction, and thin lines, small type and one-pixel borders turn into grey mush. For anything below about 25% of the original, resize in two steps — 50%, then 50% again — and compare; the two-step version usually keeps stems and edges cleaner.
Before any resize happens, the editor fits the source onto a canvas whose longest side is at most 3000 px and reports the reduction underneath the original preview. Every mode then works from that canvas. Two consequences follow. First, "By ratio 100%" on a 6000 px photo returns a 3000 px file, not the original size. Second, upscaling to 300% produces 9000 px of interpolated pixels that contain no more detail than the 3000 px source — useful for meeting a minimum-size requirement, useless for recovering sharpness.
When the original really must be preserved at full resolution, do the resize outside the browser, or accept the cap and keep the untouched file as the master.
Platform specs are usually written as a pixel box plus a maximum file size, and the order matters. Resize first to the box, because interpolation changes the pixel count; compress second, because the encoder can then spend the byte budget on the final dimensions. Doing it the other way round means compressing pixels you are about to throw away, and often resizing after compression re-exposes artefacts that the smaller canvas would have hidden.
For social sharing cards the 1200×630 preset is exact and needs no crop on a 1.91:1 source; a square source will be stretched. For a store front image at 800×800 the same rule applies: crop to square first, then apply the preset, and the result is undistorted by construction.