PX / REM / EM Converter
Convert single values or entire CSS blocks between px, rem, em, pt, and percentages with custom root sizes.
Related design tools
All Design toolsAbout PX / REM / EM Converter
Convert single measurements or entire CSS stylesheets between px, rem, em, pt, and percentages with custom root and parent font sizes.
How to use PX / REM / EM Converter
- 1
Set your root HTML font size (default 16px) and parent font size for em calculations.
- 2
Type any pixel or rem value to see instant conversions and tap common presets in the reference grid.
- 3
Paste a CSS block into the Batch Converter to switch every px declaration to rem (or rem back to px) at once.
Frequently asked questions
What is the difference between rem and em?
rem is always relative to the root <html> font size, whereas em is relative to the font size of the element’s parent container.
Does the batch converter keep zero values clean?
Yes. Values like 0px are normalized to unitless 0 while non-zero pixel measurements convert accurately using your root font size.
Are my stylesheets sent to a server for conversion?
No. Every conversion runs locally in JavaScript inside your browser.
