Em to Rem Converter

Convert em units to rem units (and back) using parent and root font sizes.

Em to Rem Converter

Result 1.0000 rem

Formula: rem = em × (parent px ÷ root px)

Reverse: Rem to Em

Result 1.0000 em

Formula: em = rem × (root px ÷ parent px)

Reference Table

Common conversions at 16px parent / 16px root (1em = 1rem at these defaults).

Em Rem (16px/16px) Pixels
Copied!

Summary

Convert em units to rem units (and back) using parent and root font sizes.

How it works

  1. Enter the em value you want to convert.
  2. Set the parent element font size in pixels (default 16px).
  3. Set the root (html) element font size in pixels (default 16px).
  4. The converter calculates: rem = em × (parent_px / root_px).
  5. Use the reverse section to convert rem back to em.

Use cases

  • Convert a component's em-based spacing to rem for a design system with a non-default root font size.
  • Check whether an em value from a third-party stylesheet is equivalent to its rem counterpart.
  • Migrate legacy CSS that uses em throughout to a rem-first architecture.
  • Verify that nested em values behave as expected relative to the document root.

Frequently Asked Questions

Last updated: 2026-07-23 · Reviewed by Nham Vu