Free tools, no sign-up — everything runs in your browser.
ToolHub 1000Free online tools

PX to REM Converter

Convert a pixel size to rem using your root font size.

Quick answer: enter your details below and click Convert to rem — your result appears instantly, right here in your browser. Nothing you enter is uploaded or stored.
P
Developer

Enter your details below.

How to use

  1. Enter the pixel value.
  2. Enter the root font size, usually 16.
  3. Press the button to see the rem value.

About this tool

Rem units scale with the font size set on the root element, so they keep layouts flexible when a user changes their default text size. This tool divides a pixel value by the root font size to give the rem equivalent. The usual root size is 16 pixels, but you can enter whatever your project uses. It converts a single value, not a whole stylesheet, and it does not account for any other scaling on the page.

Frequently asked questions

What is the usual root font size?

Most browsers default to 16 pixels, so many projects divide by 16. If your project sets a different root size, use that number instead.

Why use rem instead of pixels?

Rem sizes follow the root font size, so text and spacing can scale when a user changes their browser text size, which helps accessibility.

Related tools

All tools · Read the guide: PX to REM Converter