PX to REM Converter

Convert pixels to rem (and rem to px) with a custom root font size and a quick reference table of common sizes.

How to use PX to REM Converter

  1. Choose px → rem or rem → px.
  2. Enter a value and the root font size (16px by default).
  3. Read the result and the reference table.

Supported features and limitations

Assumes the root (html) font size you enter. If your site sets html { font-size: 62.5% }, use 10px as the root size. em units depend on the parent element, so the em figure is only valid when the parent equals the root.

Privacy

Everything you type is processed locally in your browser and is not sent to our servers. No account is needed and there is no watermark.

Frequently asked questions

What is 24px in rem?

1.5rem with a 16px root.

Why use rem instead of px?

rem scales with the user’s browser font-size setting, which helps accessibility.

Related tools

More Developer & Webmaster Tools · All free tools