CSS Unit Converter
Convert between px, rem, em, percent, and pt instantly. This css unit converter online updates every field live as you type, using your chosen base font size.
The browser default root font size is 16px.
Relative to the parent element, not always equal to rem.
About the CSS Unit Converter
This css unit converter online tool converts between pixels, rems, ems, percentages, and points the moment you type. Whether you are translating a legacy design that used fixed pixel values into a responsive rem-based system, or checking what a percentage font size actually renders as on screen, every field stays in sync using your chosen base font size as the common reference point.
All five units route through pixels internally: a px to rem converter divides by the base font size, a rem to px calculator multiplies by it, percent is the same ratio expressed out of 100, and points follow the fixed 96px-per-inch, 72pt-per-inch relationship used by CSS. The field you are actively typing into is never overwritten, so you can keep typing without the value jumping around.
How to Use
- Set the Base Font Sizeto match your project's root font size, or leave it at the 16px browser default.
- Type a value into any of the px, rem, em, percent, or pt fields.
- Watch the remaining fields update automatically to the equivalent value.
- Copy the converted value you need directly into your stylesheet.
Quick Reference at 16px Base
Common equivalents when the base font size is the browser default of 16px.
| px | rem | em | % | pt |
|---|---|---|---|---|
| 8px | 0.5rem | 0.5em | 50% | 6pt |
| 12px | 0.75rem | 0.75em | 75% | 9pt |
| 16px | 1rem | 1em | 100% | 12pt |
| 20px | 1.25rem | 1.25em | 125% | 15pt |
| 24px | 1.5rem | 1.5em | 150% | 18pt |
| 32px | 2rem | 2em | 200% | 24pt |
Who Should Use This Tool
- Frontend developers converting fixed pixel designs into a rem-based responsive layout.
- UI designers who need a quick rem to px calculator when handing off specs to engineers.
- Accessibility engineerschecking that text scales correctly relative to a user's browser font size settings.
- Students learning CSS who want to see exactly how px, em, rem, percent, and pt relate to one another.
Privacy first. All conversions run directly in your browser using plain JavaScript arithmetic. Nothing you type is ever uploaded, logged, or stored on a server.
