No Signup Required

PX to REM Converter

Convert pixels to rem using your root font size — one value or a whole stylesheet.

  • Runs in your browser — nothing uploaded
  • Instant, no waiting in a queue
  • Free, no watermark, no daily limits

Enter a pixel value to get its rem equivalent, or type rem to get pixels; both boxes stay in sync. The default root font size is 16px — the browser default — and you can change it to match your project. A reference table lists common sizes, and the bulk converter rewrites every px value in pasted CSS to rem, optionally keeping 1px hairline borders in pixels.

How to Convert PX to REM

  1. 1

    Set the root size

    Leave the root font size at 16px or enter the value your site uses.

  2. 2

    Enter a value

    Type pixels to get rem, or rem to get pixels.

  3. 3

    Convert CSS (optional)

    Paste a stylesheet into the bulk box to convert every px value, then copy the result.

Why use ToolzBank PX to REM Converter?

  • Two-way px ⇄ rem conversion
  • Custom root font size
  • Quick reference table for common sizes
  • Bulk-convert px in a whole stylesheet
  • Option to keep 1px borders in pixels
  • Copy-ready rem values

Frequently asked questions

How do you convert px to rem?
Divide the pixel value by the root font size. With the default 16px root, 24px ÷ 16 = 1.5rem.
What is 1rem in pixels?
1rem equals the root (html) font size, which is 16px in all major browsers by default unless the user or your CSS changes it.
What is the difference between rem and em?
rem is relative to the root html font size, so it is the same everywhere on the page. em is relative to the font size of the current element, so it compounds when elements are nested.
Why use rem instead of px?
rem sizes scale when a visitor increases their browser’s default font size, which improves accessibility, and they make it easy to scale a whole design by changing one root value.
Is it free?
Yes. It is completely free, with no signup, no watermark and no usage limit.

More free developer tools