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.