Skip to content
ZeroServer.tools

Font Size Calculator

Convert between px, rem, em, pt, vw, vh, and % — with configurable root and context sizes.

px
px
px
px

Conversions (16 px)

UnitValueCopy
px16px
rem1rem
em1em
pt12pt
vw1.11111vw
vh1.77778vh
%100%

Common Tailwind sizes

CSS font size units explained

px is an absolute unit — always the same regardless of parent or settings. rem is relative to the root (html) font size (default 16 px). em is relative to the current element's inherited font size — so 1.5em inside a 20px context = 30px. pt is a print unit: 1pt = 96/72 px ≈ 1.333px. vw / vh are percentages of the viewport width/height.

For responsive typography that blends viewport and fixed sizes, try the CSS Clamp Calculator. For px↔rem with more context see px to rem Converter and CSS Unit Converter.

Private & free — this tool runs entirely in your browser.

Recommended: Kinsta Fast managed hosting — up to $500 + 10% recurring.affiliate

Related Design & CSS tools