MockFoxAdvertise

REM to PX Converter

Updated Free mock REST & WebSocket APIs

Type a rem value to see it in pixels — plus em, pt and percent. Change the root font size if your project doesn't use the 16px default.

24px = 1.5rem = 18pt (at 16px root)

Common values at 16px
pxremptTailwind
1px0.0625rem0.75pt—
2px0.125rem1.5pt—
4px0.25rem3ptp-1
6px0.375rem4.5pt—
8px0.5rem6ptp-2
10px0.625rem7.5pt—
12px0.75rem9ptp-3
13px0.8125rem9.75pt—
14px0.875rem10.5pt—
15px0.9375rem11.25pt—
16px1rem12ptp-4
18px1.125rem13.5pt—
20px1.25rem15ptp-5
22px1.375rem16.5pt—
24px1.5rem18ptp-6
28px1.75rem21ptp-7
32px2rem24ptp-8
36px2.25rem27ptp-9
40px2.5rem30ptp-10
44px2.75rem33ptp-11
48px3rem36ptp-12
56px3.5rem42ptp-14
64px4rem48ptp-16
72px4.5rem54ptp-18
80px5rem60ptp-20
96px6rem72ptp-24
128px8rem96ptp-32
Convert a CSS snippet (px → rem, keeps 0 and 1px borders)

🔒 Calculated instantly in your browser.

How to convert rem to px

  1. Set the root font size (16px is the browser default).
  2. Type the rem value; px, em, pt and % update as you type.
  3. Or type in the px box to go the other way.

The formula

px = rem × root font size. At 16px: 0.5rem = 8px, 0.875rem = 14px, 1.25rem = 20px, 2rem = 32px.

rempx (16px root)px (10px root)px (18px root)
0.25rem4px2.5px4.5px
0.5rem8px5px9px
0.75rem12px7.5px13.5px
0.875rem14px8.75px15.75px
1rem16px10px18px
1.25rem20px12.5px22.5px
1.5rem24px15px27px
2rem32px20px36px
3rem48px30px54px
4rem64px40px72px

Why the answer depends on the root size

rem means “root em”: a multiple of the html element's font size. Browsers default it to 16px, but users can change their default font size and sites can set html { font-size } — so 1rem is not always 16px. That's the point: layouts in rem scale with the reader's preference.

Related tools

Embed this tool on your site

Browse all embeddable tools →

Free for blogs, HR, payroll and contractor sites: copy one snippet — the widget sizes itself and matches your colors.

Get the embed code

Frequently asked questions

What is 1.5rem in px?

24px with the default 16px root font size (1.5 × 16).

Is rem the same as em?

Only at the top level. rem is always relative to the root font size; em is relative to the parent element's font size, so it changes inside elements with their own font-size.

What is the default font size in browsers?

16px in Chrome, Firefox, Safari and Edge, unless the user has changed it in their settings.

Your business here? Sponsor this tool from $16/week. See placements