Percent to EM
Convert percentages to em values.
Convert Percent (%) to EM (em). Results update as you type.
%
Browser default is 16px
% to em conversion table (base 16px)
| Percent | EM |
|---|---|
| 25% | 0.25em |
| 50% | 0.5em |
| 62.5% | 0.625em |
| 75% | 0.75em |
| 87.5% | 0.875em |
| 100% | 1em |
| 112.5% | 1.125em |
| 125% | 1.25em |
| 150% | 1.5em |
| 175% | 1.75em |
| 200% | 2em |
| 250% | 2.5em |
| 300% | 3em |
Percent to EM Converter
Translate percentage font sizes into em values. Type 150 and you get 1.5em; paste a list of percentages from an old stylesheet into the bulk box to convert them all at once. The base font size field is available if you want to cross-check pixel sizes, but it does not change the percent-to-em ratio.
The conversion rule
For the font-size property, a percentage and an em unit reference the same thing: the inherited font size of the parent. That makes the conversion a simple division:
em = percent ÷ 100
| Percent | EM |
|---|---|
| 50% | 0.5em |
| 75% | 0.75em |
| 87.5% | 0.875em |
| 112.5% | 1.125em |
| 125% | 1.25em |
| 250% | 2.5em |
Worked example: rewriting a component
Suppose a card component uses font-size: 112.5% for its title and font-size: 87.5% for its caption. Converted, those become 1.125em and 0.875em. The rendered size is identical: inside a 16px parent the title is 18px and the caption 14px. The benefit is consistency – em is also the natural unit for the card's padding and gap, so the whole component now scales with one number.
Where the two units differ
The one-to-one relationship only holds for font sizes. If you convert padding: 5% to 0.05em, you change its meaning: percentage padding is measured against the width of the containing block, whereas em padding follows the font size. Only convert percentages that sit on font-size or line-height-like properties that reference font size.
Why switch at all?
Em values read more naturally next to modern spacing scales, work in calc() without surprises, and match what most design-token tools output. If you prefer sizes that do not compound through nesting, go one step further with Percent to REM, or check the actual pixel output with EM to PX.
Frequently Asked Questions
How do I convert percent to em?
Divide the percentage by 100. 125% becomes 1.25em, 87.5% becomes 0.875em, and 200% becomes 2em.
Does the base font size change the result?
No. For font sizes, both percent and em are relative to the parent's font size, so the ratio is always 100% = 1em regardless of the base. The base only matters if you also want to see the pixel value.
Are percent and em identical everywhere in CSS?
Only for font-size. For properties like width, padding, or margin, a percentage refers to the containing block's width, while em still refers to the element's font size.