Image Resizer

New width—
New height—
Aspect ratio—
Megapixels—
Uncompressed size (RGB)—

How Image Resizer is calculated: New height = original height × new width ÷ original width — the aspect ratio never changes

What is an image resizer?

An image resizer changes the pixel dimensions of a picture — its width and height — without stretching it or changing what is in it. A photo that is 4000 pixels wide becomes 800 pixels wide, and the height shrinks by the same proportion, so circles stay circles and faces stay the right shape. The picture itself does not change; only its size in pixels changes.

People resize images every day for practical reasons. A blogger shrinks a 6 MB phone photo before uploading it to a post. An online seller makes every product photo the same width so the shop page looks tidy. A job seeker cuts a scanned certificate down to the size a form accepts. A student shrinks a diagram so it fits inside a document without pushing the text around.

This image resizer works entirely in your browser. When you choose a file, it is read on your own device, drawn onto a canvas at the new size, and offered back to you as a download. Nothing is uploaded to any server, so your photos stay private, and the tool works even on a slow connection once the page has loaded.

How image resizing works

Every digital image is a grid of pixels. A 1920 × 1080 photo has 1,920 columns and 1,080 rows of pixels — about 2.1 million pixels in total. Resizing means building a new, smaller (or larger) grid and deciding what colour each new pixel should be, based on the pixels around it in the original. The browser does this sampling for you when it draws the image onto a canvas at the new size.

The one rule that matters is the aspect ratio: the ratio of width to height. A 1920 × 1080 photo has a 16:9 ratio. If you set the new width to 800 pixels, the new height must be 450 pixels to keep 16:9. The formula is simple — new height = original height × new width ÷ original width. This tool applies that formula for you, so you never have to do the division yourself.

If you change the width and the height independently, the picture stretches or squashes. That is why this resizer only ever asks for one target dimension (or a percentage) and works out the other one itself. If you want to check a ratio before resizing, our aspect ratio converter shows the ratio of any width and height pair in seconds.

Resize by width, height, percentage, or max dimension

The most common way to resize is by width. Websites and blogs usually care about width: a content column might be 800 pixels wide, so every image wider than that gets cut down to 800. You type the width you want, and the height follows automatically. A 4000 × 3000 photo resized to 800 wide becomes 800 × 600.

Resizing by height works the same way in reverse, and it is useful for profile pictures and banners that must fit a fixed height. A 4000 × 3000 photo resized to 600 tall becomes 800 × 600 as well, because the ratio is the same. The percentage mode is the simplest of all: 50% halves both dimensions, 25% quarters them. A 4000 × 3000 photo at 50% becomes 2000 × 1500, and at 25% it becomes 1000 × 750.

The max-dimension mode is for mixed batches where some photos are landscape and some are portrait. You set one number, say 1000, and the longer side of every image becomes 1000 pixels while the shorter side follows the ratio. A 4000 × 3000 landscape photo becomes 1000 × 750, and a 3000 × 4000 portrait photo becomes 750 × 1000. The resolution converter is handy alongside this if you want to compare what different sizes mean in megapixels.

A worked example: shrinking a phone photo for a blog

Take a typical phone photo, 4032 × 3024 pixels, about 12.2 megapixels. It is far too big for a blog post, where the content column is 800 pixels wide. Set the mode to target width and type 800. The tool works out the height: 3024 × 800 ÷ 4032 = 600. The resized image is 800 × 600 pixels, still 4:3, with 0.5 megapixels — one twenty-fourth of the original pixel count.

The uncompressed size tells the same story in bytes. An 800 × 600 image holds 480,000 pixels, and at 3 bytes per pixel (red, green, blue) that is 1,440,000 bytes, about 1.37 MB before compression. The original 4032 × 3024 image is about 34.9 MB uncompressed. The actual downloaded file will be much smaller than either number, because JPEG compression squeezes the data — but the ratio between the two stays roughly the same.

Now try the percentage mode on the same photo. At 25%, the width becomes 4032 × 0.25 = 1008 and the height becomes 3024 × 0.25 = 756. At 50% it becomes 2016 × 1512. Notice that halving each side quarters the pixel count: a 50% resize is one quarter of the pixels, and a 25% resize is one sixteenth. That is why even a modest resize makes such a big difference to file size and page speed.

Why resize images before uploading them

The biggest reason is speed. A web page with five 6 MB photos takes seconds to load on a mobile connection, and most visitors leave before it finishes. The same page with five 150 KB photos loads almost instantly. Search engines also rank faster pages higher, so resizing is one of the cheapest speed wins a site owner can get. Our pixel converter helps if you are converting between pixel counts and other screen units while planning sizes.

The second reason is limits. Upload forms, email attachments, and messaging apps all cap file sizes — often at 2 MB, 5 MB, or 10 MB. A phone photo straight from the camera is frequently over those limits, and the form simply rejects it. Resizing to the size the form actually needs almost always brings the file under the limit without any visible loss.

The third reason is consistency. A shop, a gallery, or a team page looks far more professional when every image is the same width. Mixed sizes make layouts jump around as the page loads. Resizing every image to one standard width before uploading keeps the layout steady and the design clean.

Image resizer vs image compressor: which do you need?

A resizer and a compressor solve different problems, and people often mix them up. A resizer changes the pixel dimensions: 4000 × 3000 becomes 800 × 600. A compressor keeps the dimensions the same but squeezes the file smaller by throwing away fine detail you cannot see, or by re-encoding it more efficiently. If your photo is too big in pixels, you need a resizer. If it is the right size but the file is still heavy, you need a compressor.

In practice, most photos need both. A 4000 × 3000 phone photo is 6 MB; resizing it to 800 × 600 might bring it to 400 KB, and compressing that at 85% quality might bring it to 120 KB. The two steps multiply: resize first, then compress. Try our image compressor after resizing if the file is still heavier than you want — it handles JPEG, PNG, and WebP with a quality slider.

One warning: resizing down is safe, but resizing up is not. Enlarging a small image does not add detail; it just stretches the pixels you already have, so the result looks soft or blocky. If you only have a 300 × 200 image, no resizer can turn it into a sharp 3000 × 2000 one. Always keep the original file and resize a copy, so you can go back if you change your mind.

Common mistakes when resizing images

The most common mistake is stretching: setting the width and height independently and ignoring the ratio. A 16:9 photo forced into a square frame makes everyone in it look short and wide. Always let one dimension follow the other. This tool enforces that by design — you set one side, and it works out the other.

The second mistake is upscaling: enlarging a small image to fit a big space. A 500-pixel-wide logo stretched to 2000 pixels will look blurry on a large screen, and no amount of sharpening fixes it. If you need a bigger image, you need a bigger original, or a vector version of the graphic.

The third mistake is saving photos as PNG. PNG is perfect for screenshots, logos, and graphics with flat colours, but it is a terrible format for photographs — a PNG photo can be five times larger than the same photo as a JPEG. Resize the photo, then save it as JPEG (or WebP) for the smallest file. And the fourth mistake is resizing your only copy: always work on a copy, because a resized-down image can never be restored to its original pixels.

How to use this image resizer

First, choose an image with the file picker. JPEG, PNG, and WebP files work; other formats are rejected with a clear message, because those are the three formats a browser canvas can reliably encode. As soon as the image loads, its real width and height fill in automatically above, and a resized preview appears below with a download button.

Next, pick a resize mode and a target. For a blog, choose target width and type 800. For a profile picture, choose target height. For a quick shrink, choose percentage and set 50%. The results box updates live as you type, showing the new width and height, the aspect ratio, the megapixel count, and the uncompressed size, so you can check the numbers before downloading.

Finally, download the resized image. The file keeps its original format — a JPEG stays a JPEG, a PNG stays a PNG — and the quality is fixed at 92% for JPEG and WebP, which is visually identical to the original for almost every photo. The file name gets a -resized suffix so your original is never overwritten. Your image never leaves your device: the whole process runs in your browser, and closing the page deletes everything. If the framing is wrong before you resize, crop it first with our image cropper — then resize the cropped result.

Frequently Asked Questions

Resizing down barely affects visible quality: a 4000-pixel photo shrunk to 800 pixels still looks sharp on screen, because screens rarely show more than 800–1200 pixels wide. Resizing up is different — enlarging a small image stretches its pixels, so it looks soft or blocky. As a rule, only resize down, and keep the original file.

JPEG, PNG, and WebP. These are the three formats a browser canvas can reliably read and write, so the tool accepts them and rejects anything else with a clear message. The resized file keeps the same format as the original — a JPEG stays a JPEG, a PNG stays a PNG.

No. The file is read on your own device, drawn onto a canvas in your browser at the new size, and offered back as a download. Nothing is sent to any server, so your photos stay private, and the tool works even on a slow connection once the page has loaded.

A good rule is 1200 pixels wide for a large hero image, 800 pixels wide for images inside an article, and 300 pixels wide for thumbnails. Most screens show at most 800–1200 pixels of image width, so anything larger only wastes bandwidth and slows the page down.

More free tools

More calculators and utilities from Sortrun — free, no sign-up.