Resize image

Change a picture's width and height to an exact pixel size, or scale it by percent. Keep the proportions or stretch. Your pictures stay in your browser.

Resize image

How to resize an image

  1. Add your pictures: drag JPG, PNG, WebP or AVIF files onto the box above or click to browse. Up to 50 at a time.
  2. Choose Resize by. For Pixels, type a Width, a Height or both. Leave one empty and the tool works it out. For Percent, type the percent.
  3. Keep the proportions ticked unless you want exactly the pixels you typed, even if the picture stretches.
  4. Pick an Output format and a Quality if you want to change them, then click Resize images.
  5. Download each file, or click Download all as ZIP. Names carry the new size, such as photo-640x480.jpg.

What this image resizer does

You add pictures, tell the tool the size you want, and get a resized copy of each. The size is in pixels, the width and height of the picture, not the size of the file. Seven settings control the result. Resize by is Pixels or Percent. Width and Height are empty until you fill them, and leaving one empty makes the tool work it out from the other. Percent starts at 50. Keep the proportions is ticked by default. Output format is the original format, JPG, PNG or WebP, and Quality runs from 10 to 100 and starts at 85. Resizing uses a Lanczos3 filter.

Resizing is not cropping. Every part of the picture stays and the whole thing gets bigger or smaller. This tool has no crop. It also has no presets, no DPI field and no before-and-after view, and one set of options applies to every file you add.

Nothing leaves your browser. We opened the page in a test browser, added a photo and recorded all traffic: 27 requests, none carrying data, and the hosts outside GramFile were Google's ad and analytics services, which load on every GramFile page, and jsDelivr (the codecs). Only Chromium was tested. Each result has its new size in its name: our file photo-1280x960.jpg came back as photo-1280x960-640x480.jpg.

Width, height and keeping the proportions

With the proportions kept, a single number is enough. Our 1280 by 960 test photo became 640 by 480 with a width of 640 and also with a height of 480. The other side is rounded to a whole pixel, so a width of 333 gave 333 by 250, from 249.75.

When you fill in both fields, the tool fits the picture inside that box without stretching. A 500 by 500 box gave 500 by 375. A 2000 by 500 box gave 667 by 500, because the height limit is reached first. The picture is never forced to fill the box. To get exactly the pixels you typed, untick Keep the proportions: the same 500 by 500 box then gave a squashed 500 by 500 picture. With the box ticked off and only a width typed, the height is still worked out, so we got 640 by 480.

Resizing by percent

Percent applies to both sides. A 25 percent resize of our 800 by 600 PNG gave 200 by 150 pixels and 45,749 bytes, against 620,844 for the original. At 50 percent our photo became 640 by 480. At 200 percent it became 2560 by 1920.

The tool has limits. No side can pass 20,000 pixels and the whole picture cannot pass 100 million. Our photo at 1000 percent would be 12800 by 9600, and the tool refused it with "The new size is larger than the browser can handle, use a smaller one." Typing a width of 25,000 got the same message. Percent 0, or leaving every field empty, gives "Enter a width, a height or a percent first."

Making a picture bigger

Enlarging is allowed, but it adds pixels and not detail. The picture gets no sharper, and the file gets much bigger. Our 1280 by 960 WebP is 19,836 bytes. Enlarged to 2000 by 1500 it was 39,188 bytes as WebP and 2,792,947 as PNG. The page shows only the old and new pixel size and gives no warning about this. If a form asks for a larger picture than you have, check whether a larger original exists.

File size, format and quality

Fewer pixels usually means a smaller file, but format and quality decide how much. Our photo at 640 by 480 came to 16,799 bytes as a JPG at the default quality of 85. At quality 100 it was 264,402 bytes, at 50 it was 6,342 and at 10 it was 2,301. As WebP it was 9,314 bytes and as PNG 490,314. An AVIF stays AVIF when you keep the original format, and ours came to 9,745 bytes.

The Quality slider is labelled for JPG, WebP and AVIF, since PNG is lossless. A smaller PNG is not always a smaller file. Our transparent logo, 21,105 bytes at 600 by 600, came out at 46,660 bytes at 300 by 300. We did not look into the cause. If you need a file under a set number of bytes, use compress image to size. If you want a quality slider without changing pixels, use the image compressor.

Rotation, metadata and transparency

Width and height mean what you see. Our test photo is stored sideways at 960 by 1280 with a rotation flag. A height of 480 gave 640 by 480, upright. Camera details, date and location are dropped, and the note under each result says so.

A transparent logo kept its transparency as PNG, and its corner pixel was fully transparent. As JPG the transparent area became white. The note "Transparent areas became white" appears whenever you convert to JPG from another format, even for a photo with no transparency, as it did for our AVIF. An animated WebP comes out as one still image: our three-frame file lost two frames at 150 by 150, with no warning.

Limits and what is missing

You can add 50 files at a time, each up to 100 MB. A 51st is refused with "Only 50 files at a time." Fifty copies of our photo at a width of 640 took about 10 seconds, 198 milliseconds each on our test machine. Your computer will differ.

One setting applies to all files, and each file follows its own proportions. Three files with a width of 300 came out at 300 by 225, 300 by 225 and 300 by 300. GIF and HEIC files are refused with "this file type is not supported here." For iPhone photos, use HEIC to JPG first. A fake .jpg fails with "this is not an image this tool can read." We have not tested files near 100 MB, CMYK or 16-bit images.

Sizes for Instagram and other sites

There are no presets, so type the number yourself. Several guides built on Instagram's own advice give 1080 pixels as the width for feed photos, with 1080 by 1080 for square, 1080 by 1350 for portrait and 1080 by 566 for landscape. Instagram's help page, as quoted in those guides, says it shrinks anything wider than 1080. Typing 1080 as the width gives the right width. The height follows your photo, so a 3 by 2 photo comes out 1080 by 720, and the app may crop a ratio it does not support. Platforms change their rules, so check the current guidance before you batch a folder.

Common jobs

A form that wants exact pixels. Untick Keep the proportions and type both sides, knowing the picture will stretch. A web page or email. Set a width of 1000 or less and keep the proportions. Just the format. Use the image format converter. Pictures into a PDF. Resize them, then use image to PDF. See all the image tools.

Measured results

Sample pictures resized in headless Chromium at the default quality of 85
PictureSettingResult pixelsResult bytes
JPG 1280 by 960Width 640640 by 48016,799
JPG 1280 by 960Height 480640 by 48016,799
JPG 1280 by 960Width 333333 by 2507,495
JPG 1280 by 960Box 500 by 500, proportions kept500 by 37512,436
JPG 1280 by 960Box 500 by 500, proportions off500 by 50015,191
JPG 1280 by 960Box 2000 by 500, proportions kept667 by 50018,105
PNG 800 by 60025 percent200 by 15045,749
JPG 1280 by 960200 percent2560 by 1920331,186
JPG, sideways with rotation flagHeight 480640 by 48017,147
WebP 1280 by 960Width 2000, saved as PNG2000 by 15002,792,947

Prefer desktop software?

Use a desktop image program when you need to crop as well as resize, set a DPI value for print, apply per-file sizes, or compare before and after. This page applies one setting to every file and has no crop.

GramFile has download pages for IrfanView and XnView MP.

Frequently asked questions

Are my pictures uploaded?

No. Your browser does the work. A request log of our test showed 27 requests, none with data in it, and the outside hosts were Google's ad and analytics services and jsDelivr (the codecs).

How do I keep the proportions?

Leave Keep the proportions ticked and type one side. Our 1280 by 960 photo gave 640 by 480 from a width of 640 or a height of 480.

Can I stretch a picture to exact pixels?

Yes. Untick Keep the proportions and fill in both sides. Our 500 by 500 box made a squashed 500 by 500 picture.

What is the difference between resize and crop?

Resize scales the whole picture. Crop cuts parts away. This tool only resizes.

Can I make a picture bigger?

Yes, but it gets no sharper. Our 19,836 byte WebP enlarged to 2000 by 1500 became 2,792,947 bytes as PNG.

Why did my photo come out upright?

The tool reads the rotation flag first, so width and height mean what you see. Our sideways photo came out upright.

Why is my resized PNG bigger?

It can happen. Our transparent logo grew from 21,105 to 46,660 bytes at half the width. For a byte limit, use compress image to size.

Does it keep transparency?

As PNG and WebP, yes. JPG turns transparent areas white.

What size should I use for Instagram?

Guides built on Instagram advice say 1080 pixels wide. Type 1080 as the width and keep the proportions. There are no presets and no crop.

How many pictures at once?

Up to 50, each up to 100 MB, with one setting for all. Fifty took about 10 seconds in our test.