Pixels to Inches Converter
Digital files and browser layouts can describe size in pixels while another specification gives a pixels-per-inch scale. This converter connects those systems with one required value: resolution in pixels per inch or dots per inch. The default form converts 1080 px at 96 PPI to 11.25 in, then also reports 28.575 cm and 285.75 mm. Switch the direction and the same form multiplies inches by resolution to recover pixels.
Pixels alone are incomplete for a physical-size calculation. A 2400-pixel dimension is 25 inches at 96 PPI, 8 inches at 300 PPI, or 6 inches at 400 PPI. Those are direct consequences of the supplied PPI, not recommendations for a particular output process. For fixed lengths, compare with the length converter, the inch to meter calculator, or the mm to km converter. For CSS unit work, the px to em converter handles a different pixel relationship based on font size.
Resolution is the missing scale
PPI means pixels per inch. If a file is interpreted at 96 PPI, every 96 pixels cover one inch. If it is interpreted at 300 PPI, every 300 pixels cover one inch. This calculator’s field is PPI: pixels per inch. Treat PPI as an explicit input. For CSS arithmetic, 96 follows the W3C reference relationship. For a physical artifact, use a PPI value established outside this calculator.
Formula used by the calculator
The calculation rejects negative sizes and requires resolution greater than zero. In pixels-to-inches mode it divides by the entered PPI:
In inches-to-pixels mode it multiplies by the entered PPI:
Metric companions use the exact inch relationships after the inch value is known:
The result panel formats pixels to at most two decimals, inches to at most four decimals, centimeters to at most four decimals, and millimeters to at most three decimals. That display choice is why a result may look rounded even though the underlying calculation is direct.
Worked example matching the default form
Open the converter in its default direction, pixels to inches. The pixel input is 1080 px and the resolution input is 96 PPI. The calculation is:
Then it converts that physical size to metric:
The primary answer is 11.25 in. The supporting rows show 1080 px, 28.575 cm, 285.75 mm, and 96 PPI as the resolution used. If you switch direction, enter 11.25 in, and keep 96 PPI, the calculator multiplies 11.25 by 96 and returns 1080 px.
Reference table
| Pixel dimension | Resolution | Physical inches | Typical context |
|---|---|---|---|
| 96 px | 96 PPI | 1 in | CSS reference inch arithmetic |
| 1080 px | 96 PPI | 11.25 in | Default calculator example |
| 1920 px | 96 PPI | 20 in | Browser or screen layout comparison |
| 1200 px | 300 PPI | 4 in | Supplied-density example |
| 2400 px | 300 PPI | 8 in | Supplied-density example |
| 3000 px | 300 PPI | 10 in | Supplied-density example |
| 4000 px | 400 PPI | 10 in | Supplied-density example |
Use the table as arithmetic examples, not recommended settings. The formula handles any positive finite PPI for which all derived results remain finite and representable, but the result is only as applicable as the density you enter.
CSS and supplied physical scales
In CSS, one pixel is a reference unit used by the layout engine. The W3C model ties common CSS math to a 96 pixel per inch reference, which is why 96 appears as the default. Browser zoom, operating-system scaling, and high-density panels can make that CSS inch differ from a physical ruler held against the glass. Use this calculator for CSS comparisons when the goal is layout reasoning, not laboratory measurement.
For a supplied physical scale, record the PPI with the result. The calculator does not determine calibration, image quality, device scaling, or production suitability. For physical dimensions after the inch result is known, use a fixed-unit tool such as the length converter.
Pitfalls to avoid
- Assuming 96 PPI describes every monitor. It describes the CSS reference model; hardware may differ.
- Entering a dots-per-inch value as though it were necessarily the required pixels-per-inch scale.
- Rounding too early. Keep the calculator’s full result when you are preparing dielines, labels, or inspection screenshots.
Accuracy and limits
The calculator keeps the defined or cited relationship through the calculation and rounds only the displayed result. A converted number does not become more precise than the source measurement. Keep additional digits for chained calculations, then round to the precision justified by the original value; also preserve any reference basis or notation convention named with the input.
Sources
- W3C, CSS Values and Units Module Level 4 — CSS reference pixel and absolute length relationships.
- NIST, SI Units: Length — inch, centimeter, and millimeter relationships used for metric companion values.