CSS Unit Converter Online

Convert between px, rem, em, vw, vh, pt, and % CSS units instantly.

Conversions
UnitConverted Value
px16
rem1
em1
vw1.111111
vh1.777778
pt12
%100

When to use CSS Unit Converter

Compare CSS length units using explicit font and viewport assumptions.

How to use CSS Unit Converter

Enter a numeric value and its unit, then set root size, parent size and viewport dimensions. Read the calculated values and formulas.

Worked example

Example — verified tool behavior
16px at root 16px → 1rem and 12pt

How the tool handles input

Conversions pass through pixels. rem uses the root size; em and percentage use the entered parent size; vw and vh use the entered viewport. Points use 96/72 pixels. Results are rounded to six decimals.

Limitations

Percentage bases depend on the CSS property in real layouts; one parent-size input cannot model every case. Numeric input uses permissive parseFloat and zero or blank reference values fall back to defaults. The tool does not inspect your page's computed styles.

Frequently asked questions

Does changing my browser window change the viewport assumptions?

No. The calculations use the dimensions entered in the tool.

What are the main limitations?

Percentage bases depend on the CSS property in real layouts; one parent-size input cannot model every case. Numeric input uses permissive parseFloat and zero or blank reference values fall back to defaults. The tool does not inspect your page's computed styles.