Free website audit in 60 seconds
Skip to content
Webmaster.ae
  • Loading…
Webmaster.ae
Free website auditSpeed, SEO, security and email, with a PDF report

Follow us

Runs in your browserFree · no sign-up

PX to REM converter

Convert pixel values to rem — or rem to pixels — for any root font size, with a reference table of common sizes from 8px to 64px.

Live resultUpdates as you type

Press “Convert” to see the result here.

How do I use the PX to REM converter?

PX to REM converter: frequently asked questions

What is a rem?

A CSS unit relative to the root (html) font size. With the default 16px, 1rem = 16px.

Why use rem instead of px?

Rem sizes scale when users change their browser font size, which is better for accessibility.

How do I convert px to rem?

Divide by the root font size: 24px ÷ 16 = 1.5rem.

What is the difference between rem and em?

Rem is relative to the root element; em is relative to the current element’s font size.

Should I change the root font size?

Avoid setting it in px; it overrides user preferences. Keep the browser default.

Is anything uploaded?

No. It runs in your browser.

Can I use the output in Figma or CSS?

Yes. Values are standard HEX, RGB, HSL and CSS that work in Figma, CSS and most design tools.

Is the px to rem converter free?

Yes. It is free with no sign-up and no usage limits for normal use.

Is my data sent to your servers?

No. This tool runs entirely in your browser, so what you type never leaves your device.

Does it work on my phone?

Yes. The tool works in any modern browser on iPhone, Android, tablet or computer.