Points, pixels, millimetres and inches converter
Convert between points, pixels, millimetres, centimetres, inches and picas at the pixel density you choose, with the 72 and 96 per inch rules explained.
Runs entirely in your browser
Layout work mixes units that come from different traditions: points from typesetting, pixels from screens, millimetres and inches from paper. This converter handles the six that appear in CSS, PDF and print specifications, and lets you set the pixel density, because a pixel has no fixed size until you do.
The fixed relationships#
Five of the six units are physical lengths with exact definitions, so conversions between them are exact.
- Inch
- 1 in = 25.4 mm, by international definition since 1959
- Point
- 1 pt = 1/72 in = 0.3527778 mm. This is the PostScript point, used by PDF and CSS
- Pica
- 1 pc = 12 pt = 1/6 in = 4.2333 mm
- Centimetre
- 1 cm = 10 mm = 28.3465 pt
The pixel is different. CSS defines the reference pixel so that 1 in = 96 px, which makes 1 pt = 1.3333 px and 1 px = 0.75 pt. That is a convention for stylesheets, not a fact about any screen: a phone with a high-density display may pack three device pixels into one CSS pixel. When you change the density setting above, only the px column moves; everything else is anchored to the inch.
Why 72 and 96#
PostScript, and PDF after it, fixed the point at exactly 1/72 inch so that one point would equal one pixel on the 72 PPI displays of the first Macintosh. Windows standardised on 96 PPI for its screen fonts, and when CSS needed one answer it chose 96. Two consequences follow:
- At the 72 setting, a value in points and a value in pixels are the same number. That is why design tools aimed at print show A4 as 595 × 842 "pixels": those are points.
- At the CSS setting of 96, 12 pt is 16 px. A browser rendering a PDF viewer or a print stylesheet uses this ratio to size type on screen.
Traditional typography had a slightly different point, 1/72.27 in, and TeX still uses it. The difference is 0.4 percent and matters only when reproducing metal-type measurements. Everything on this site, and every modern file format, uses the 1/72 in point.
Font sizes#
A font size in points is a physical size on paper: 12 pt type has an em square 12 pt tall, about 4.23 mm. On screen the same 12 pt becomes 16 CSS px, and on a 2× display 32 device pixels. If a design brief says "11 pt body text" and the stylesheet says font-size: 14.667px, they agree.
Reference table#
| Value | pt | px | mm | cm | in | pc |
|---|---|---|---|---|---|---|
| 1 pt | 1 | 1.3333 | 0.352778 | 0.035278 | 0.013889 | 0.083333 |
| 12 pt (1 pc) | 12 | 16 | 4.2333 | 0.423333 | 0.166667 | 1 |
| 1 px (CSS, 96 per inch) | 0.75 | 1 | 0.264583 | 0.026458 | 0.010417 | 0.0625 |
| 1 mm | 2.8346 | 3.7795 | 1 | 0.1 | 0.03937 | 0.23622 |
| 1 cm | 28.3465 | 37.7953 | 10 | 1 | 0.393701 | 2.3622 |
| 1 in | 72 | 96 | 25.4 | 2.54 | 1 | 6 |
| 210 mm (A4 width) | 595.28 | 793.7 | 210 | 21 | 8.2677 | 49.6063 |
| 8.5 in (Letter width) | 612 | 816 | 215.9 | 21.59 | 8.5 | 51 |
For how PDF uses points internally, including the coordinate system and the UserUnit entry that can change the scale, see the PDF units reference. For page boxes expressed in points, see PDF page boxes. For converting an image's pixel count to a print size, which involves the image's own resolution rather than a fixed density, use the DPI calculator.