UtilityToolsLab

© 2026 UtilityToolsLab. Built and maintained by the UtilityToolsLab Team.

Free eBooks·About·Changelog·Privacy Policy·Terms of Service·Report a bug
HomeLayout & TypographyType Scale Generator

Related Tools

Typography Scale Generator

Build a modular type scale from Major Third, Perfect Fourth, Golden Ratio and more. Export CSS variables, Tailwind fontSize config or SCSS variables instantly.

You Might Also Like

All Layout & Typography

Case Converter

Convert text between UPPERCASE, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case, and kebab-case.

Lorem Ipsum

Placeholder text in 20 languages — English, Bengali, Hindi, Arabic, Spanish, French, Chinese and more. Paragraphs, sentences, words, lists, optional emoji.

English Lorem Ipsum

Generate free English Lorem Ipsum dummy text for web design, layouts, and mockups. Classic Latin filler text in paragraphs, sentences, words, or lists.

Bangla Lorem Ipsum

Generate free Bangla (Bengali) Lorem Ipsum dummy text for web layouts and mockups. Bengali script filler in paragraphs, sentences, words, or lists.

Modular type scales solve a recurring headache in design systems: choosing font sizes that feel harmonious rather than arbitrary. Instead of picking numbers by feel (13px, 15px, 18px, 24px), a modular scale multiplies a single base size by a fixed ratio at each step. The result is a set of sizes that share a geometric relationship, so small text, body copy, subheadings and display headings all belong to the same family rather than drifting apart.

The generator opens pre-loaded with a Major Third scale: ratio x1.250, 16 px base, five steps above and two below. This produces 10.24 px, 12.80 px, 16.00 px, 20.00 px, 25.00 px, 31.25 px and 39.06 px. That is the scale behind Tailwind's default font-size table and Material Design's body-through-headline stack. Adjusting the ratio chip, the base slider, or the step counts regenerates every row and every output block instantly.

How to Use the Scale Builder

  1. Click a ratio chip. Major Third is the safe default; Perfect Fourth gives larger jumps suited to editorial layouts; Golden Ratio (x1.618) is dramatic and best kept for landing pages where a single hero headline dominates.
  2. Drag the Base size slider to match your body copy size. Most interfaces use 16 px (the browser default); dense data UIs sometimes drop to 14 px; print-derived layouts often start at 18 px.
  3. Set Steps above to the number of heading levels you need. Five covers xs through 2xl in one pass. At ten steps the largest size will overflow most containers before it reaches the top of the list, so the slider caps there.
  4. Choose an Output unit: rem for browser-zoom accessibility (recommended), em for component-scoped scaling, px for design files or Figma tokens.
  5. Click a format tab (CSS variables, Tailwind fontSize config, SCSS variables, or a Markdown table), then press Copy to paste into your project.

The Formula Method Behind Each Step

Every size is base x ration where n is the step number relative to zero (the base). Step +1 multiplies once; step -1 divides once; step +3 multiplies three times. At Major Third (x1.250), step +5 above 16 px is 16 x 1.250&sup5; = 48.828 px and step -2 is 16 / 1.250² = 10.240 px. The rem values divide the px result by 16. If your root font size differs from 16 px, adjust the base slider before copying the output.

Accuracy and Limits Worth Knowing

The Custom chip accepts any decimal between 1.001 and 3.0. Values at or below 1.0 are rejected with the message “Ratio must be greater than 1.0”; the Apply button stays disabled until the value is valid. Values above 3.0 trigger a warning: “Ratio above 3.0 produces extreme size jumps”. At that multiplier, step +3 is already 27x the base, making the upper end of the scale unprintable on most screens. Each row in the scale table has its own copy button for patching a single token in an existing design system without regenerating the whole file.

Typography Scale Generator

Build a modular type scale and export CSS variables, Tailwind config or SCSS

Scale Ratio

Base Size & Output Unit

16px
8px16px32px

Output unit

Scale Steps

5
2
Ratio: ×1.250
Base: 16px = 1.0000rem
Steps: 8 total (2 below + 1 base + 5 above)
StepLabelpxPreview
  • +56xl3.052rem48.83pxThe quick brown fox
  • +45xl2.441rem39.06pxThe quick brown fox
  • +34xl1.953rem31.25pxThe quick brown fox
  • +23xl1.563rem25.00pxThe quick brown fox
  • +12xl1.25rem20.00pxThe quick brown fox
  • 0 (base)xl1rem16.00pxThe quick brown fox
  • -1lg0.8rem12.80pxThe quick brown fox
  • -2base0.64rem10.24pxThe quick brown fox
:root {
  --font-size-base: 0.64rem;
  --font-size-lg: 0.8rem;
  --font-size-xl: 1rem;
  --font-size-2xl: 1.25rem;
  --font-size-3xl: 1.563rem;
  --font-size-4xl: 1.953rem;
  --font-size-5xl: 2.441rem;
  --font-size-6xl: 3.052rem;
}

Base Step (step 0)

px
16.000px
rem
1.0000rem
rem
1rem