CSS · Design
CSS Unit Converter
Convert a CSS length to all common units using your root font size and viewport settings.
- px16px
- rem1rem
- em1em
- vw1.25vw
- vh2.2222vh
How to use
- Enter a value and pick the source unit.
- Set root font size and viewport width/height.
- Read equivalents for px, rem, em, vw, and vh.
Features
- px, rem, em, vw, vh
- Configurable root and viewport
- All equivalents at once
- Runs in your browser. Colors and images are not uploaded to ToolsWeb servers.
Privacy & how it works
This design utility runs in your browser. Colors, CSS, and images you enter are not uploaded to ToolsWeb servers for this tool. Privacy Policy.
FAQ
How is em calculated here?expand_more
For conversion purposes, em uses the configured root font size—the same reference as rem in this tool.
Is this tool free?expand_more
Yes. No signup and no paywall for core use.
Is my text uploaded?expand_more
No for this tool. Text stays in your browser while you work.
Do I need an account?expand_more
No. Open the page and start typing or pasting.