πŸ“CSS Unit Converter

Free online CSS unit converter. Convert between px, rem, em, pt, vw, vh and % with configurable root and viewport sizes.

CSS Unit Converter

px
px
px
px
px

Converted Values

pxInput16
rem1
em1
pt12
vw0.8333
vh1.4815
%0.8333

About CSS Unit Converter

The CSS Unit Converter translates between px, rem, em, pt, vw, vh and percentages with a configurable root font size, parent font size and viewport. Copy each converted value with one click, and reference the built-in formula guide to understand every calculation. Runs entirely in your browser.

Features

  • Convert between px, rem, em, pt, vw, vh and %
  • Configurable root and parent font size
  • Configurable viewport width and height
  • Copy each converted value individually
  • Built-in formula reference

Frequently Asked Questions

How is rem calculated?
rem is relative to the root font size. For example, with a 16px root, 1rem equals 16px.
Can I set a custom viewport?
Yes. Enter your own viewport width and height to get accurate vw and vh conversions.