Pixels to Inches Converter
WM-05Choose a DPI (also called PPI), type a size such as 1920 px or 8.5 in, and see it in pixels, inches, centimeters, millimeters and points.
Runs in your browser. Nothing is uploaded.
Values, one per line
Converted
How to use it
- Pick the DPI or PPI of your screen, image or print job. 96 is the CSS value, 300 is common for print.
- Type one size per line, such as 1920 px, 8.5 in or 21 cm.
- A bare number uses the unit under "Unit when none is typed", which is px by default.
- Press Convert and copy the result.
Why pixels need a DPI
A pixel is a dot of a grid, not a length. It gets a physical size only when you say how many pixels fit in an inch. At 96 DPI a pixel is 1/96 inch, so 1920 px is 20 inches. At 300 DPI the same 1920 px is 6.4 inches. Doubling the DPI halves the printed size of an image with the same pixel count. That is why this tool asks for a DPI first and has no single answer without one.
How the conversion is done
Inches are the base. The number of pixels is divided by the DPI to get inches. One inch is exactly 2.54 cm and 25.4 mm, and one point is 1/72 inch. The calculation uses exact fractions and rounds once, at the end, to the significant digits you choose. Going the other way, 8.5 in at 96 DPI is 816 px.
Limits
The DPI stored inside an image file is a hint for print software and does not change the pixel count. This tool does not read it, so pick the value yourself. The CSS pixel is defined as 1/96 inch, but a real screen has its own pixel density and a device pixel ratio, so a CSS inch on a phone will not match a ruler. For paper sizes, work out the pixels at 300 DPI for print.
Error messages and what to do
| Message | What it means | Fix |
|---|---|---|
Line 1: unknown unit "foo". Known units: px, in, cm, mm, pt. | The text after the number is not a unit this tool knows, so it cannot tell what the number measures. | Use one of the units named in the message, or its full name, such as the spelled-out unit. |
Line 1: could not find a number at the start of "abc". Write a value such as 12.5 km, or just 12.5. | The line does not start with a number, so there is nothing to convert. | Start each line with a value such as 12.5, with the unit after it if you want one. |
Questions people ask
How many pixels are in an inch?
It depends on the DPI. At 96 DPI there are 96 pixels per inch, at 72 DPI there are 72 and at 300 DPI there are 300. Choose the DPI in the list, type 1 in and read the px row.
How do I convert pixels to inches?
Divide the pixel count by the DPI. So 1920 px at 96 DPI is 20 in, and at 300 DPI it is 6.4 in. Type 1920 px and read the in row for the DPI you picked.
What DPI should I use for print?
Print jobs commonly ask for 300 DPI, and 150 is often used for large posters viewed from a distance. Ask your printer for their requirement. For screen layout in CSS, use 96.
How many pixels is 8.5 x 11 inches?
At 300 DPI, 2550 x 3300 px. At 96 DPI, 816 x 1056 px. Type 8.5 in on one line and 11 in on another, with your DPI chosen, and read the px rows.
Are DPI and PPI the same here?
For this conversion, yes. Both mean dots or pixels per inch. Strictly, PPI describes a screen or image and DPI describes ink dots in print, but the arithmetic is the same.
How do I convert pixels to centimeters?
Divide by the DPI to get inches, then multiply by 2.54. At 96 DPI, 378 px is 3.9375 in, which is 10.00125 cm. The tool does both steps and shows a cm row.
About this tool
A pixel has no fixed physical size; it is 1/DPI of an inch, so the same pixel count gives a different size at 72, 96, 150, 300 or 600 DPI. Pick the DPI of your screen, file or printer. Inches, centimeters and millimeters use the exact definition 1 in = 2.54 cm = 25.4 mm, and a point is 1/72 in. The CSS pixel is defined as 1/96 in, so 96 is the match for web layout, while 300 DPI is a common target for print. This does not read the DPI stored inside an image file, and screen pixel density on a real device can differ from the CSS value.