Font Blend

Tools

Font Size Converter

A font size converter translates between the five CSS units. Pixels are absolute. rem is relative to the root font size.em is relative to the parent element. Points are for print. Percent is relative to the parent like em, but written differently. The converter takes a base size and returns every equivalent value.

Loading the font size converter...

CSS Font Size Units Explained

CSS gives you several ways to write a font size. The unit you pick changes how the value behaves when the parent, the root, or the viewport changes. The MDN reference on font-size covers the full list. Below is a short, practical reference.

UnitRelative toWhen to use it
pxNothing (absolute)Pixel-perfect mockups, thin lines, fixed UI elements. Avoid for body text.
remRoot font size (html)Body text, headings, spacing. Inherits a single scale from one source.
emParent font sizeComponents that scale with their container. Watch for compounding when nested.
ptPrint point (1/72 inch)Print stylesheets. 1pt equals 1.333px at the standard 96dpi screen ratio.
%Parent font sizeSame as em, written as a percentage. 100% equals the parent font size.
vw, vhViewport width or heightFluid typography. Always wrap in clamp() to set a floor and ceiling.
chWidth of the 0 characterMeasure (line length) and code blocks. 60 to 75 ch is a comfortable reading width.

The root font size lives on the html element. The browser default is 16px. Change it once, on :root or html, and every rem in your stylesheet recalculates. Setting html { font-size: 100%; } keeps the user's browser font preference, which is a low-effort accessibility win.

Related Tools

Convert a single size, then put it in context with a modular scale, a fluid scale, or a real layout.