Points to pixels, pixels to points
A word processor measures type in points, a style sheet in pixels, and a print shop asks for 300 DPI. This converter links those systems. It turns points into CSS pixels, millimeters, centimeters, inches, picas, em/rem and Didot points, and it works out how many device pixels an image needs at the resolution you choose.
How to use it
- Under "Convert pt, px, mm and other units", type a value in any field, such as "Points (pt)" or "Inches (in)". Every other field updates at once, with the formula shown underneath.
- Change "em / rem base (px)" only if your page does not use the default 16 px.
- In "Device pixels at a resolution (DPI)", pick 72, 96, 150, 300 or 600, or type your own figure in "Resolution (DPI)". "Device pixels at this resolution" gives the image size, along with the size of a full A4 page.
- Type a sentence in "Sample text" to see it at the chosen size. In "Common font sizes", click any size from 8 to 72 pt to load it. "Copy" puts a value and its unit on the clipboard.
What a point, a pixel and a pica are worth
The modern point (pt), used by word processors and page layout software, is 1/72 of an inch, or 0.3528 mm. A pica is 12 points. A CSS pixel (px) is defined as 1/96 of an inch. So one inch is exactly 72 pt, 96 px, 6 picas and 25.4 mm.
Why 12 pt equals 16 px
Since 72 points and 96 CSS pixels fill the same inch, 1 pt is 96 ÷ 72 = 4/3 px, or about 1.333 px. That gives px = pt × 4/3 and pt = px × 0.75. Body text set at 12 pt comes out at 16 px, the browser default, which also makes 12 pt equal to 1 rem. Likewise, 9 pt is 12 px and 18 pt is 24 px. Going from metric, 10 mm is 28.3465 pt or 37.7953 px.
CSS pixels versus device pixels
A CSS pixel is a unit of length, not a dot on your screen. An image meant for print is counted in device pixels: pixels = inches × DPI. At 300 DPI, one inch holds 300 px. A US Letter page (8.5 × 11 in) needs 2550 × 3300 px, and an A4 page (210 × 297 mm) needs 2480 × 3508 px. A 4 × 6 in photo printed at 300 DPI should be 1200 × 1800 px.
The Didot point
Continental European typesetting once used the Didot point, 0.376 mm. A 12-point Didot body is 4.512 mm, or 12.79 modern points. The "Didot points (dd)" field is there for reading old printing documents; nobody sets type in it today.
Frequently asked questions
How many pixels is a 12 pt font?
16 CSS pixels, which is 1 rem with a 16 px base. On paper it has a 4.23 mm body, and in an image at 300 DPI it takes 50 device pixels.
Why does 12 pt text look bigger or smaller on my screen?
What you see depends on the display, its pixel density and the zoom level. On paper, 12 pt always has a 4.23 mm body.
What resolution should I use for print?
300 DPI for documents and photos seen up close, 150 DPI for posters viewed from a distance. 72 and 96 DPI are only suitable for screens.
Is the body height the height of a letter?
No. The body is the height set aside for one line of type. A 12 pt capital letter is usually around 3 mm tall, depending on the typeface.