FLXCode Change Image DPI

FLXCode apps

Appearance

Change Image DPI

Pick a picture, type a dpi, save. The pixels stay exactly as they were.

or drop it here, or paste with Ctrl+V

JPG and PNG keep every pixel. Other formats can be resampled. Nothing is uploaded.

No ads. No account. Nothing you type or record is uploaded. We count page events with a daily code. Check it. What this tool keeps and sends.

Problem or idea? Email us

How to use it

  1. Choose a JPG or PNG, or drop it on the page.
  2. Type a dpi or tap a value. The page shows what the file said before, what the saved file says, and the size it prints at.
  3. Save the file. It has the same pixels as the original.
  4. Need a size, like 10 x 15 cm? Switch to Print at a size, pick it, and save.

Example: a 1200 x 1800 px picture at 300 dpi reads 4 x 6 in.

What dpi does and does not do

Dpi is a number stored in the file: how many pixels go on one inch of paper. Divide the pixels by it and you get the print size. A program like a photo editor or a layout tool reads it to place the picture at that size.

It does not change the pixels or how sharp the picture is, and browsers ignore it. A form that asks for "300 dpi" often just checks the pixel size, so check that too. For more or fewer pixels use the image resizer. To remove camera data from the file use remove metadata.

This is picture dpi, not mouse dpi. For QR codes see QR code size for print.

Pixels needed for a print size

Pixels to fill a size at 150, 300 and 600 dpi. The table uses the same maths as the tool above.

Pixels needed for common print sizes at 150, 300 and 600 dpi
Size150 dpi300 dpi600 dpi
4 x 6 in600 x 9001,200 x 1,8002,400 x 3,600
5 x 7 in750 x 1,0501,500 x 2,1003,000 x 4,200
8 x 10 in1,200 x 1,5002,400 x 3,0004,800 x 6,000
A5874 x 1,2401,748 x 2,4803,496 x 4,961
A41,240 x 1,7542,480 x 3,5084,961 x 7,016
A31,754 x 2,4803,508 x 4,9617,016 x 9,921
10 x 15 cm591 x 8861,181 x 1,7722,362 x 3,543
Passport 35 x 45 mm207 x 266413 x 531827 x 1,063

Inch sizes are exact conversions. A4, A5 and A3 are the ISO 216 sizes (210 x 297, 148 x 210 and 297 x 420 mm).

Inches and centimetres for common pixel sizes at four dpi values.

Print size in inches and centimetres for common pixel sizes at 72, 96, 150 and 300 dpi
Pixels72 dpi96 dpi150 dpi300 dpi
1,200 x 1,80016.7 x 25 in
42.3 x 63.5 cm
12.5 x 18.8 in
31.8 x 47.6 cm
8 x 12 in
20.3 x 30.5 cm
4 x 6 in
10.2 x 15.2 cm
1,600 x 1,20022.2 x 16.7 in
56.4 x 42.3 cm
16.7 x 12.5 in
42.3 x 31.8 cm
10.7 x 8 in
27.1 x 20.3 cm
5.3 x 4 in
13.5 x 10.2 cm
1,920 x 1,08026.7 x 15 in
67.7 x 38.1 cm
20 x 11.3 in
50.8 x 28.6 cm
12.8 x 7.2 in
32.5 x 18.3 cm
6.4 x 3.6 in
16.3 x 9.1 cm
3,000 x 2,00041.7 x 27.8 in
105.8 x 70.6 cm
31.3 x 20.8 in
79.4 x 52.9 cm
20 x 13.3 in
50.8 x 33.9 cm
10 x 6.7 in
25.4 x 16.9 cm
4,000 x 3,00055.6 x 41.7 in
141.1 x 105.8 cm
41.7 x 31.3 in
105.8 x 79.4 cm
26.7 x 20 in
67.7 x 50.8 cm
13.3 x 10 in
33.9 x 25.4 cm
6,000 x 4,00083.3 x 55.6 in
211.7 x 141.1 cm
62.5 x 41.7 in
158.8 x 105.8 cm
40 x 26.7 in
101.6 x 67.7 cm
20 x 13.3 in
50.8 x 33.9 cm

Limits

  • Set the DPI value works on JPG and PNG. Other formats can go through Print at a size, which saves a JPG or PNG.
  • A JPG with no JFIF header gets one. If the file already has Exif dpi fields, they are updated too. We never add an Exif block.
  • Some Photoshop files keep a second dpi in a Photoshop block of the JPG. We leave it as it is.
  • PNG stores pixels per metre, so the stored number is rounded: 300 dpi is 11,811.
  • Print at a size resamples in the browser. It opens pictures up to 25 megapixels and makes files up to 16,384 px a side and 100 megapixels. If the picture has fewer pixels than the size needs, it gets blown up, and it will look soft.
  • The dpi is whole numbers from 1 to 65,535.

How it works and privacy

In set mode the page reads the file's bytes, changes the density fields and saves the rest unchanged. Nothing is decoded or compressed again. Print at a size draws the picture on a canvas at the new size and saves it as JPG or PNG.

Nothing you choose is uploaded or stored. We count events without cookies, such as "file saved" (details).

FAQ

How do I change the dpi of an image without changing its size?

Choose the picture, type the dpi, save. This page rewrites the dpi field in the file and copies every pixel as it is. A 3000 x 2000 px photo is still 3000 x 2000 px, it just says 300 dpi.

Does changing dpi make a picture sharper?

No. Dpi is a note in the file that tells a program what size to print at. A 1200 x 1800 px picture at 300 dpi prints 4 x 6 in, at 150 dpi it prints 8 x 12 in. The pixels, and so the detail, are the same.

A form asks for a 300 dpi photo. What do I do?

Check what it really asks for. Many forms read the pixel size, for example 600 x 600 px, and ignore the dpi field. Set the dpi here and also check the pixels. If they are wrong, use Print at a size, or the image resizer.

Which formats can I use?

JPG and PNG keep every pixel. For WebP, AVIF, GIF or BMP use Print at a size: it saves a JPG or PNG with the dpi inside. Those formats have no dpi field browsers write.

Why does a PNG at 300 dpi show 299.999 in some programs?

PNG stores pixels per metre, not per inch. 300 dpi is 11,811 pixels per metre, and 11,811 pixels per metre is 299.9994 dpi. This page shows it as 300.

Is this the dpi of my mouse?

No. This is the dpi of a picture file. Mouse dpi is a setting in the mouse driver.

More from FLXCode

  • Image ResizerResize photos by pixels, percent or preset for Instagram and email. Batch and zip. Nothing is uploaded.
  • Resize ImageMake a picture smaller by percent, pixels or preset in your browser. No upload, no watermark.
  • QR Code Size for PrintWork out how big to print a QR code: minimum and recommended width from content length, scan distance and printer dpi.
  • Upscale ImageMake a small picture 2x or 4x bigger with a model that runs in your browser. It invents detail. Nothing is uploaded.

Share Change Image DPI