PX to REM. Convert pixels to rem and back, with a table of common sizes.
How it works
Set the root size
16px is the browser default. Change it if your site sets another.
Type either value
Enter px to get rem, or rem to get px.
Use the table
Common sizes from 10px to 96px, ready to copy.
Questions
What is 1rem in pixels?
The root font size, which is 16px unless the site or the reader changes it.
When should I use rem?
For font sizes, and for spacing that should grow with text. Keep px for hairline borders and shadows.
More design tools
- Fluid type: A CSS clamp() value that scales text between two screens.
- Type scale: A modular scale of font sizes, previewed in your font.
- Spacing scale: Spacing steps on a 4 or 8 point grid.