Skip to converter

Convert pixels to rem

One pixel (px) equals 0.0625 rem (rem), so divide pixels by 16 to get rem.

How it's calculated

  1. 1 px ÷ 16 = 0.0625 rem

Pairs you use or save show up here. They stay on this device.
Convert a list

Paste a column of numbers, one per line (tabs and semicolons also separate values). Each line keeps its place, so the results paste straight back next to your data.

Up to 1,000 values. Commas inside a number (2,54 or 1,000) are read as part of it.

How do you convert pixels to rem?

rem = pixels ÷ 16

Last reviewed . Source: W3C, CSS Values and Units Module (absolute lengths). How we convert

Pixel to rem conversion table

Pixels to rem

PixelsRem
1 px0.0625 rem
2 px0.125 rem
3 px0.1875 rem
5 px0.3125 rem
10 px0.625 rem
20 px1.25 rem
50 px3.125 rem
100 px6.25 rem
500 px31.25 rem
1000 px62.5 rem

Reverse: rem to pixels

RemPixels
1 rem16 px
2 rem32 px
3 rem48 px
5 rem80 px
10 rem160 px
20 rem320 px
50 rem800 px
100 rem1600 px
500 rem8000 px
1000 rem16000 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

1 pixel is equal to how many rem?

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

16 is the number to divide by: 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?

1 rem equals 16 pixels, 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 pixel to rem converter accurate?

10 px = 0.625 rem 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.

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

API (static JSON with every factor)

https://unitglide.net/api/v1/factors