Design
CSS Unit Converter
Convert CSS lengths between pixels, rem, em, and percentages using your root and parent font sizes. Copy values for responsive stylesheets without mental math.
Runs entirely in your browser. Your data never leaves this device.
- px โ rem โ em
- Percent support
- Root font size
- Parent size for em
- Copy values
Workspace
Client-side ยท No upload
How it works
- Enter a value and unit.
- Set root (and parent) font size.
- Read converted px/rem/em/% outputs.
Key features
- px โ rem โ em
- Percent support
- Root font size
- Parent size for em
- Copy values
FAQ
Default root?
16px is the common browser default โ change it to match your project.
Percent of what?
Percent conversions use the parent size you provide.
Private?
Yes.
Viewport units?
MVP focuses on px/rem/em/%; vw/vh may come later.
Keep building
Related developer tools
Generators
Free Unit Converter online
Convert length, weight, and temperature units online. Free unit converter restored for everyday use.
Text & Data
Free CSS Minifier & Beautifier online
Minify or beautify CSS instantly. Perfect for production bundles and readable source.
Design
Free Flexbox Playground online
Visual CSS Flexbox playground. Tweak direction, justify, align, and wrap with a live demo.