Uttir

Typography / CSS Unit Converter

Convert between CSS length units: px, pt, pc, in, cm, mm, em, rem, and %. Default 16px base.

Typography / CSS Unit Converter — CSS has many length units. Absolute units (px, pt, pc, in, cm, mm) are tied to physical measurements. Relative units (em, rem, %) are tied to font size or the root font size. The browser default font size is 16px; this converter assumes that base.

Conversions run locally in your browser. No values are sent anywhere.

Was Typography / CSS Unit Converter useful?

What is typography / css unit converter?

CSS has many length units. Absolute units (px, pt, pc, in, cm, mm) are tied to physical measurements. Relative units (em, rem, %) are tied to font size or the root font size. The browser default font size is 16px; this converter assumes that base.

Note: the em and rem conversions depend on the font-size context. If a CSS rule sets a different base font size, the em values change accordingly.

How to use it

  1. Enter a value

    Type the length in any supported unit. The default is 1 px.

  2. Pick the units

    The from/to dropdowns cover all the CSS length units: px, pt, pc, in, cm, mm, em, rem, %.

  3. Mind the base

    em assumes 16px base (browser default). rem also assumes 16px root. If your CSS uses a different base, multiply the em/rem result accordingly.

Examples

12pt to px

12pt (a common body-text size) is exactly 16px in CSS.

12 pt

Result: = 16 px (at 96 DPI / 1px = 0.75pt)

Frequently asked questions

Related tools

Last reviewed: 2026-08-21