Skip to content
toolgrid

No tool found. Try another word.

Font Size Converter

Convert a font size between px, pt, em, rem, percent and vw in one go, with your own base font size and viewport width.

Runs in your browser. What you enter is kept for 30 days to improve Toolgrid, then deleted.

How to use the Font Size Converter

  1. 1 Enter a size and choose its unit.
  2. 2 Adjust the base font size and the viewport width if needed.
  3. 3 Click any result to copy it with its unit.

About the Font Size Converter

CSS and design tools use different units for type. Pixels (px) are the screen unit; points (pt) come from print, with 1pt = 1/72 inch and 1px = 1/96 inch, so 12pt equals 16px; em, rem and percent are relative to a font size; vw is a percentage of the viewport width.

The converter first turns your value into pixels and then into every other unit: pt = px × 0.75, em and rem = px ÷ base, percent = px ÷ base × 100 and vw = px ÷ viewport width × 100. Em and rem give the same number here because both use the base you enter.

Vw values depend on the screen: 2vw is 28.8px on a 1440px wide window but 7.5px on a 375px phone. Values are rounded to four decimals.

Frequently asked questions

How many pixels is 12pt?

16 pixels. CSS defines 1pt as 1/72 inch and 1px as 1/96 inch, so px = pt × 96 ÷ 72.

Why are em and rem the same here?

Both are calculated from the base font size you enter. In a real page em can differ, because it depends on the element’s parent.

What is 100% font size?

The same as the parent’s font size, so 100% equals 1em.

Should I use vw for font sizes?

Only together with a minimum, for example font-size: clamp(1rem, 2.5vw, 2rem), so text never gets unreadably small on phones.