Code tool

Font Size Converter

Convert px, pt, em, rem, %, and vw with explicit base font size and viewport width. CSS uses exactly 96 px per inch, so 1 pt = 96/72 CSS px; % uses the base size and vw uses the supplied viewport width. This converter uses the same supplied base for em, rem and %.

In-browser processingNo account requiredPrivacy details ↗

Convert px, pt, em, rem, %, and vw with explicit base font size and viewport width. CSS uses exactly 96 px per inch, so 1 pt = 96/72 CSS px; % uses the base size and vw uses the supplied viewport width. This converter uses the same supplied base for em, rem and %.

A QUICK WALKTHROUGH

How to use this tool

  1. Value
  2. Base/root font size (px)
  3. Convert

Font Size Converter

Convert px, pt, em, rem, %, and vw with explicit base font size and viewport width. CSS uses exactly 96 px per inch, so 1 pt = 96/72 CSS px; % uses the base size and vw uses the supplied viewport width. This converter uses the same supplied base for em, rem and %.

GOOD TO KNOW

Common questions

Result

Convert px, pt, em, rem, %, and vw with explicit base font size and viewport width. CSS uses exactly 96 px per inch, so 1 pt = 96/72 CSS px; % uses the base size and vw uses the supplied viewport width. This converter uses the same supplied base for em, rem and %.