PX to REM Converter

Convert pixel values to REM units and REM back to pixels. Set your project's base font size (default 16px) and get instant conversions with a handy reference table.

px (root font size of your project)

px → rem

—

rem → px

—

Reference Table

How to Use the PX to REM Converter

  1. Set the base font size (default 16px — the browser default and most common project setting).
  2. Enter a pixel value and click "Convert" to get the REM equivalent.
  3. Or enter a REM value to convert back to pixels.
  4. Use the reference table for quick lookups of common sizes.

Features

Px to rem: practical uses

Use px to rem when you need a fast, clear, private result without creating an account. This page also supports related needs like px to rem online, px to rem validator, px to rem formatter so you can choose the right workflow.

When it helps

For the next step, try JSON Formatter & Validator, Regex Tester & Log Extractor, Base64 Encoder & Decoder, Hash Generator.

Frequently Asked Questions

Why use REM instead of pixels? +
REM (root em) units scale relative to the root element's font size. This makes layouts more accessible — users who increase their browser's font size will see your content scale proportionally, unlike fixed pixel values.
What base font size should I use? +
The browser default is 16px. Most projects keep this default, meaning 1rem = 16px. Some projects set the root to 62.5% (10px) to make the math easier (1rem = 10px, so 1.6rem = 16px). Match the base to your CSS :root declaration.
Is REM the same as EM? +
No. EM is relative to the current element's font size, which can compound in nested elements. REM always refers to the root element's font size, making it more predictable and consistent.