Black Friday −30%: every font $4.89 · or all 59 for $39.99 Get the bundle
Free tool · Type & CSS

Type Scale Calculator

Build a modular or fluid type scale, preview it with any font at any screen width, and export CSS variables, SCSS, Tailwind v4 or v3, or design tokens, with matching line heights.

Base size16px
Steps above base6
Steps below base2
:root { --text-xs: 0.64rem; --leading-xs: 1.6; --text-sm: 0.8rem; --leading-sm: 1.6; --text-base: 1rem; --leading-base: 1.55; --text-lg: 1.25rem; --leading-lg: 1.49; --text-xl: 1.5625rem; --leading-xl: 1.42; --text-2xl: 1.9531rem; --leading-2xl: 1.36; --text-3xl: 2.4414rem; --leading-3xl: 1.29; --text-4xl: 3.0518rem; --leading-4xl: 1.23; --text-5xl: 3.8147rem; --leading-5xl: 1.16; }
5xl
61.0px
Level complete!
4xl
48.8px
Level complete!
3xl
39.1px
Level complete!
2xl
31.3px
Level complete!
xl
25.0px
Level complete!
lg
20.0px
Level complete!
base
16.0px
Level complete!
sm
12.8px
Level complete!
xs
10.2px
Level complete!

How to use it

  1. Set your base text size (usually 16 px).
  2. Pick a ratio, or type your own: small ratios for interfaces, large for posters.
  3. Switch on Fluid to let the whole scale grow between a phone and a wide screen.
  4. Preview the scale with any font from the catalogue, at any screen width.
  5. Copy CSS variables, SCSS, Tailwind v4 or v3, or design tokens, with line heights.

Questions

What is a modular scale?

A set of sizes where each step is the previous one multiplied by a fixed ratio, such as 1.25.

Which ratio should I pick?

1.125–1.2 for dense interfaces, 1.333–1.618 for posters and dramatic titles.

Fonts that shine here

Try these in the tool above, or open them to type your own words.

Nuvaro Modern Geometric Sans font preview
New−30%
Nuvaro
Modern Geometric Sans
$4.89$6.99
Noctile Ultra-Wide Neo-Grotesk font preview
New−30%
Noctile
Ultra-Wide Neo-Grotesk
$4.89$6.99
Marmalow Cozy Rounded font preview
−30%
Marmalow
Cozy Rounded
$4.89$6.99

More free tools