Toolstia / Pixel to cm converter
Convert pixels to centimetres and back
A pixel is a count of dots, not a length. The same 1,000-pixel-wide image can be a stamp or a poster, depending on how densely those dots are packed when it is printed or displayed. That density is the resolution, measured in dots (or pixels) per inch, or DPI. This converter works in both directions: from a pixel count to centimetres, millimetres and inches at a DPI you choose, and from a print size in centimetres, millimetres or inches back to the number of pixels you need.
It is aimed at the jobs where the mismatch causes trouble: preparing a photo for a print shop, making a passport or visa photo to an exact size, checking whether a camera file is large enough for an A3 print, or turning a design measured in millimetres into pixel dimensions for a screen mockup. A reference table underneath lists common paper and photo sizes in pixels at the DPI you have set.
The arithmetic is done in the page and nothing is uploaded. The formulas are simple and are written out below, along with a few cases where the result is not the whole story.
| Size | Millimetres | Pixels |
|---|---|---|
| A6 | 105 × 148 | 1240 × 1748 |
| A5 | 148 × 210 | 1748 × 2480 |
| A4 | 210 × 297 | 2480 × 3508 |
| A3 | 297 × 420 | 3508 × 4961 |
| Letter | 215.9 × 279.4 | 2550 × 3300 |
| Legal | 215.9 × 355.6 | 2550 × 4200 |
| Passport photo | 35 × 45 | 413 × 531 |
| 4 x 6 in photo | 101.6 × 152.4 | 1200 × 1800 |
How it works
- Choose pixels to print size, or print size to pixels.
- Enter the value, and the DPI (300 is normal for print, 72 or 96 for screens).
- Read the result and the paper size table.
The formula
Inches equal pixels divided by DPI. Centimetres equal inches times 2.54, and millimetres equal inches times 25.4.
Which DPI
300 DPI is the usual target for sharp print. 150 DPI is acceptable for large posters seen from a distance. Screens are often treated as 72 or 96 for convenience.
Paper sizes
The table covers A6 to A3, Letter, Legal, passport and 4x6 photo sizes, converted to pixels at your DPI.
DPI is a label
Changing the DPI of a picture does not add detail. A photo with too few pixels for a large print stays soft at any DPI setting.
The formulas
Inches equal pixels divided by DPI. Centimetres equal inches multiplied by 2.54, and millimetres equal inches multiplied by 25.4. Going the other way, pixels equal inches multiplied by DPI, where a length in centimetres is first divided by 2.54 and one in millimetres by 25.4. The tool accepts a DPI from 1 to 5000 and shows centimetres to two decimal places, millimetres to one and inches to two. Print sizes converted to pixels are rounded to the nearest whole pixel.
Worked example 1: a screen image
A 1920 pixel wide image at 96 DPI measures 1920 / 96 = 20 inches, which is 50.8 cm or 508 mm. At 300 DPI the same 1920 pixels measure only 6.4 inches. The pixels have not changed. Only the density of the printing has, which is why the same file looks large on one device and tiny in print.
Worked example 2: how many pixels for an A4 print
A4 is 210 by 297 mm. At 300 DPI the width is 210 / 25.4 x 300 = 2480.3, which rounds to 2480 pixels, and the height is 297 / 25.4 x 300 = 3507.9, which rounds to 3508. So an A4 page needs about 2480 by 3508 pixels for sharp print. The built-in table gives the same figures. At 150 DPI the same page needs about 1240 by 1754 pixels, a quarter of the pixel count.
For a 10 cm wide print at 300 DPI, enter 10 with centimetres selected and you get 1181 pixels, since 10 / 2.54 x 300 is 1181.1.
Worked example 3: passport photos
The table includes a 35 by 45 mm passport photo size. At 300 DPI that is 413 by 531 pixels, and at 600 DPI the width is 827 pixels. Many photo upload forms ask for a size in pixels, and many printers want millimetres, so being able to go from one to the other without guessing matters. Check the exact size your application requires, because countries and agencies differ and some ask for other dimensions than 35 by 45 mm.
Which DPI should you pick?
For close-up print such as photos, flyers and business cards, 300 DPI is the usual target. Large posters viewed from a distance are often acceptable at 150 DPI or even lower. For screens there is no real DPI, but 96 is the figure CSS uses to relate pixels to inches, and 72 is an old convention from early Mac displays. If you are sizing something for the web, work in pixels and ignore centimetres, because a browser decides the physical size from the user's screen.
What this tool does not do
Changing the DPI value does not make a photo sharper. A picture with too few pixels for a big print will look soft at any DPI label, and software that resizes it up only invents the extra pixels by guessing. The tool also does not read your image or its embedded DPI tag, so you enter the pixel count yourself.
The paper list uses millimetre sizes for A6, A5, A4 and A3, US Letter and Legal, a passport photo and a 4 by 6 inch photo. For other sizes, convert them with the print-size mode. A negative or non-numeric value gives no result, and a DPI outside 1 to 5000 shows an error.
Questions
How many pixels is A4?
At 300 DPI, A4 is about 2480 by 3508 pixels. The table shows other DPIs.
Is this the same as CSS pixels?
CSS defines 96 pixels per inch, so use 96 for that.
Is anything uploaded?
No. Your numbers stays in your browser and is never sent anywhere.
Why is 1 pixel not a fixed number of centimetres?
Because a pixel is a unit of count, not length. Its physical size is set by the density of the device or the print. At 300 DPI one pixel is about 0.085 mm wide, at 96 DPI about 0.26 mm.
How do I find the DPI of my photo?
Many photos carry a DPI tag, but it is only a label and does not change the pixel count. What matters for print is the pixel width divided by the print width in inches. That is exactly what this tool calculates.
How many pixels do I need for a 4 by 6 inch photo?
At 300 DPI you need 1200 by 1800 pixels. The table in the tool shows it for any DPI you set.
Can I convert centimetres to pixels for a website?
You can, using 96 DPI, which is the CSS ratio. In practice websites are laid out in CSS pixels and scale to the screen, so a physical centimetre is not guaranteed on screen.