Three things are called the size of an image: pixels, kilobytes and DPI
When someone asks you to make an image smaller, do they mean the pixel dimensions, the file size in MB, or the DPI? This page explains the difference, with the arithmetic, and lets you change the pixel dimensions right here. Nothing is uploaded.
Resize by
Each new pixel takes the colour of the nearest original pixel instead of blending its neighbours (nearest-neighbour scaling). Pixel art enlarged by a whole number, such as 2× or 3×, stays as crisp square blocks instead of going blurry; at other scales the blocks come out uneven. Photos turn jagged this way, so leave it off for photos.
Drag and drop your images
or click to choose · Ctrl+V to paste (up to 30, 50MB each)
JPEGPNGWebPAVIFGIFBMPHEIC/HEIF
Everything runs in your browser. Your images are never sent to a server.
The word "size" is used for three different properties of an image: the pixel dimensions (width and height in px), the file size (KB or MB), and the DPI (how densely it is printed). Sometimes they move together; sometimes they are completely independent. Mix up which one an upload form or a print shop is asking for and you get the familiar results: you resized the picture and it is still over the limit, or you set it to 300 dpi and nothing changed. This page takes the three apart, shows how each is changed, and gives the arithmetic that connects them.
One word, three measurements
1. Pixel dimensions. An image is a grid of tiny squares, and the dimensions say how many sit across and how many down, written like 4032 × 3024 px. That example holds 4032 × 3024 = 12,192,768 pixels, about twelve megapixels. This number decides how large the image is on a screen, and it is what a "longest side 1280 px" rule on a website or a social network refers to.
2. File size. How many bytes the saved file occupies on disk, expressed in KB or MB. An email attachment limit or a form that says "under 1 MB" is talking about this one.
3. DPI (dots per inch; for an image file, PPI, pixels per inch, is the stricter term and means the same thing here). How many pixels are laid down per inch (2.54 cm) when the image is printed. It is stored in the file as a single number, is largely ignored on screen, and only matters when something is printed.
The confusion comes from the word resolution, which is used for both the first ("a resolution of 1920 × 1080") and the third ("a resolution of 300 dpi"). When an instruction says "resolution", look at the unit: px means pixel dimensions, dpi or ppi means print density.
Pixels and file size: related, but not proportional
More pixels tend to mean a bigger file. Uncompressed, the size is easy to work out: a full-colour image uses three bytes per pixel (red, green and blue), so 4032 × 3024 px is 12,192,768 × 3 = 36,578,304 bytes, about 36.6 MB. JPEG and PNG compress this before saving, so the real file is far smaller than that figure, and how much smaller depends on what is in the picture and on the save settings. That is why two photos with identical dimensions can have very different file sizes.
Halving the width and the height does not halve the pixel count; it quarters it. 4032 × 3024 px resized to 2016 × 1512 px is 3,048,192 pixels, exactly a quarter. The file size drops a great deal too, but not by exactly a quarter, because compression behaves differently on every picture. To halve the pixel count, scale each side by about 0.71 (0.71 × 0.71 is roughly 0.5).
The reverse is also possible: a file can be made much smaller without changing a single pixel, by saving a JPEG or WebP again at a lower quality. That is what compression is. So there are two levers for file size: fewer pixels (resizing) and lower quality (compressing). PNG is an exception, because it is a lossless format with no quality to lower; the only ways to shrink a PNG are fewer pixels or fewer colours.
Enlarging an image adds pixels and bytes but no information. The new pixels are calculated from the ones that exist, so the further a picture is stretched, the softer its edges become.
DPI sets the print size and nothing else
The printed size is pixels ÷ DPI. An image 1200 px wide printed at 300 dpi comes out 1200 ÷ 300 = 4 inches wide, which is 10.16 cm. The same file printed at 72 dpi is 1200 ÷ 72 = 16.7 inches, about 42.3 cm. Not one pixel has changed, so it looks the same on screen and holds exactly the same detail.
For the same reason, changing the DPI value in a file from 72 to 300 does not make the image any sharper. It only makes it print smaller. And because a single number in the file has changed, the file size barely moves.
When a requirement is given as a print size at a DPI, such as "35 × 45 mm at 300 dpi", what is really being asked for is a pixel count. The formula is pixels = inches × DPI, or millimetres ÷ 25.4 × DPI. The table gives the most common cases at 300 dpi; the figures are the formula, rounded to the nearest pixel.
Print size
Pixels at 300 dpi
Typical use
35 × 45 mm
413 × 531 px
passport-style photo
4 × 6 in (102 × 152 mm)
1200 × 1800 px
standard photo print
5 × 7 in (127 × 178 mm)
1500 × 2100 px
photo print
A4 (210 × 297 mm)
2480 × 3508 px
letter-size sheet
A3 (297 × 420 mm)
3508 × 4961 px
poster sheet
If a form checks the DPI value recorded in the file rather than the pixel count, the resizer above has a Record DPI option with 72, 96, 150, 300 and 350 dpi. The value is written into JPEG files only (a PNG or WebP carries no such note from this tool), and recording it changes neither the pixels nor the sharpness.
What the resizer on this page does, and what it does not
The tool above changes the first size, the pixel dimensions. There are four ways to set it: Long edge, Width × height, Percentage and Preset. Only Width × height can enlarge; the other three never go above the original. To get exactly the pixels you worked out for a print, type them into Width × height and switch the button to Aspect ratio free: while it reads Aspect ratio locked, the two numbers act as a box that the picture is fitted inside. For a sharper enlargement of a small picture there is the AI image upscaler, which makes an image 2× or 4× larger with cleaner edges than plain interpolation.
Up to 30 images can be in the result list at a time, and everything runs in your browser: the images are never sent to a server. The formats it reads and writes are listed on the image resizer page.
To bring the second size, the file size, under a fixed figure such as 500 KB, compress rather than resize. The image compressor has a Target size mode that takes a ceiling in KB and finds the best quality that fits under it. A resize reduces the file size as well, but there is no way to tell it what figure in KB to land on. A target size cannot be applied when the output is PNG, since PNG has no quality to lower; choose another output format or reduce the pixels. When both a pixel limit and a file-size limit apply, resize first, then compress.
Which one to change: read the unit in the instruction
The instruction says
Example
What to change
How
px (pixels)
longest side 1280 px, width under 800 px
Pixel dimensions
The resizer on this page
KB or MB
under 1 MB, 500 KB at most
File size
The compressor's Target size mode
cm, mm or inches plus a DPI
35 × 45 mm at 300 dpi
Pixel dimensions (work them out)
Type the result into Width × height
A DPI value alone
the file must be 300 dpi
The DPI note in the file
Record DPI on this page (JPEG only)
Frequently asked questions
Is image size the same as file size?
No. "Image size" most often means the pixel dimensions, such as 1920 × 1080, and "file size" means how much space the saved file takes, such as 850 KB. More pixels tend to mean a bigger file, but two images with the same pixel dimensions can differ in file size several times over, because of what is in the picture and how hard it was compressed when it was saved.
If I halve the width and the height, does the file size halve?
The pixel count drops to a quarter, not a half: half the width times half the height is a quarter of the area. The file size falls a lot as well, but not by an exact factor, because compression depends on the picture. To halve the pixel count, scale each side to about 71% (0.71 × 0.71 is about 0.5).
Does changing the DPI from 72 to 300 improve the image?
No. DPI is a note in the file about how many pixels to print per inch; changing it does not add a single pixel. At 300 dpi the same image simply prints smaller than it did at 72 dpi. It looks exactly the same on screen, and the file size barely moves, because only one number in the file has changed.
How many pixels is 300 dpi?
On its own, 300 dpi is not a number of pixels; it needs a print size. Pixels = inches × 300, or millimetres ÷ 25.4 × 300. A 4 × 6 inch print at 300 dpi needs 1200 × 1800 px, an A4 sheet (210 × 297 mm) needs 2480 × 3508 px, and a 35 × 45 mm photo needs 413 × 531 px. If you were given centimetres, divide by 2.54 to get inches first.
I need the file under 1 MB. Should I resize it or compress it?
To get under a fixed number of kilobytes, compress: the image compressor on this site has a Target size mode that takes a ceiling in KB and finds the best quality that still fits under it. Resizing reduces the file size too, but you cannot tell it what size in KB to land on. A target size cannot be applied when the output is PNG, because PNG has no quality to lower; choose another output format or reduce the pixels instead. If the limit is on pixels as well as kilobytes, resize first and compress second.
Does enlarging a small image make it sharper?
No. Enlarging adds pixels and bytes, but no detail: the new pixels are calculated from the ones that were there, so the further you stretch, the softer the edges get. In the resizer on this page only Width × height enlarges. For a sharper enlargement, the AI upscaler on this site makes an image 2× or 4× larger with cleaner edges, though it cannot bring back detail that was never in the picture either.
Are my images uploaded anywhere?
No. Resizing happens inside your browser, on your own device. Neither the original nor the resized image is sent to a server, so a private photo or a confidential document never leaves your computer, and there is no account to create.
The fullimage resizerpage explains the four modes, the presets and the formats. For a file under a set number of KB or MB there is theimage compressor, and to cut a picture to a shape before resizing it, theimage cropper. All of them run in the browser.