Convert rem to pixels

Rem (rem) to pixel (px). One rem equals 16 pixels.

1 rem =16px (pixels)

Formula

pixels = rem × 16

Rem to pixel conversion table

RemPixelsPixelsRem
1 rem16 px1 px0.0625 rem
2 rem32 px2 px0.125 rem
3 rem48 px3 px0.1875 rem
5 rem80 px5 px0.3125 rem
10 rem160 px10 px0.625 rem
20 rem320 px20 px1.25 rem
50 rem800 px50 px3.125 rem
100 rem1600 px100 px6.25 rem
500 rem8000 px500 px31.25 rem
1000 rem16000 px1000 px62.5 rem

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

How many pixels are in a rem?

One rem equals 16 pixels. The ratio is constant, so you can multiply any number of rem by 16 to get pixels.

What is the formula to convert rem to pixels?

Use 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?

Go the other way by using one pixel equals 0.0625 rem. 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?

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.

Related conversions

Embed this converter or use the API

Put this converter on your own site, or call the free JSON API. Full documentation is on the developers page.

Embed (iframe)

<iframe src="https://unitglide.net/embed/rem-to-px" width="360" height="200"
        style="border:1px solid #e2e6ec;border-radius:12px"
        title="Rem to Pixel converter"></iframe>
<p><a href="https://unitglide.net/convert/rem-to-px">Rem to Pixel Converter</a> by UnitGlide</p>

API

https://unitglide.net/api/convert?from=rem&to=px&value=1