Convert rem to pixels
One rem (rem) equals 16 pixels (px), so multiply rem by 16 to get pixels.
How it's calculated
- 1 rem × 16 = 16 px
Convert a list
How do you convert rem to pixels?
Last reviewed . Source: W3C, CSS Values and Units Module (absolute lengths). How we convert
Rem to pixel conversion table
Rem to pixels
| Rem | Pixels |
|---|---|
| 1 rem | 16 px |
| 2 rem | 32 px |
| 3 rem | 48 px |
| 5 rem | 80 px |
| 10 rem | 160 px |
| 20 rem | 320 px |
| 50 rem | 800 px |
| 100 rem | 1600 px |
| 500 rem | 8000 px |
| 1000 rem | 16000 px |
Reverse: pixels to rem
| Pixels | Rem |
|---|---|
| 1 px | 0.0625 rem |
| 2 px | 0.125 rem |
| 3 px | 0.1875 rem |
| 5 px | 0.3125 rem |
| 10 px | 0.625 rem |
| 20 px | 1.25 rem |
| 50 px | 3.125 rem |
| 100 px | 6.25 rem |
| 500 px | 31.25 rem |
| 1000 px | 62.5 rem |
Decimal rem to pixels conversion table
The exact decimal amounts people look up most often, worked out with the same factor the converter above uses. Every row is calculated, not rounded off a chart.
| Rem | Pixels |
|---|---|
| 0.0625 rem | 1 px |
| 0.125 rem | 2 px |
| 0.1875 rem | 3 px |
| 0.25 rem | 4 px |
| 0.3125 rem | 5 px |
| 0.375 rem | 6 px |
| 0.4375 rem | 7 px |
| 0.5 rem | 8 px |
| 0.5625 rem | 9 px |
| 0.625 rem | 10 px |
| 0.6875 rem | 11 px |
| 0.75 rem | 12 px |
| 0.8125 rem | 13 px |
| 0.875 rem | 14 px |
| 0.9375 rem | 15 px |
| 1 rem | 16 px |
| 1.25 rem | 20 px |
| 1.5 rem | 24 px |
| 1.75 rem | 28 px |
| 2 rem | 32 px |
| 2.25 rem | 36 px |
| 2.5 rem | 40 px |
| 2.5625 rem | 41 px |
| 2.75 rem | 44 px |
| 3 rem | 48 px |
| 3.125 rem | 50 px |
| 3.5 rem | 56 px |
| 4 rem | 64 px |
| 5 rem | 80 px |
| 6 rem | 96 px |
| 8 rem | 128 px |
| 10 rem | 160 px |
| 12 rem | 192 px |
| 18 rem | 288 px |
| 20 rem | 320 px |
| 24 rem | 384 px |
| 42 rem | 672 px |
| 50 rem | 800 px |
Pixels back to rem
The same conversion in reverse, for when you have the answer and need the question.
| Pixels | Rem |
|---|---|
| 1 px | 0.0625 rem |
| 2 px | 0.125 rem |
| 4 px | 0.25 rem |
| 8 px | 0.5 rem |
| 10 px | 0.625 rem |
| 12 px | 0.75 rem |
| 14 px | 0.875 rem |
| 16 px | 1 rem |
| 18 px | 1.125 rem |
| 20 px | 1.25 rem |
| 24 px | 1.5 rem |
| 32 px | 2 rem |
| 40 px | 2.5 rem |
| 48 px | 3 rem |
| 64 px | 4 rem |
Where the rem to pixel factor comes from
- A rem is a font-relative length defined in the W3C CSS Values and Units specification: 1 rem equals the computed font-size of the root element, the html element of the page.
- This page assumes the 16 px root font-size that browsers apply when a stylesheet does not set one, so 1 rem = 16 px. That is a default, not a constant of nature.
- pixels = rem × 16. So 1.25 rem is 1.25 × 16 = 20 px, 0.625 rem is 10 px and 0.0625 rem, one sixteenth, is exactly 1 px.
- If a project sets its own root size, swap 16 for that size: with html { font-size: 62.5% } the root is 10 px and 1.25 rem becomes 12.5 px. The CSS pixel itself is fixed at 1/96 inch by the same specification, so once the root is known the conversion is exact.
Common mistakes
Rem reads the root, em reads the parent
An em is relative to the font-size of the element it is used on, and for font-size itself to the parent's, so nested ems compound: 1.25 em inside 1.25 em is 25 px, not 20. A rem always reads the root element, so 1.25 rem is 20 px anywhere on the page at a 16 px root.
The 62.5% root changes the multiplier
Stylesheets that set the root to 62.5% make 1 rem 10 px, so 1.6 rem is 16 px there. Converting such a project with the 16 px default overstates every size by 60 percent; multiply by 10 instead, or by whatever root size the project actually sets.
Visitors can move the root
When someone raises the browser's default font size, the root grows and every rem grows with it, unless the stylesheet pins the root in pixels. That is why rem is the usual unit for accessible type, and why a rem value only has a pixel size once the root is known.
To convert rem to pixels, multiply the number of rem by 16. One rem equals 16 pixels, and one pixel equals 0.0625 rem, so the relationship is fixed and exact. As a worked example, 10 rem comes to 160 px. 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 rem values already worked out in pixels, plus the reverse pixel to rem direction, which is handy for quick reference or double-checking a result by hand.
Frequently asked questions
1 rem is equal to how many pixels?
16 px at the default 16 px root font-size, because 1 rem always equals the font-size of the root (html) element. With a 10 px root it is 10 px, and with an 18 px root it is 18 px.
How many pixels is 1.25 rem?
20 px. Multiply rem by the 16 px root: 1.25 × 16 = 20. At the same root, 0.625 rem is 10 px, 3.125 rem is 50 px and 18 rem is 288 px.
What is 0.0625 rem in px?
1 px. 0.0625 is 1/16, so at a 16 px root it is exactly one CSS pixel; by the same step 2.5625 rem is 41 px and 50 rem is 800 px.
What is the formula to convert rem to pixels?
16 is the number to multiply by: pixels = rem × 16. UnitGlide applies this exact formula for every value, so results stay accurate across the whole range.
How do I convert pixels back to rem?
1 pixel equals 0.0625 rem, so multiply by that to go the other way. You can also press the swap button in the converter above to flip the direction in one click.
Is this rem to pixel converter accurate?
10 rem = 160 px here, worked out from 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. All math runs in your browser, so nothing is rounded away on a server, and for everyday use the displayed precision is more than enough.