How to resize an image by pixels
Resizing changes the width and height of your picture in pixels. Websites often ask for an exact size, such as 600 × 600 for a profile photo or 200 × 230 for an application form. Use the tool above to set the size you need in a few seconds. Your image stays on your device and is never uploaded.
- Choose your image with the file button. The current width and height appear in the boxes.
- Type the new width or height. With Keep aspect ratio ticked, the other number changes automatically so the picture is not stretched.
- Choose the download format: JPG, JPEG, PNG or WebP.
- Press Resize and download.
Pixels, centimetres and DPI
A pixel is one tiny dot of color. Centimetres and inches are real-world sizes, used when you print. To connect them you need DPI, which means dots per inch. The formula is simple:
pixels = inches × DPI, and one inch is 2.54 cm.
For example, a 2 × 2 inch photo at 300 DPI is 600 × 600 pixels. A 35 × 45 mm passport photo at 300 DPI is about 413 × 531 pixels. Most printers and photo shops use 300 DPI for good quality.
| Use | Real size | Pixels |
|---|---|---|
| US passport photo | 2 × 2 in | 600 × 600 at 300 DPI |
| 35 × 45 mm photo | 3.5 × 4.5 cm | 413 × 531 at 300 DPI |
| A4 page | 210 × 297 mm | 2480 × 3508 at 300 DPI |
| Square social media post | Screen only | 1080 × 1080 |
| Profile photo (common) | Screen only | 400 × 400 to 800 × 800 |
For a passport photo with the correct size and background, use our passport photo maker, which crops to the exact size for you.
Making an image smaller or larger
Making an image smaller keeps it sharp, because the tool only needs to remove detail. Making it much larger is different: the tool has to invent new pixels, so the picture becomes soft and a little blurry. If you need a bigger image, start from the largest original you have. A small increase, such as 20 or 30 percent, looks fine in most cases.
Keep the aspect ratio unless you have to change it
The aspect ratio is the relation between width and height. If you change only one side without keeping the ratio, people in the photo look stretched or squeezed. When a website needs a different shape, for example a square from a wide photo, the better method is to crop the picture to the right shape first and then resize. Our passport photo tool does this by letting you drag and zoom.
Choosing the file format
- JPG and JPEG are the same format with a different file ending. They give small files and are best for photos.
- PNG keeps sharp lines and transparency, so it is best for logos, screenshots and drawings.
- WebP is a modern format that makes smaller files and works in current browsers.
If the website also has a file size limit, resize first and then use the compress to KB tool.
Frequently asked questions
Does resizing reduce quality?
Making an image smaller keeps it sharp. Making it much larger makes it look soft.
Is my image uploaded?
No. The image never leaves your device.
Why do I get a white background when I save as JPG?
JPG cannot store transparency, so transparent areas are filled with white. Save as PNG or WebP to keep them transparent.
What size should I use for a form photo?
Use the exact width and height written on the form. If it only gives a file size, resize to a small size such as 200 × 230 and then compress to the limit.