the IT Hustle
ToolsPricingBlogAbout

Type Scale Calculator

Set a base font size and scale ratio to generate a complete typographic hierarchy. See visual previews at every step, compare with Material Design, Tailwind, and Bootstrap scales, and export as CSS variables.

Type Scale Calculator

Generate harmonious font size scales. Set a base size and ratio, see the full scale with visual preview, and export as CSS variables or Tailwind config.

Base Font Size: 16px
Scale Ratio: 1.25 (Major Third)
Scale Steps: 8
Presets
Type Scale
xs10px0.64rem
The quick brown fox
sm13px0.8rem
The quick brown fox
base16px1rem
The quick brown fox
md20px1.25rem
The quick brown fox
lg25px1.563rem
The quick brown fox
xl31px1.953rem
The quick brown fox
2xl39px2.441rem
The quick brown fox
3xl49px3.052rem
The quick brown fox
Visual Hierarchy Preview

Main Headline

Subheading goes here

Section Title

This is body text at the base size. It should be comfortable to read at normal viewing distance. Good typography creates visual hierarchy and guides the reader.

This is small text, useful for captions, labels, and metadata.

Extra small text for fine print and legal disclaimers.

:root {
  --font-xs: 0.64rem; /* 10px */
  --font-sm: 0.8rem; /* 13px */
  --font-base: 1rem; /* 16px */
  --font-md: 1.25rem; /* 20px */
  --font-lg: 1.563rem; /* 25px */
  --font-xl: 1.953rem; /* 31px */
  --font-2xl: 2.441rem; /* 39px */
  --font-3xl: 3.052rem; /* 49px */
}

How to Generate Type Scales

Create typographic hierarchies.

  1. 1
    Set baseEnter base font size (default 16px).
  2. 2
    Choose ratioPick 1.125 to 1.618 or use presets.
  3. 3
    ExportCopy as CSS variables or Tailwind config.

Frequently Asked Questions

1.25 (major third) for web. 1.2 for compact, 1.333 for editorial.

Sizes generated by multiplying base by a ratio. Creates visual harmony.

Related Tools

CSS Unit ConverterSpacing Calculator