Pixel to REM Converter
Enter a pixel or REM value and get the equivalent instantly. Adjust the root font size to match your project.
Pixel ↔ REM Converter
px
Default browser root font size is 16px.
px
rem
Formula used
Converted Value
Common Sizes Reference
| Description | px | rem (16px base) |
|---|
Copied!
Summary
Enter a pixel or REM value and get the equivalent instantly. Adjust the root font size to match your project.
How it works
- Enter a pixel value in the "Pixels (px)" field to get the REM equivalent.
- Or enter a REM value in the "REM" field to convert back to pixels.
- Adjust the "Root Font Size" if your project uses a base other than 16px.
- The formula updates in real time to show the exact calculation.
- Click any row in the reference table to load that value into the converter.
- Click "Clear" to reset all fields.
Use cases
- Convert design mockup pixel measurements to REM values for accessible CSS.
- Verify existing REM values against their pixel equivalents during a code review.
- Scale a design system to a non-standard root font size (e.g. 10px or 18px).
- Quickly generate a reference table of common pixel-to-REM mappings.
- Ensure font sizes, spacing, and layout values are consistent in a CSS codebase.
Frequently Asked Questions
Last updated: 2026-06-11 ·
Reviewed by Nham Vu