Files stay on your device

How to resize an image by pixels, width and height

A form, a website or a printer wants "exactly 600 × 400 pixels". Here is how to hit that size without stretching faces or losing the important part of the picture.

1200 px800 px600 × 400

Every digital picture is a grid of tiny dots called pixels. When a form or a website says “upload an image of 600 × 400 pixels”, it means a grid exactly 600 dots wide and 400 dots tall. The first number is always the width, the second is the height.

Resizing by pixels is easy when your photo already has the same shape as the size you need. It gets tricky when it does not, and that is where most squashed faces and chopped-off heads come from. This guide covers both.

Resize to exact pixels in three steps

  1. Open Resize image and add your photoJPG, PNG and WebP all work, on a phone or a computer.
  2. Keep “Pixels” selected and type the width and heightCopy the numbers exactly as the form or website gives them, width first.
  3. Choose what to do if the shape is different, then press “Resize image”You get a JPG at exactly the size you typed. The next section explains the three choices.
Resize image

Set an exact width and height in pixels, cm or inches, with an optional KB limit. Free, no sign-up, and the file never leaves your device.

Open Resize image

When your photo is a different shape

A phone photo held upright is tall and narrow. A size like 600 × 400 is wide and short. You cannot fit one into the other without giving something up, so the tool asks you what to give up:

your photoFill and trimno bars, edges cutFit insidenothing cut, white barsStretchexact, but squashedthe size the form asks for (wide)
The same tall photo placed into a wide size. Fill and trim keeps it full but cuts the edges. Fit inside keeps everything but adds white bars. Stretch gets the size but distorts the picture.
  • Fill and trim the edges. The photo is scaled until it covers the whole size, and whatever sticks out is cut off evenly from both sides. There are no white bars. Best for profile pictures, thumbnails and banners, where a full frame matters more than the edges.
  • Fit inside, add white bars. The whole photo is kept and shrunk until it fits, and the leftover space is filled with white. Best for documents, signatures and products, where nothing may be cut off.
  • Stretch to exact size. The photo is pulled to the new shape. Fine for plain patterns or backgrounds. Avoid it for people, because faces come out fat or thin, and a checker will notice.

The form gives centimetres, not pixels

Exam and job forms usually describe photos in centimetres, like 3.5 × 4.5 cm, because they were written with printed photos in mind. Screens only understand pixels, so the cm have to be converted. The link between the two is DPI, dots per inch:

Width3.5 cm÷2.54×200 DPI=276 pxHeight1.5 cm÷2.54×200 DPI=118 px2.54 cm is one inch. DPI says how many pixels go into each inch.
Pixels = centimetres ÷ 2.54 × DPI. At 200 DPI, a 3.5 × 1.5 cm signature becomes 276 × 118 pixels.

You do not have to do this sum. In Resize image, switch “Size in” to Centimetres (or Inches), type the sizes from the form, and set the DPI. 200 suits most forms. If the notification names a DPI, use that one. Dekiko converts it to pixels and also writes the DPI into the JPG, so the photo prints at the right size too.

If you would like to see the numbers first, the photo size calculator on our homepage works out any cm size at any DPI.

Making images smaller vs bigger

Resizing down, from a large photo to fewer pixels, is safe. The picture keeps its detail and the file gets lighter.

Resizing up is different. If you take a 300-pixel-wide image and ask for 1200 pixels, the tool has to invent the missing dots by blending the ones around them. The result has the right size but looks soft. A few things help:

  • Go back to the original photo in your gallery instead of a copy someone sent you on WhatsApp, which is usually already shrunk.
  • For a scan, rescan at a higher DPI rather than enlarging a small one.
  • If the form only needs a minimum file size and not more pixels, use Increase image size in KB instead. It makes the file heavier without enlarging the picture.

Quick answers for common jobs

You need Use Settings
An exact pixel size for a website or app Resize image Pixels, your width and height, Fill and trim
A passport-style photo for a form Photo for exam form The cm size and KB range from the notification
A signature for a form Resize signature Starts at 3.5 × 1.5 cm and 10 to 20KB
Prints of passport photos on one sheet Passport size photo Choose the photo size and paper
Only a smaller file, any pixels Compress image Just the maximum KB

Your photo is not uploaded

Resizing feels harmless, but the photos people resize are often their face, their ID or their child’s school photo. Most resizing websites upload them to do the work.

Upload-based toolstheir serverYour file is copiedto someone else'scomputerDekikonothing sentYour file stays inyour own browser
Dekiko resizes inside your browser. The photo stays on your phone or computer the whole time.

With Dekiko the resizing happens on your own device, even with the internet switched off once the page has loaded.

Questions people ask

Will making a small image bigger in pixels make it sharper?

No. Enlarging adds pixels but not detail, so a small photo blown up looks soft. Start from the largest original you have, and resize down to the size you need.

What is the largest size I can set?

Up to 8000 pixels on each side. That covers posters and large prints. The smallest is 10 pixels.

Can I resize several photos to the same pixels?

Yes. Add them all at once and each comes back at exactly the width and height you typed.

Does the resized photo keep its DPI?

When you work in centimetres or inches, the DPI you choose is saved inside the JPG, so it prints at the size you asked for. In pixel mode DPI does not matter for screens or uploads.

I also have a KB limit. Do I need a second tool?

No. Resize image has optional minimum and maximum KB boxes. Fill in the limit and you get one file that meets the pixels and the KB together.

More guides

48 MBtoo big to attachcompress on your deviceTo: [email protected]Subject: Video introductionintro-small.mp418 MB

How to compress a video for email, so it goes as an attachment

You attach a video and the email turns it into a cloud link, or refuses it. Here is how to bring it under the limit so it arrives as a real attachment.

16 November 2026
3:10 video1:001:001:000:10part 1part 2part 3… and part 4

How to split a long video for WhatsApp Status

WhatsApp only takes one short clip per Status, so a 3-minute video gets chopped. Here is how to post the whole thing, in order, without installing an app.

16 November 2026
your phototoo smalltoo big10 KB50 KB32 KB6 KBincrease3.2 MBcompress

How to resize an image in KB, up or down, for any form

The form rejects your photo for being 2MB. Or, just as annoying, for being 6KB. Here is how to land inside any KB limit, in either direction.

16 November 2026