PX to REM Converter
Enter a pixel value and get the equivalent REM value instantly. Set any base font size — default is 16px — and convert single values or a bulk list at once.
Last updated: May 21, 2026
Find this tool useful? Support the project to keep it free!
Buy me a coffeeWhat is PX to REM Converter?
REM (Root EM) is a CSS unit relative to the root element's font size — typically the `<html>` element. Most browsers default the root font size to 16px, making 1rem = 16px. Using REM instead of px allows your layout to scale with user font size preferences and makes responsive design easier.
The formula is simple: **rem = px ÷ base font size**. So 24px at a 16px base = 1.5rem. If your project sets a different root font size (e.g. `html { font-size: 10px }` to make 1rem = 10px), you can change the base here to match.
How to Use PX to REM Converter
Enter one or more px values in the input box (comma or newline separated)
Set the base font size if different from 16px
Copy individual results or the full table
Use the reference table below for common conversions at a glance
Common Use Cases
- Front-end developers converting design specs (in px) to REM for accessible layouts.
- Teams migrating a px-based stylesheet to REM for better scalability.
- Developers using a 10px base trick (html { font-size: 62.5% }) for easier REM math.
- Designers converting Figma measurements from px to REM before handing off to developers.
- Developers checking rem equivalents for type scale or spacing values.
- Students learning CSS units and how rem relates to pixel values.
Example Input and Output
Convert several common design sizes from px to REM at the default 16px base.
16
24
32
4816px → 1rem
24px → 1.5rem
32px → 2rem
48px → 3remPrivacy
All conversions are calculated in your browser. No data is sent to any server.
Tip: viewport and container units
REM works well alongside viewport units (vw, vh) for fluid typography. Use REM for base sizes and clamp() with vw for fluid scaling. This converter helps you establish your REM baseline.

