Percent to PX Converter

Work out what a percentage font size actually resolves to in pixels, for any parent font size.

%
px

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

Common conversions at 16 px

% px

What It Does

A percentage in a stylesheet tells you nothing on its own — 150% is 24px inside a normal paragraph and 18px inside a 12px sidebar. This tool resolves the percentage for whatever parent size you enter, so you can check what a rule will actually render. It is most useful when auditing inherited CSS, where percentages have often been nested inside each other and the compounding is no longer obvious from reading the file.

When to Use It

  • You are converting a design handed over in percent (%) into a stylesheet that uses pixels (px) for accessibility.
  • You inherited a codebase that mixes units and you need the px 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% of a 16px parent is 24px.

62.5

62.5% of 16px is 10px — the trick used on the root element to make 1rem equal 10px.

87.5

87.5% is 14px, the most common "slightly smaller than body" size.

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 pixels (px) result, or copy the whole conversion table for the sizes you use.

Common Mistakes

  • Assuming the conversion is fixed. 100% equals the parent element's font size, not a fixed number of pixels — 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