Skip to content
Local

Design

PX to REM Converter

Convert pixels to rem or em and back, with a table of common sizes.

Runs in your browser. Nothing leaves this device.

How to use PX to REM Converter

  1. 1Enter a pixel or rem value.
  2. 2Change the base size if your root font size is not 16px.
  3. 3Copy the value or the table as CSS.

Questions

What is the base size?

The root font size. Browsers use 16px by default, so 1rem is 16px unless your CSS changes it.

When is em different from rem?

em uses the parent element's font size instead of the root. Set the base to that size to convert em.

Is anything sent anywhere?

No. It all runs on this page.

Is it free?

Yes. No account, no watermark and no daily limit.

Esc