Convert pixels to rem
Pixel (px) to rem (rem). One pixel equals 0.0625 rem.
Formula
Pixel to rem conversion table
| Pixels | Rem | Rem | Pixels |
|---|---|---|---|
| 1 px | 0.0625 rem | 1 rem | 16 px |
| 2 px | 0.125 rem | 2 rem | 32 px |
| 3 px | 0.1875 rem | 3 rem | 48 px |
| 5 px | 0.3125 rem | 5 rem | 80 px |
| 10 px | 0.625 rem | 10 rem | 160 px |
| 20 px | 1.25 rem | 20 rem | 320 px |
| 50 px | 3.125 rem | 50 rem | 800 px |
| 100 px | 6.25 rem | 100 rem | 1600 px |
| 500 px | 31.25 rem | 500 rem | 8000 px |
| 1000 px | 62.5 rem | 1000 rem | 16000 px |
To convert pixels to rem, divide the number of pixels by 16. One pixel equals 0.0625 rem, and one rem equals 16 pixels, so the relationship is fixed and exact. As a worked example, 10 px comes to 0.625 rem. Enter your own figure in the converter above to get an instant answer, or use the swap button to flip the direction. This is a typography conversion, and like every tool on UnitGlide it runs locally in your browser with no account or upload required. The table further down shows a range of common pixel values already worked out in rem, plus the reverse rem to pixel direction, which is handy for quick reference or double-checking a result by hand.
Frequently asked questions
How many rem are in a pixel?
One pixel equals 0.0625 rem. The ratio is constant, so you can multiply any number of pixels by 0.0625 to get rem.
What is the formula to convert pixels to rem?
Use rem = pixels ÷ 16. UnitGlide applies this exact formula for every value, so results stay accurate across the whole range.
How do I convert rem back to pixels?
Go the other way by using one rem equals 16 pixels. You can also press the swap button in the converter above to flip the direction in one click.
Is this pixel to rem converter accurate?
Yes. It uses a fixed multiple of the common 16px default browser root font-size used for rem; if a project sets a different root font-size, scale the result accordingly, and all math runs in your browser so nothing is rounded away on a server. For everyday use the displayed precision is more than enough.