PX to REM Converter
A PX to REM Converter turns pixel values into rem units and back, based on a configurable root font size (16px by default), and shows a reference table of common values — all computed in your browser.
html { font-size: 16px }).Reference · at 16px root
| px | rem | Copy |
|---|---|---|
| 1px | 0.0625rem | |
| 2px | 0.125rem | |
| 4px | 0.25rem | |
| 8px | 0.5rem | |
| 10px | 0.625rem | |
| 12px | 0.75rem | |
| 14px | 0.875rem | |
| 16px | 1rem | |
| 18px | 1.125rem | |
| 20px | 1.25rem | |
| 24px | 1.5rem | |
| 28px | 1.75rem | |
| 32px | 2rem | |
| 40px | 2.5rem | |
| 48px | 3rem | |
| 64px | 4rem | |
| 80px | 5rem | |
| 96px | 6rem |
About PX to REM Converter
rem units scale with the root font size, which lets layouts respect a user's browser font-size preference — better for accessibility than fixed pixels. This converter does the math both ways: type a pixel value to get rems, or a rem value to get pixels, at whatever root size you set. A reference table lists the rem equivalents of common pixel steps (1 to 96px) with copy buttons. Everything runs locally — nothing is uploaded.
What PX to REM Converter does
- Two-way px and rem conversion
- Configurable root font size (defaults to 16px)
- Reference table of common px values with rem equivalents
- Copy any rem value with one click
- Accurate to four decimal places, trailing zeros trimmed
- Runs entirely in your browser — nothing uploaded
When to reach for PX to REM Converter
- Converting a Figma spec in pixels to rem for an accessible stylesheet
- Working out the rem value for a 14px caption at a 16px root
- Migrating a codebase from px to rem units
- Setting media-query and spacing values in scalable rems
How to use PX to REM Converter
- 01
Set the root size
Confirm or change the root font size (16px by default).
- 02
Enter a value
Type a pixel value to get rems, or a rem value to get pixels.
- 03
Copy the result
Copy the converted value, or grab a common value from the reference table.
When to use PX to REM Converter vs alternatives
| Alternative | Use PX to REM Converter when… | Use the alternative when… |
|---|---|---|
| Doing the division by hand | you want a table of common values and a non-16px root handled for you. | it's a single value at a 16px root — 16px = 1rem is easy. |
| A CSS calc() at runtime | you want a concrete rem number to commit to your stylesheet. | you specifically want the value computed live in the browser. |