PX to REM Converter

Convert pixel values to rem for CSS typography and layout work.

Result

1 rem

Formula: rem = px / base font size.

All conversion happens locally in your browser. The value you enter is not sent to a server, logged, stored, or transmitted.

How to use this tool

Enter the required values in the labeled fields. Results update in your browser and are announced for assistive technologies. Use realistic measurements and verify important outcomes before acting on them.

Formula or logic

rem = px / base font size. Default base font size is 16px.

Example calculation

Example: 24px with a 16px base equals 1.5rem.

Frequently asked questions

What base font size is used?

The default is 16px, but you can change it.

Does this need a browser viewport?

No. PX to REM only needs the root/base font size.

Related tools

Converters

Color Converter

Convert HEX colors to RGB, RGBA, HSL and HSLA formats locally.