Size Converter: px, cm, mm, inch

Dimo · px, cm, inch, pt, and rem.

Made on your device · nothing uploaded
DPI (pixels per inch)
px

794 × 1123 px at 96 DPI

  • 2.65 cm
  • 26.46 mm
  • 1.04 in
  • 75 pt
  • 6.25 rem

How to convert px to cm

  1. Type a number and pick its unit: px, cm, mm, inch, pt, or rem.
  2. Set the DPI (pixels per inch). Use 96 for screens and CSS, 300 for print.
  3. Read every other unit at once. Copy any value with one click.
  4. Or pick a paper or photo preset to see its size in pixels at your DPI.

Common conversions

Print a photo or document
An A4 page at 300 DPI is 2480 × 3508 px. A 4 × 6 inch photo at 300 DPI is 1200 × 1800 px.
Web and CSS
CSS uses 96 px per inch, so 1 cm is about 37.8 px and 1 inch is 96 px. With a 16 px root size, 1 rem is 16 px.
Passport and ID photos
A 35 × 45 mm passport photo at 300 DPI is 413 × 531 px. Check your country's exact rules before you print.

Questions

How many pixels are in 1 cm?

It depends on the DPI. At 96 DPI (screens and CSS) 1 cm is about 37.8 px. At 300 DPI (print) it is about 118 px.

What DPI should I use?

Use 96 for anything on a screen or in CSS. Use 300 for photos and documents you print. 150 is often enough for posters seen from a distance, and 72 is an older screen default.

How is rem different from px?

rem is relative to the root font size of a web page. Most browsers default to 16 px, so 1 rem is 16 px unless the site changes it.

What is a point (pt)?

A point is 1/72 of an inch. It is used for font sizes and print layouts. 12 pt is 16 px at 96 DPI.

Are the numbers rounded?

Lengths and CSS pixels show up to 2 decimal places. Image and print sizes in pixels are rounded to whole pixels, because an image file cannot have part of a pixel. The copy button copies exactly what you see.

Privacy

All conversions run in your browser. Nothing you enter is sent or stored.

Limitations

  • Pixel sizes depend on the DPI you choose. A screen's real pixel density may differ from the DPI you set.
  • Paper sizes follow ISO 216 (A series) and US Letter. Local formats like F4 vary by printer, so check before you print.

Try these too

Use ↑ ↓ to move, Enter to open, Esc to close.