Image Resizer

Resize JPG, PNG and WebP images in your browser: to pixels, a longest side, a percent or a print size. Nothing is uploaded.

Your pictures stay on this device. They are resized in your browser and are never uploaded.

JPG, PNG or WebP, also BMP, AVIF and GIF. One picture or many at once. You can also paste a picture.

The choices are as you left them last time. They are remembered on this device and nowhere else.

How to give the new size
× pixels

Give one of the two and the other follows each picture's shape. Give both to set a size the picture has to fit.

pixels

For a pile of pictures of many shapes: a wide one gets this width and a tall one this height. A picture that is smaller already stays as it is.

%

50% halves the width and the height, so the picture has a quarter of its pixels. Over 100% makes it larger.

×

A print shop asks for 300 dots an inch; 150 is enough for a poster seen from a distance. The page works out the pixels that size needs and writes the dots an inch into the file, so a program that prints it knows how large it is meant to be.

Or drag the picture below: the part you pull into view stays. Each picture keeps the place you give it.

Automatic: a JPG keeps the quality it was saved at, between 80 and 95, and another picture saved as JPG gets 90. A WebP gets 90, or 100 when the picture came without loss, as a PNG or a BMP does.

For a pile of pictures of many sizes: the large ones are made smaller, and one that is smaller than the size asked for stays as it is.

A JPG keeps them unless you tick this. They do not go along into a WebP or PNG.

A piece of the resized picture at its real size
Drag it to see another part. The yellow frame on the picture above shows where it is.

Rate this tool

How useful was this tool?

Image Resizer

This image resizer makes JPG, PNG and WebP pictures smaller or larger in your browser: to a size in pixels, to a longest side, by percent, or to a print size in cm, mm or inches. BMP, AVIF and GIF pictures work too. Click Choose pictures, or drop them here, drop one picture or many on it, or paste a picture. Then say how large they should be under How to give the new size. Each picture is resized as soon as there is a size, and again whenever you change a choice. Its line in the list says what came out, and Download saves it. With more than one picture, Download all as a ZIP saves them all.

All the work happens in your browser. As the page says: “Your pictures stay on this device. They are resized in your browser and are never uploaded.”

Your choices are kept too, in your browser's own storage: the size, the shape rule, the format, the quality, the way the pixels are made and the two ticks. When you come back and add a picture, and they differ from how the page starts, a line above the choices says “The choices are as you left them last time. They are remembered on this device and nowhere else.” Its button Start afresh sets every choice back to how the page starts.

Resize an image to a size in pixels

In pixels is chosen at the start. Type a Width, a Height, or both:

Give one of the two and the other follows each picture's shape. Give both to set a size the picture has to fit.

The empty box shows the number that follows, for the picture shown above the list. Until there is a size, each picture says “Give a width, a height or a longest side above, or choose a ready-made size.”

When you give both, a list appears that decides what happens to a picture whose shape is not that of the size. It is explained further down.

Resize to a longest side

Under the width and the height is a third box, Or its longest side:

For a pile of pictures of many shapes: a wide one gets this width and a tall one this height. A picture that is smaller already stays as it is.

Type 1,920 there, and a wide photo comes out 1,920 pixels wide while a tall one comes out 1,920 pixels tall, each with its own shape. This box stands in place of the width and the height: typing in it empties them, and typing a width or a height empties it. It never makes a picture larger. A picture that is smaller already comes back untouched in its own format, with a line such as “Its longest side is 200 pixels, under the 640 asked for. You get the original back, untouched.” Saved in another format, it keeps its size and says “Its longest side is 200 pixels, under the 640 asked for, so it was not made larger.” To make small pictures larger, give a width, a height or a percent instead.

Ready-made sizes

Ready-made sizes fills in the boxes for you. The lists name shapes and sizes, not websites:

Group Sizes
Screens HD: 1,280 × 720, Full HD: 1,920 × 1,080, 4K: 3,840 × 2,160
Shapes for sharing Square: 1,080 × 1,080, Portrait, 4 to 5: 1,080 × 1,350, Tall, 9 to 16: 1,080 × 1,920, Wide, for a link: 1,200 × 630
Longest side At most 3,840 pixels, 2,560, 1,920, 1,600, 1,280, 1,024, 800 and 640
Icons 512 × 512, and squares of 256, 192, 180, 128, 64, 48, 32 and 16

The sizes under Longest side fill the Or its longest side box, so they never make a picture larger. All the others fill both the width and the height, so the picture's shape counts. At the start a picture keeps its shape, so a 4,032 × 3,024 photo given Square: 1,080 × 1,080 comes out at 1,080 × 810. For a true square, let it be cut to fill the size, or add bars. Wide, for a link: 1,200 × 630 is the shape often used for the picture shown when a link is shared. For an icon from a logo that is not square, add bars that are See-through and save it as PNG, so the whole logo stays.

Resize an image by percent

By percent has one Size box, at 50 to start, and the buttons 25%, 50%, 75%, 150% and 200%. The page explains:

50% halves the width and the height, so the picture has a quarter of its pixels. Over 100% makes it larger.

The shape is always kept, and every picture in the list is scaled by the same share, whatever its size.

Resize an image for print in cm, mm or inches

For print takes a Width and a Height on paper in cm, mm or inches, and the Dots an inch, 300 at the start (from 1 to 2,400). Dots an inch is what is often called DPI. Under the boxes the page says the pixels this needs, for example “That is 413 × 531 pixels at 300 dots an inch.” Below that it says how large the picture shown can print without being made larger, for example:

The picture shown has the pixels for 130 × 173.4 mm at 300 dots an inch. Larger than that, it is made larger and looks softer.

It explains the dots an inch too:

A print shop asks for 300 dots an inch; 150 is enough for a poster seen from a distance. The page works out the pixels that size needs and writes the dots an inch into the file, so a program that prints it knows how large it is meant to be.

The dots an inch go into a JPG (in its first block, and in its camera details when it has them) and into a PNG. Each resized picture's line then gives its size on paper, such as “It says 300 dots an inch, so it prints at 35 × 45 mm.” A WebP cannot carry them, and the page says so: “A WebP does not say its dots an inch. Save it as JPG or PNG to print it at this size.”

The pixels are the inches times the dots an inch. The ready-made print sizes need these:

Ready-made sizes At 300 dots an inch At 150 dots an inch
Passport photo: 35 × 45 mm 413 × 531 207 × 266
Photo of 2 × 2 inches 600 × 600 300 × 300
Photo print: 10 × 15 cm 1,181 × 1,772 591 × 886
Photo print: 13 × 18 cm 1,535 × 2,126 768 × 1,063
A4 page: 21 × 29.7 cm 2,480 × 3,508 1,240 × 1,754
Letter page: 8.5 × 11 inches 2,550 × 3,300 1,275 × 1,650

A 12-megapixel phone photo of 4,032 × 3,024 pixels holds enough for 34.1 × 25.6 cm at 300 dots an inch. A photo of 1,536 × 2,048 pixels holds enough for 13 × 17.34 cm. Given A4 page: 21 × 29.7 cm, it is made larger, and its line says “Made larger. A picture cannot gain detail it never had, so it looks softer than one taken at this size.”

A ready-made print size fills both boxes, so the shape counts here too. Passport photo: 35 × 45 mm with the shape kept turns a 1,536 × 2,048 photo into 398 × 531 pixels, which prints at 33.7 × 45 mm. Choose It fills the size, and what sticks out is cut off to get exactly 413 × 531, and drag the picture to choose what stays. The page does not check where your face is or what is behind it, so follow the rules of the office that asks for the photo.

When the picture has another shape than the size asked for

This list appears once both a width and a height are given, in pixels or for print. Here is what each choice makes of a 4,032 × 3,024 photo given 1,080 × 1,080:

Choice What comes out The line in the list
It keeps its shape and fits inside the size (at the start) 1,080 × 810, never cut “It keeps its shape, so it does not fill the 1,080 × 1,080 asked for. To get exactly that size, let it be cut to fill it, or add bars.”
It fills the size, and what sticks out is cut off 1,080 × 1,080, with the sides cut off “Cut to the shape asked for: 3,024 × 3,024 pixels of it were kept, from the middle.”
It keeps its shape, with bars to fill the size 1,080 × 1,080: the whole photo, with a bar of 135 pixels above and below “The picture takes 1,080 × 810 pixels of it. Bars fill the rest.”
It is stretched to the size 1,080 × 1,080, pulled out of shape “Stretched: it was 1.33 times as wide as tall, and is now 1 times.”

Stretching is rarely what you want. The page says so:

The picture comes out at exactly the size asked for, pulled wider or taller than it was. Faces and circles lose their shape.

The part that stays (when the picture is cut) and Where the picture sits (with bars) offer The middle, The top, The bottom, The left and The right. The top and The bottom act only where there is room above and below: a tall photo cut to a wider shape, or a wide photo with bars above and below. The left and The right act only sideways. In the other direction the picture stays in the middle, and the line says which part was really kept. So with The left, a tall photo cut to a square reads “Cut to the shape asked for: 1,536 × 1,536 pixels of it were kept, from the middle.”

Color of the bars offers White, Black, See-through and A color of my own, which opens a color picker. A JPG cannot be see-through, so see-through bars come out white in a JPG.

Drag the part that stays

When the picture is cut to fill the size, you can choose the part that stays by hand. Under The part that stays the page says:

Or drag the picture below: the part you pull into view stays. Each picture keeps the place you give it.

Drag the picture shown above the list as you would drag a map. When you let go, the page cuts it again with the part you pulled into view, and The part that stays switches to Where I drag it. The line then reads “Cut to the shape asked for: 1,536 × 1,536 pixels of it were kept, where you put it.”

Each picture keeps its own place, so in a pile of portraits you can frame every face on its own: click a picture's small copy to show it above, then drag it. A picture you have not dragged keeps its middle, and its line says “from the middle”. The place is only for cutting: choosing another rule, such as bars, puts the picture back in the middle.

Save as and quality

Save as starts at Each picture's own format:

A JPG stays a JPG, a PNG a PNG and a WebP a WebP. A BMP, AVIF or GIF picture is saved as JPG, or as PNG when it has see-through parts.

Choose JPG, WebP or PNG to save every picture in one format. The page says what each means:

  • JPG: “A JPG has no see-through parts: what shows through is laid on white, or on the color of the bars.”
  • WebP: “WebP is written by your browser. The camera details do not go along.” The dots an inch for print do not go along either.
  • PNG: “A PNG keeps every new pixel exactly as it was worked out. A photo saved as PNG is several times larger than a JPG of it.” A passport photo of 413 × 531 pixels was 68.6 KB as a JPG, 319.7 KB as a PNG and 41.2 KB as a WebP.

A PNG is written in the smallest kind that holds it: with a table of colors when few colors are left, as after hard pixels, and in 16 bits when the original had 16. The line then says “Saved as a PNG of 16 bits, as fine as the original.”

A PNG screenshot can come out larger in bytes even with fewer pixels. A screen of 960 × 640 pixels and 104.0 KB came out at 640 × 427 pixels and 128.5 KB, and the page explained why:

It has fewer pixels and yet more bytes than it came with: smoothing makes in-between colors, which a PNG stores less tightly than the few colors of a screenshot. The Image Compressor makes it smaller again.

Quality of a JPG or WebP appears when a picture will be saved as one of those. It offers Automatic, then 100, 95, 90, 85, 80, 70 and 60:

Automatic: a JPG keeps the quality it was saved at, between 80 and 95, and another picture saved as JPG gets 90. A WebP gets 90, or 100 when the picture came without loss, as a PNG or a BMP does.

So a JPG saved at quality 93 is saved at 93 again, one saved at 96 at 95, and one saved at 60 at 80. The line names the quality used, such as “Encoded as a JPG at quality 93.” A PNG screenshot saved as WebP on Automatic gets “Saved as WebP without loss.”

How the new pixels are made

Under More choices, How the new pixels are made has three choices. The first two differ only when a picture is made smaller.

Smooth, on the light itself: for photos is chosen at the start:

Smaller: every new pixel is the weighted mean of the old pixels under it and around it, taken on the light itself. Fine bright detail keeps its brightness, and small dark writing on a light ground comes out lighter, the more so the smaller the picture is made. Larger: the new pixels are worked out between the old ones, and the picture looks softer than one taken at that size.

The weights are the Lanczos weights over three lobes. The numbers a file stores are not amounts of light: half of white is stored as 188, not 128. So a board of single black and white pixels made a quarter of its width comes out gray 188, which gives off the same light as the board. The line says “Made smaller with every old pixel counted, on the light itself.”

Smooth, on the stored numbers: for screenshots and scans of writing takes the same weighted mean on the stored numbers:

The same weighted mean, taken on the numbers a picture stores, which are not amounts of light. It is what most picture programs give, and it suits screenshots and scans made much smaller: small dark writing on a light ground keeps its weight. Fine bright detail on a dark ground comes out darker than it was.

The same board comes out gray 127 or 128, and the line says “Made smaller with every old pixel counted, on the stored numbers.” How much it matters grows as the picture gets smaller. A screen with small text made about a third of its width came out with its dark text pixels 6 of 255 lighter on the light than on the stored numbers, on average. A web page screenshot made a quarter of its width came out 32 of 255 lighter.

Both smooth ways count a see-through pixel for as much as it shows, so no color leaks out of a clear part. In our test, a red square on clear pixels stored as green came out with no green at all. Each way came within 1 of 255 of the same Lanczos worked out exactly (Pillow, in floating point): on the light in 13 tests of pictures and sizes, and on the stored numbers in 20.

That is why the page works the pixels out itself instead of letting the browser draw the picture smaller. The browser's own drawing (Chrome) is rough whichever way it is counted. Its largest error, in 255ths:

Test Against Lanczos on light Against Lanczos on stored numbers
A photo, 1,024 × 768 made 256 × 192 84 35
The same photo made 409 × 307 96 57
A screen with small text, 960 × 640 made 333 × 222 142 112
A web page screenshot, 1,106 × 1,559 made 276 × 389 106 114

On small text, single pixels are off by over 100 either way. On a photo, most of the difference is light against stored numbers.

The third choice is Hard pixels: for pixel art and codes:

Each new pixel takes the color of the old pixel under it, so the squares of pixel art and of a QR code stay crisp. No new colors come in as long as the picture is saved as PNG, or as WebP without loss. At 2, 3 or 4 times the size every square stays a square; at sizes in between some come out a pixel wider than others. Photos look jagged this way.

A drawing of 13 colors, doubled with hard pixels, still had exactly its 13 colors as a PNG (6.9 KB) and as a WebP without loss (4.6 KB). As a JPG it had 12,439 colors, and as a WebP at quality 90 about 7,800. For those two the page warns, for example: “As a JPG its hard edges get that format's own blur, and colors come in that were not there. Save it as PNG to keep them as they are.” At 150%, squares one pixel wide become 1 and 2 pixels wide in turn. Made smaller than one pixel a square, some squares are lost.

Never make a picture larger, and camera details

Never make a picture larger than it is is also under More choices, and off at the start:

For a pile of pictures of many sizes: the large ones are made smaller, and one that is smaller than the size asked for stays as it is.

It counts for a width, a height, a percent or a print size; the longest side never enlarges anyway. Such a picture comes back as it was: “It is smaller than the size asked for, and was not made larger. You get the original back, untouched.” A picture that has the size asked for already comes back untouched too: “It has this size already. You get the original back, untouched.”

Remove camera details (date, place, camera model) is off at the start:

A JPG keeps them unless you tick this. They do not go along into a WebP or PNG.

A resized JPG is stored upright, the way your browser shows it, and its details are set to match, so no program turns it a second time. When a photo says where it was taken, the page warns: “This photo says where it was taken, and the resized copy still does. Tick "Remove camera details" to leave that out.” With the tick, the line says “The camera details were removed.”

Resize many images at once

You can add up to 300 pictures, all at once or a few at a time (Add more pictures). One size and one set of choices applies to all of them. The picture shown above the list is done first, then the rest one after another, while the page counts: “2 of 6 pictures done…” At the end it adds them up, for example “4 pictures resized: 256.0 KB together. They were 2.73 MB.”

Above the list you see the chosen picture as it comes out, with its size on it, such as 800 × 1,067 pixels. It is never drawn larger than it is, and a picture with see-through parts lies on a chequered ground. Click a picture's small copy (Show this picture above) to see another one. When the result is wider than 560 or taller than 320 pixels, A piece of the resized picture at its real size shows it pixel for pixel: “Drag it to see another part. The yellow frame on the picture above shows where it is.”

Each file is named after the original with its new size, such as holiday-800x1067.jpg. In the ZIP, resized-pictures.zip, the pictures keep the names they came with, with a new ending when the format changed. The × beside a picture (Take this picture off the list) and Take all off the list clear the list.

Example

A camera photo of 1,536 × 2,048 pixels, given a Width of 800. Before, its line reads:

1,536 × 2,048 pixels (3.1 megapixels), JPG, 766.0 KB

After:

“800 × 1,067 pixels (0.9 megapixels), JPG, 193.1 KB.”

“Made smaller with every old pixel counted, on the light itself.”

“Encoded as a JPG at quality 93.”

The file is saved as holiday-800x1067.jpg when the photo was called holiday.jpg. The photo had been saved at quality 93, so Automatic kept 93. It keeps its date and camera model. With Remove camera details (date, place, camera model) ticked, it came out at 182.7 KB with the line “The camera details were removed.”

The same photo for a passport: For print, Passport photo: 35 × 45 mm, and It fills the size, and what sticks out is cut off. Its lines read:

“413 × 531 pixels (0.2 megapixels), JPG, 68.6 KB.”

“Made smaller with every old pixel counted, on the light itself.”

“Cut to the shape asked for: 1,536 × 1,975 pixels of it were kept, from the middle.”

“Encoded as a JPG at quality 93.”

“It says 300 dots an inch, so it prints at 35 × 45 mm.”

How long it takes

Measured on the live page in Chrome 157 on a desktop computer with an AMD Ryzen 9 3950X, three runs for each photo (lowest to highest) and one for the screenshot. A phone was not timed. The first row includes reading the file. The others are further sizes of the same picture, which are quicker because the page keeps its pixels.

Step JPG, 12 megapixels (4,032 × 3,024) JPG, 48 megapixels (8,064 × 6,048) PNG web page screenshot (1,106 × 1,559)
Added and made 1,920 wide 1.4 to 1.9 s (369.6 KB) 3.1 to 4.5 s (294.8 KB) 3.3 s (made larger)
Another size, 800 wide 0.7 to 1.0 s 1.4 to 1.5 s 0.7 s
1,080 × 1,080, cut to fill 0.6 to 0.9 s 2.1 to 2.3 s 0.9 s
Half the size 1.4 to 1.5 s 4.1 to 5.1 s 0.4 s
Twice the size 8.5 to 8.9 s (49 megapixels) refused: over 64 megapixels 4.2 s
800 wide as WebP 1.0 to 1.4 s 1.3 to 2.2 s 0.3 s
800 wide as PNG 1.0 to 1.3 s 1.8 s 0.7 s

Limits

  • Up to 300 pictures at a time. With more, the page says “That is more than 300 pictures. The first 300 were taken.”
  • Up to 2 GB a file. A larger file is refused with its name and “is too large for your browser to read in one piece.”
  • A result of at most 64 megapixels and 30,000 pixels a side. Twice the size of a 48-megapixel photo is refused: “It could not be resized: a picture of 16,128 × 12,096 pixels is more than this page makes: at most 64 megapixels, and 30,000 pixels a side.” So twice the size works for pictures up to 16 megapixels. Large prints meet this limit first: a poster of 60 × 90 cm at 300 dots an inch needs 7,087 × 10,630 pixels and is refused, while at 150 dots an inch it needs 3,543 × 5,315 and is made.
  • A picture larger than your browser can draw gets “It could not be resized: this browser cannot hold a picture of” and its size. When the device runs out of memory: “It could not be resized: the picture is too large for this device's memory.”
  • HEIC photos work only where the browser can open them. Elsewhere the page says “Your browser cannot open HEIC photos.” and asks you to turn the photo into a JPG first.
  • A moving GIF, WebP or PNG is resized as a still: “This picture moves. Only its first frame was resized.”
  • A JPG that breaks off before its end is resized as far as the browser draws it: “The file is damaged, so the browser drew what it could of it.”
  • A JPG made for print (CMYK) is resized as the browser shows it, and saved as an ordinary JPG.

Which tool for which job

  • A file size in KB, such as under 100 KB: Image Compressor, with its To a file size. It also packs a PNG harder: in tests, a resized PNG came out about 1 to 5% smaller there.
  • Cut out a part you draw by hand: Image Cropper. This page cuts only to the shape of a size.
  • Enlarge with more detail: Image Upscaler uses an AI model. Here, a picture made larger looks softer.
  • Turn a picture: Image Rotate.
  • Remove camera details without resizing: Metadata (EXIF) Remover.

FAQ

How do I resize an image without losing quality?

Save it as PNG: a PNG keeps every new pixel exactly as it was worked out, so nothing is lost after the resizing itself. A JPG is encoded again, and Automatic does that at the quality it was saved at (between 80 and 95). Making a picture smaller always drops detail, and making it larger cannot add any, so it looks softer.

How do I resize an image to an exact size without stretching it?

Give both a width and a height, then choose It fills the size, and what sticks out is cut off, or It keeps its shape, with bars to fill the size. Both give exactly the size asked for and keep the picture's shape. When it is cut, you can drag each picture to choose the part that stays.

How many pixels is a 35 × 45 mm passport photo?

413 × 531 pixels at 300 dots an inch. Choose For print, then Passport photo: 35 × 45 mm, and It fills the size, and what sticks out is cut off to get exactly that size; a JPG or PNG then says 300 dots an inch.

What is 300 DPI in pixels?

Multiply the inches by 300. A 10 × 15 cm print needs 1,181 × 1,772 pixels, and an A4 page 2,480 × 3,508. For print works this out for you in cm, mm or inches, and says how large your picture can print without being made larger.

Can I resize multiple images at once?

Yes, up to 300 pictures with one set of choices, and Download all as a ZIP saves them together. For a pile of wide and tall photos, type a number in Or its longest side: each picture gets that longest side, and none is made larger.

How do I resize an image to 100 KB?

This page sets the size in pixels, not in KB. Use the Image Compressor and its To a file size to make a picture fit under 100 KB.

Why does the text in my screenshot look faint after resizing?

The page starts by taking the mean on the light itself, and that makes small dark writing lighter, the more so the smaller the picture is made. Choose Smooth, on the stored numbers: for screenshots and scans of writing under More choices, and the writing keeps its weight, as in most picture programs.

Does resizing remove the EXIF data from a photo?

Not from a JPG saved as JPG: it keeps its date, place and camera model unless you tick Remove camera details (date, place, camera model). A picture saved as WebP or PNG does not get them.

Are my images uploaded?

No. The pictures are resized in your browser and never leave your device. The choices you make are remembered in your browser on this device, and Start afresh sets them back.

Note: All processing is done client-side. We do not store or see your data.

Related Tools

Contact

Missing something?

Feel free to request missing tools or give some feedback using our contact form.

Contact Us