LLION/ PDF, print & document engineering

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.

Value
Pixel density
Only affects px. Points, millimetres, inches and picas are fixed physical units.

Result
Factor
pt
px
mm
cm
in
pc

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#

Common values in every unit. Pixels are CSS pixels at 96 per inch; at another density multiply the px column by density ÷ 96.
Valueptpxmmcminpc
1 pt11.33330.3527780.0352780.0138890.083333
12 pt (1 pc)12164.23330.4233330.1666671
1 px (CSS, 96 per inch)0.7510.2645830.0264580.0104170.0625
1 mm2.83463.779510.10.039370.23622
1 cm28.346537.79531010.3937012.3622
1 in729625.42.5416
210 mm (A4 width)595.28793.7210218.267749.6063
8.5 in (Letter width)612816215.921.598.551

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.

Sources

LLION Editorial · Updated