Font size guide for points, pixels and stated scale
Convert font sizes with your chosen reference size or image resolution.
Converted size
16 CSS px
Nominal units only. Letter height and device pixels cannot be converted.
Converted nominal size: 16 CSS px.
72 pt = 96 CSS px = 1 nominal inch.
Distinguish nominal size and letter height
A font size guide converts the specified type size. The height of a visible letter also depends on the typeface.
In W3C’s CSS unit definitions, one inch equals 72 points or 96 CSS pixels. Those ratios stay fixed when you change image resolution.
Screen inches need not match a ruler. A CSS pixel is a layout unit whose relationship to device pixels depends on the display and browser.
A rem uses the root element’s computed font size. For the font-size property, an em uses the parent’s computed size. Elsewhere, em usually uses the element’s own computed font size.
Two typefaces at 16 CSS px can have different lowercase heights and capital heights. W3C’s font-size specification explains how glyphs occupy different amounts of their type size. This tool cannot infer letter height, device-pixel height or perceived size from a nominal value.
Work a unit conversion
The example converts 12 pt to 16 CSS px: 12 divided by 72, then multiplied by 96. A root size is unnecessary for that conversion.
For rem, divide the CSS pixel size by the root size. At a root of 16 CSS px, 16 CSS px equals 1 rem. At 20 CSS px, the same size equals 0.8 rem.
A font-size of 1.5 em with a 20 CSS px parent gives 30 CSS px. Set Parent font size to 20 to use that reference.
Image pixels use the entered pixels per inch. At 300 pixels per inch, 12 pt occupies 50 image pixels of nominal type size: 12 divided by 72, then multiplied by 300.
That 50-pixel size does not promise a 50-pixel tall capital letter. Image resolution describes the chosen raster scale. Printer dots per inch describe a different output property.
The result rounds to whole numbers from 100 and up to two decimals below 100. A positive result below 0.005 reads Less than 0.01. Calculations retain unrounded values.
Inspect the actual rendered text
Check legibility in the actual typeface and layout after converting the units. A numerical match does not certify readability or accessibility.
Open the storefront with its intended font loaded. Inspect long product names and prices at phone width. Check line spacing and contrast separately.
Enlarge text and use browser zoom to check that content and controls remain usable. W3C’s text resizing guidance covers enlargement to 200% without losing content or functionality.
For printed labels, check the final export at actual size. Disable fit-to-page scaling and inspect a printed proof. Any later scaling changes the physical result.