PX to REM converter

Convert pixels to rem and rem to pixels for any root font size.

Direction
12px
0.75rem
14px
0.875rem
16px
1rem
18px
1.125rem
20px
1.25rem
24px
1.5rem
32px
2rem
48px
3rem

Last updated: October 2026 · Report a calculation error

How to convert px to rem

rem is a relative unit: 1 rem equals the font size of the html element, 16 px by default. Conversion: rem = px ÷ 16. Example: 24 px = 1.5 rem and 14 px = 0.875 rem. If your site sets a different base size, enter it in the calculator.

pxrem (16 px base)pt
12 px0.75 rem9 pt
14 px0.875 rem10.5 pt
16 px1 rem12 pt
18 px1.125 rem13.5 pt
24 px1.5 rem18 pt
32 px2 rem24 pt

Why rem instead of px

  • Accessibility — when users increase the browser’s default font size, rem sizes grow with it, px sizes don’t.
  • Consistency — changing the base size scales all typography and spacing at once.
  • em is relative to the parent’s font size, so nested elements can grow unexpectedly; rem is always relative to html.

Frequently asked questions

How many pixels is 1 rem?

16 px by default — unless the site’s stylesheet sets a different size on the html element.

Should I set html { font-size: 62.5% }?

It’s an old trick that makes 1 rem = 10 px. It works but means resetting text sizes everywhere. It’s simpler to keep 16 px and convert with this tool.

See alsoWhole category

  1. IT-01Base64 encoder and decoderEncode text to Base64 or decode a Base64 string back to text.
  2. IT-02JSON formatter and validatorBeautify or minify JSON, check that it is valid and see exactly where a syntax error is.
  3. IT-03HEX / RGB / HSL color converterConvert colors between HEX, RGB and HSL with a live preview.
  4. IT-04SHA-256 hash generatorGenerate SHA-256, SHA-1 and SHA-512 hashes of any text.