Pixels to centimetres
centimetres = pixels × 2.54 ÷ DPI
Convert pixels to centimetres and centimetres to pixels at a given resolution (DPI/PPI), and read the resolution and print size of a PNG or JPEG image locally.
300 for quality printing, 150 for everyday prints, 96 for the CSS screen reference, 72 for legacy uses.
Optional. The image is read in your browser and never uploaded. The resolution is read from PNG and JPEG files.
A pixel has no fixed size: its physical dimension depends on the resolution, expressed in DPI or PPI (dots or pixels per inch). Converting pixels to centimetres therefore always requires a resolution. This tool converts both ways, offers the most common values (72, 96, 150 and 300 DPI) and can read an image to show its dimensions, the resolution stored in the file and its print size.
One inch is exactly 2.54 cm. At 300 DPI, an inch holds 300 pixels, so one pixel measures 2.54 ÷ 300 ≈ 0.0085 cm.
To go from pixels to centimetres, the tool multiplies the pixel count by 2.54 and divides by the resolution. For the reverse, it multiplies the centimetres by the resolution and divides by 2.54.
Changing the resolution immediately recalculates the centimetres from the pixels entered: an image keeps the same number of pixels, only its physical size changes.
If you add an image, the tool reads its pixel dimensions and, for a PNG or JPEG, the resolution stored in its metadata (PNG pHYs chunk, JPEG JFIF header or Exif data). The image never leaves your browser.
Enter a DPI value or click a common one: 300 for printing, 96 for screens in CSS.
Type pixels to get centimetres, or centimetres to get pixels.
Add an image to see its dimensions, stored resolution and print size.
centimetres = pixels × 2.54 ÷ DPI
pixels = centimetres × DPI ÷ 2.54
In CSS, the reference resolution is 96 pixels per inch: a CSS pixel measures about 0.026 cm.
Check that a 2,480 × 3,508 px image is enough for an A4 page at 300 DPI, or work out how many pixels a poster needs.
Turn a measurement in centimetres into CSS pixels, knowing that in CSS one inch equals 96 pixels.
Find out why the same photo appears 67 cm wide in one program and 16 cm in another: only the stored resolution differs.
1920 × 2.54 ÷ 300 = 16.256 cm. The same width is 50.8 cm at 96 DPI.
Input
Resolution: 300 DPI; Pixels: 1920Result
1,920 px = 16.26 cm = 6.4 in at 300 DPIIn practice this is rounded to 2,480 × 3,508 px for an A4 page printed at photo quality.
Input
Resolution: 300 DPI; Centimetres: 21 then 29.7Result
2,480.31 px wide and 3,507.87 px high10 × 300 ÷ 2.54 = 1,181.1 px.
Input
Resolution: 300 DPI; Centimetres: 10Result
1,181.1 px = 10 cm = 3.937 in at 300 DPIIt depends on the resolution: 1 cm is 118.11 pixels at 300 DPI, 37.8 pixels at 96 DPI and 28.35 pixels at 72 DPI. The formula is pixels = centimetres × DPI ÷ 2.54.
PPI (pixels per inch) describes the density of an image or screen, DPI (dots per inch) that of a printer. In software and files, both terms often mean the same value: the number of image pixels per printed inch.
The CSS specification sets one inch to 96 CSS pixels. A CSS pixel therefore measures 2.54 ÷ 96 ≈ 0.026 cm, whatever the real density of the screen.
Not necessarily. Quality depends on the number of pixels. A 6,000 × 4,000 px photo stored at 72 DPI prints perfectly at 50 × 34 cm at 300 DPI.
Some images contain no resolution information, or only a width/height ratio. Choose the print resolution you want: the calculated size depends entirely on it.
No. The dimensions and resolution are read in your browser from the first bytes of the file. Nothing is transmitted or kept.
Related tools
Tools similar or complementary to this one.
Resize an image by setting its exact width and height before downloading the result.
Draw a frame on the image, lock a ratio (1:1, 4:5, 16:9…) and download the cropped part.
Calculate proportional dimensions for images and videos.
Learn what changes when PDF pages are rasterized, how resolution and image format affect quality, and when to assemble images into a PDF.
Distinguish pixel dimensions, pixel density, and DPI so you can resize images for the Web or print without unnecessary loss of sharpness.
Understand EXIF, GPS, XMP, IPTC, ICC profiles, rights information, and how to manage image metadata for privacy, publishing, and Web performance.
Resize, compress and choose between WebP, AVIF and other formats with a practical workflow that reduces file size without unnecessary visual loss.