/everyday-utilitiespx-rem-converter
Everyday Utilities

PX to REM Converter: Convert Pixels and REM Units Online

Convert CSS pixels to rem units and back with a custom base font size. Perfect for responsive design and accessibility work.

Runs in your browser — your text is never uploaded or stored.

Quick answer

PX to REM Converter is a free online tool that convert CSS pixels to rem units and back with a custom base font size. Perfect for responsive design and accessibility work.

  • Cost: free, no signup or limits.
  • Privacy: runs 100% in your browser; text is never uploaded.
  • Works on: desktop and mobile browsers, offline once loaded.
  • Category: Everyday Utilities.
px
rem
Common: 12px = 0.75rem · 16px = 1rem · 24px = 1.5rem · 32px = 2rem

Common conversions

How to Use

  1. 1.Set the root font size (default 16px).
  2. 2.Type any pixel value to see the rem equivalent — or type rem to see pixels.
  3. 3.Copy the converted value straight into your stylesheet.
Advertisement

FAQ

What is the default base font size?

Browsers default to 16px, which is the value used here unless you override it.

When should I use rem over px?

rem scales with the user's browser font-size preference, which is better for accessibility and responsive design.

Does it support decimals?

Yes — enter any decimal value. Results are shown to four decimal places.

Related tools

Related guides

More text utilities