Percent to REM Converter

Convert percentage font sizes to rem, with the caveat about what each unit is measured against.

%
px

Browsers default to 16px. Use 10 if your CSS sets html { font-size: 62.5% }.

Common conversions at 16 px

% rem

What It Does

This is the conversion you run when modernising a stylesheet: percentages out, rem in. The number itself is a divide by 100, but the swap is not automatically safe. A percentage inherits through every ancestor, so a value deep in the tree may currently be rendering at a size the raw number does not suggest; rem ignores all of that and renders against the root. The tool gives you the rem equivalent and tells you exactly which assumption it made, so you know which values need checking in context before you commit them.

When to Use It

  • You are converting a design handed over in percent (%) into a stylesheet that uses rem for accessibility.
  • You inherited a codebase that mixes units and you need the rem equivalent of an existing % value.
  • You want to check what a % value becomes when the user changes their browser's default font size.
  • You are writing a design-token scale and need the same step expressed in both units.

Worked Examples

150

150% becomes 1.5rem — identical at the top level, and now immune to nesting.

62.5

62.5% is 0.625rem. As a root-element rule it is the 62.5% trick; anywhere else it is just 10px.

200

200% is 2rem. If this rule sat inside another enlarged element, the rem version will render smaller than the original — that is the compounding you are removing.

Features

Instant two-way conversion
Configurable root/parent font size
Full conversion table for common root sizes
Fractional-pixel rounding warning
Copy the value or the whole table
Works offline in your browser
No uploads or tracking

How to Use

1. Enter the percent (%) value you want to convert. 2. Set the root (or parent) font size the value should be measured against — 16px is the browser default. 3. Read the rem result, or copy the whole conversion table for the sizes you use.

Common Mistakes

  • Assuming the conversion is fixed. 100% is 1rem only when the parent element's font size matches the root's — the same % value converts differently depending on that size.
  • Confusing em with rem. `em` is relative to the *parent* element's font size and therefore compounds when nested; `rem` is always relative to the root element and does not.
  • Setting a px font size on the root element. That overrides the user's browser font-size preference, which defeats the accessibility reason for using relative units at all.
  • Rounding too early. Keep the fraction (1.375rem, not 1.4rem) — the browser resolves sub-pixel values fine and the rounding error compounds across a scale.

Frequently Asked Questions

The conversion runs entirely in your browser. Nothing is uploaded and nothing is stored.

Explore related topics

#Converter #Web #CSS