Skip to content
QuicklyTools

CSS Unit Converter

Convert between px, rem, em, pt, pc, in, cm, mm, vw, vh and % using your own font size, viewport and container context.

Runs in your browser
Loading tool…

About the CSS Unit Converter

Translate design specs into CSS: points from print designers, pixels from Figma, rems for accessible typography and viewport units for fluid layouts. Set the context — root and parent font size, viewport size and container width — and every unit converts at once. Click a value to copy it.

How to use it

  1. Enter a value and its unit.
  2. Adjust the context if needed.
  3. Click the converted value you want to copy.

Good to know

  • Absolute units use CSS definitions (1in = 96px), not physical measurements on your screen.

Frequently asked questions

rem or em?

rem is relative to the root font size and stays predictable; em is relative to the parent and compounds when nested.

How many pixels is 12pt?

16px (12 × 96/72).

More utilities & converters →