Runs locally
CSS Unit Converter
px, rem, em, pt and percent.
Ctrl+Enter runs. Ctrl+Shift+Backspace clears.
Export and import are available after you sign in. Sign in
Converts using the root and parent font size you set.
About this tool
Turn a pixel value from a design into rem for scalable CSS, or check what 1.5em means in pixels. Set the root font size, usually 16 px, and convert in any direction.
How to use it
- 01
Enter the value.
- 02
Choose the units to convert from and to.
- 03
Set the root font size and read the result.
FAQ
Frequently asked questions
How many pixels is 1rem?
By default 16 px, the browser's standard root font size; change the root value if your site uses another.
Why use rem instead of px?
rem scales with the user's font settings, which improves accessibility.