Skip to converter

Convert rem to pixels

One rem (rem) equals 16 pixels (px), so multiply rem by 16 to get pixels.

How it's calculated

  1. 1 rem × 16 = 16 px

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 rem to pixels?

pixels = rem × 16

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

Rem to pixel conversion table

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

Reverse: 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

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.

RemPixels
0.0625 rem1 px
0.125 rem2 px
0.1875 rem3 px
0.25 rem4 px
0.3125 rem5 px
0.375 rem6 px
0.4375 rem7 px
0.5 rem8 px
0.5625 rem9 px
0.625 rem10 px
0.6875 rem11 px
0.75 rem12 px
0.8125 rem13 px
0.875 rem14 px
0.9375 rem15 px
1 rem16 px
1.25 rem20 px
1.5 rem24 px
1.75 rem28 px
2 rem32 px
2.25 rem36 px
2.5 rem40 px
2.5625 rem41 px
2.75 rem44 px
3 rem48 px
3.125 rem50 px
3.5 rem56 px
4 rem64 px
5 rem80 px
6 rem96 px
8 rem128 px
10 rem160 px
12 rem192 px
18 rem288 px
20 rem320 px
24 rem384 px
42 rem672 px
50 rem800 px

Pixels back to rem

The same conversion in reverse, for when you have the answer and need the question.

PixelsRem
1 px0.0625 rem
2 px0.125 rem
4 px0.25 rem
8 px0.5 rem
10 px0.625 rem
12 px0.75 rem
14 px0.875 rem
16 px1 rem
18 px1.125 rem
20 px1.25 rem
24 px1.5 rem
32 px2 rem
40 px2.5 rem
48 px3 rem
64 px4 rem

Where the rem to pixel factor comes from

  1. 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.
  2. 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.
  3. 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.
  4. 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.

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 (static JSON with every factor)

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