Image pixel size to cm and inches
Pick a real image to read its true pixel size (JPEG is read from the JFIF density and PNG from the pHYs chunk for the DPI stored in the file; when there is none the tool says so), then convert with cm = pixels ÷ DPI × 2.54: at 300 DPI, 3000 × 2000 px is 25.4 × 16.933333 cm. It also lists sizes at 72/96/150/200/300/600 DPI with millimetres, points, total megapixels and a print-quality hint, and works backwards from a finished size such as A4 or a 6-inch photo to the pixels a full page needs and the effective DPI. Without an image you can simply type the pixel size.
Runs in your browserEvery computation happens in your browser — your data never leaves this device.
The image is read locally for its pixel size and DPI metadata; nothing is uploaded.
The conversion is shown as text below.
Conversion result
Every number below comes from this file’s real pixel size and whatever DPI metadata it carries — copy them straight out.
Pick an image first, or fill in the pixel size.
What this tool does
- Check whether an image is big enough to print: pick the real file and immediately see its print size at 300 DPI in cm / mm / in / pt.
- Work backwards from a finished size: choose a preset such as A4 and read the effective DPI when filling it plus the pixels needed to hit the target.
- Verify the DPI a file claims: JPEG is read from the JFIF density, PNG from the pHYs chunk. Whatever is there is reported; when it is missing the tool says so instead of guessing.
- No image at hand? Type a pixel size such as 3000x2000 and the whole conversion table still comes out.
Example
Input
No image selected, manual size 3000x2000, target DPI 300, print size A4
Output
Pixel source: Manual input · 3000 × 2000 px Real pixel size: 3000 × 2000 px DPI stored in the file: — Target DPI: 300 Print size at 300 DPI: 25.4 × 16.933333 cm (10 × 6.666667 in) Millimetres: 254 × 169.33333 mm Points (1 pt = 1/72 in): 720 × 480.000024 pt Total pixels: 6000000 px (6 MP) Print quality: Meets normal print requirements (300 DPI is the print standard) Formula: cm = px ÷ 300 × 2.54
Those are the first ten rows the page prints (the rest covers 72/96/150/200/300/600 DPI, the 2480 × 3508 px an A4 full page needs, and the effective DPI 362.857143 / 171.043771 when filling A4). With an image selected the first row turns into the file name and real pixel size, and the third row reports the DPI stored in the file.
Frequently asked questions
What is the formula?
cm = pixels ÷ DPI × 2.54. DPI counts dots per inch, so pixels ÷ DPI gives inches, and 1 inch = 2.54 cm exactly by international definition. The other direction is pixels = cm ÷ 2.54 × DPI, rounded to whole pixels — which is why a full A4 page at 300 DPI needs 2480 × 3508 px.
Does the manual pixel size still count once an image is selected?
No. With an image the decoded real pixel size wins and is shown as the “real pixel size” row; the manual value is only used when no image is selected. If a file cannot be decoded in the browser (HEIC is the usual case) the tool says so and falls back to the manual size — it never pretends to have read the size.
Where does the DPI stored in the file come from?
JPEG is read from the JFIF APP0 density field (only trusted when the unit is dots per inch); PNG from the pHYs chunk (pixels per metre, converted to DPI). GIF and WebP have no equivalent field, so the page says “WEBP has no density field — cannot be read”. That figure is reported for reference only and never drives the conversion: the print size is always pixels ÷ target DPI.
How are effective DPI and “pixels needed” computed?
Effective DPI = pixels ÷ printed inches. Filling A4 (210 × 297 mm = 8.267717 × 11.692913 in) with 3000 × 2000 px gives 3000 ÷ 8.267717 = 362.857143 DPI on the width and 2000 ÷ 11.692913 = 171.043771 DPI on the height; the limiting side sets the perceived sharpness, so 171.04 DPI overall. To reach 300 DPI on A4 you need 2480 × 3508 px.
Are DPI and PPI the same?
Not strictly: PPI describes the pixel density of an image, DPI the output resolution of a printer. People mix them in everyday speech; this tool uses the PPI sense — pixels divided by the target resolution.
Why does the same image change size so much across DPI values?
The pixel count is fixed, so a higher density spreads it over fewer inches. 3000 px is 105.833333 cm wide at 72 DPI, 25.4 cm at 300 DPI and 12.7 cm at 600 DPI. Posters viewed from a distance can trade DPI for size; fine art books want 300 DPI or more.
How large can a phone photo print?
At 300 DPI a 12 MP shot (4000 × 3000) reaches about 33.9 × 25.4 cm and a 48 MP shot (8000 × 6000) about 67.7 × 50.8 cm. Posters viewed from a distance can drop to 150 DPI and double that. Pick a real photo above and these numbers become that file’s own numbers.
Keywords:px to cm300 DPIimage size