Free Type Scale Generator - Perfect Typography Scale

Create mathematically perfect typography scales using modular ratios. Generate CSS custom properties, Tailwind config, or Figma tokens for consistent heading/body text sizing across your design system.

Scale preview
Major Third ratio at 1.25 with distinct heading, body, and mono roles.
1120px
Editorial preview

Strong typography makes content easier to trust and easier to read.

A robust scale is more than ratios. It gives headings presence, keeps paragraphs comfortable, and gives code or metadata a clear supporting voice.

The best typography systems feel invisible when they work well. Hierarchy is clear, paragraphs are calm, and supporting text never feels like an afterthought.

The goal is not just bigger headings. It is a rhythm readers can move through without friction.

Pairing a sharper heading family with a more relaxed body face can dramatically improve tone without sacrificing consistency.

Scale steps
Each step inherits the role-appropriate font, weight, line height, and tracking.
display
49px
Launch with confidence
h1
39px
Build a stronger hierarchy
h2
31px
Readable, deliberate, scalable
h3
25px
Typography tuned to your project
h4
20px
Flexible heading step
body-lg
18px
Lead paragraph for onboarding and hero support text.
body
16px
Reliable body text for articles, settings, help text, and product descriptions.
small
13px
Meta information, labels, and helper copy.
code
14px
npm run build
Heading role
google
Inter
Clean, highly legible UI sans with a modern feel.
UIDashboardDocs
Body role
google
Source Serif 4
Serif optimized for rich reading experiences.
ReadingDocsEditorial
Mono role
google
JetBrains Mono
Developer-friendly mono with clear punctuation.
CodeDocsDashboard
Suggested pairings from current heading font

Export Code

Includes font roles, stacks, scale steps, and hosted import guidance.

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Source+Serif+4:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@300;400;500;600;700;800;900&display=swap');

/* Type Scale
 * Major Third ratio (1.25)
 * Heading: Inter
 * Body: Source Serif 4
 * Mono: JetBrains Mono
 */
:root {
  --font-heading: Inter, 'system-ui', 'sans-serif';
  --font-body: 'Source Serif 4', Georgia, serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', monospace;
  --font-weight-heading: 700;
  --font-weight-body: 400;
  --font-weight-mono: 500;
  --line-height-heading: 1.15;
  --line-height-body: 1.6;
  --letter-spacing-heading: -0.02em;
  --letter-spacing-body: 0em;
  --font-size-display: 3.052rem; /* 49px */
  --font-size-h1: 2.441rem; /* 39px */
  --font-size-h2: 1.953rem; /* 31px */
  --font-size-h3: 1.563rem; /* 25px */
  --font-size-h4: 1.25rem; /* 20px */
  --font-size-body-lg: 1.118rem; /* 18px */
  --font-size-body: 1rem; /* 16px */
  --font-size-small: 0.8rem; /* 13px */
  --font-size-code: 0.894rem; /* 14px */
}

body {
  font-family: var(--font-body);
  font-weight: var(--font-weight-body);
  line-height: var(--line-height-body);
  letter-spacing: var(--letter-spacing-body);
}

h1, h2, h3, h4, h5, h6, .display {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-heading);
  line-height: var(--line-height-heading);
  letter-spacing: var(--letter-spacing-heading);
}

code, pre, kbd {
  font-family: var(--font-mono);
  font-weight: var(--font-weight-mono);
}

.display { font-size: var(--font-size-display); }
h1 { font-size: var(--font-size-h1); }
h2 { font-size: var(--font-size-h2); }
h3 { font-size: var(--font-size-h3); }
h4 { font-size: var(--font-size-h4); }
.text-body-lg { font-size: var(--font-size-body-lg); }
p { font-size: var(--font-size-body); }
small { font-size: var(--font-size-small); }
code { font-size: var(--font-size-code); }

More Free SEO & Site Structure Tools

Explore Type Scale Ratios

Compare modular scale ratios from subtle UI-friendly systems to bold display-first hierarchies.

Introduction

What is a Type Scale Generator?

A type scale generator helps you create a sequence of font sizes that work together with mathematical precision.

Instead of guessing which font size works for your h1, h5, h6, or caption text, the tool calculates a harmonious set of sizes based on a consistent ratio. This approach ensures consistency across your entire design system while maintaining visual hierarchy and rhythm.

Why Typographic Scales Matter

Understanding type scales transforms how text appears on different devices and screen sizes.

A well-structured typography system improves readability, creates clear visual hierarchy, and ensures accessibility. When your font sizes follow a predictable pattern users experience better harmony and proportion across every page. This consistency becomes an attribute of your brand identity, making your content visually appealing and professional.

Who Should Use a Type Scale Generator?

  • Designers building cohesive design systems
  • Developers implementing responsive type with CSS
  • Content strategists ensuring readability across layouts
  • Product teams maintaining consistency between app screens
  • Brand designers establishing typographic standards

How a Type Scale Generator Works

Basic Principles and Ratios

Basic Principles

The generator starts with your base font size (16px for web typography) and applies a scale ratio to calculate larger and smaller font sizes. Each step up or down follows this ratio mathematically, creating proportion between sizes. You select how many levels you need (heading, subheading, body text, caption, etc.), choose your preferred units (px, rem, em), and the tool generates the complete scale. Some generators include letter spacing adjustments and line-height recommendations to enhance readability.

Common Scale Ratios

  • Minor Third (1.2): Subtle spacing, perfect for text-heavy layouts.
  • Major Third (1.25): Slightly more distinct, used by Material Design for balanced hierarchy.
  • Perfect Fifth (1.5): Creates noticeable contrast, ideal for dramatic headlines.
  • Golden Ratio (1.618): Tim Brown's classic scale based on natural proportion, delivers elegant visual appeal.

Think of these like a musical scale—each ratio creates different "notes" in your typography, and the right choice depends on your specific design needs.

Responsive Scaling Techniques

Modern responsive type adapts smoothly across viewport sizes. Use CSS clamp() to set minimum and maximum font sizes with fluid scaling between breakpoints:

font-size: clamp(1rem, 2.5vw, 2rem);

This creates flexible typography that responds to browser width without hard breakpoint jumps, ensuring your type scale works on desktop and mobile devices seamlessly.

Key Features in Our Type Scale Generator

A step-by-step look at the tool's capabilities

Pair Heading and Body Fonts

Start with a curated heading and body combination, or mix your own fonts by role. A stronger type system starts with the right contrast between display, reading, and code voices.

Tune Scale and Readability

Adjust base size, modular ratio, line height, weight, and letter spacing separately for headings and body text so the scale feels intentional instead of purely mathematical.

Preview Across Real Contexts

Test your typography in article, landing page, dashboard, and docs layouts, then switch between mobile, tablet, and desktop widths before exporting.

Export Production-Ready Tokens

Generate CSS variables, Sass helpers, Tailwind theme config, and Next.js font-loading snippets so your chosen type system carries through to implementation.

Integration Examples

CSS Variables

:root {
  --font-size-base: 1rem;
  --font-size-h6: 1.2rem;
  --font-size-h5: 1.44rem;
  --font-size-h1: 2.488rem;
  --spacing-base: 1.5em;
}

h1 { font-size: var(--font-size-h1); }
body { font-size: var(--font-size-base); }

Sass Map

$type-scale: (
  'caption': 0.833rem,
  'body': 1rem,
  'h6': 1.2rem,
  'h1': 2.488rem
);

@each $name, $size in $type-scale {
  .text-#{$name} { font-size: $size; }
}

Accessibility Considerations

Your type scale should ensure legible minimum sizes—body text never below 16px for comfortable reading. Test contrast ratios and consider line length (45-75 characters optimal for paragraphs). A good generator helps designers and developers create sizes while maintaining accessibility standards across all font categories based on usage context.

Best Practices for Using a Type Scale Generator

Choosing the Right Base Font Size

Start with 16px for web projects. This matches browser defaults and ensures readability. Adjust based on your font-family characteristics; some typefaces look smaller or larger at identical sizes. Preview your actual content to verify the base size works for body text.

Selecting a Ratio

  • Subtle projects (documentation, long-form articles): Use 1.2 minor third
  • Balanced interfaces (most websites, apps): Try 1.25 major third
  • Expressive designs (marketing, portfolios): Consider 1.5 or 1.618 golden ratio

Changing the scale ratio dramatically affects hierarchy. Tools like our scale calculator let you compare ratios side-by-side with a preview before committing.

Consistency and Tokenization

Map your type scale to semantic design tokens: display, headline, body, caption. This terminology helps teams implement sizes consistently. Instead of "font-size-4," use "heading-large" as it communicates purpose, not just calculation.

Testing and Iteration

Test with real content across different devices. Headlines that work on desktop might need smaller font sizes on mobile. Enable customization for edge cases while keeping most sizes consistent. Check zoom behavior in the browser—your responsive type should remain readable at 200% zoom.

Pros and Cons of Using a Type Scale Generator

Pros

A type scale generator saves hours calculating proportional sizes manually.

It reduces design drift where different pages use inconsistent font sizes.

The tool makes responsive typography easier by providing a foundation for fluid scaling.

You get clean, exportable code that simplifies handoff between designers and developers. The mathematical approach ensures visual harmony across your entire design system.

Cons

Misconfigured settings can produce impractical sizes—a 72px h1 might work on desktop but overwhelm mobile layouts.

Over-reliance on generated scales can stifle custom typographic tuning where certain headlines need specific consideration.

You still need accessibility checks beyond what automated tools provide, especially for letter spacing and line-height with different font families.

Step-by-Step Guide: Creating Your Type Scale

Step 1 — Define Goals

Identify your brand voice (professional, playful, elegant), primary content types (long articles, short product descriptions), and accessibility targets (minimum sizes, contrast requirements).

Step 2 — Choose Base Size and Ratio

Input 16px as your starting point. Select a ratio—try 1.25 for balanced hierarchy. Use our typography tool to preview how this combination looks with your actual font-family.

Step 3 — Generate Scale and Refine

Review the calculated sizes. Adjust rounding if needed (1.777rem vs 1.78rem). Fine-tune letter spacing for larger headline sizes—tracking often needs reduction as font size increases. Set line-height proportionally (1.5 for body, 1.2 for headlines).

Step 4 — Export and Implement

Export CSS custom properties or design tokens. Add variables to your stylesheet and map them to HTML elements. Create utility classes for your typography system. Document the scale in your design system for team consistency.

Real-World Examples

Example 1: Content-Driven Blog

  • Problem: Long articles need comfortable reading with clear hierarchy between h1, h5, and paragraph text
  • Solution: Minor third (1.2) ratio with 18px base for slightly larger body text
  • Implementation: CSS variables with fluid scaling using clamp for responsive behavior
  • Result: Readers spend more time on page; reduced font-size complaints

Example 2: Product UI/Dashboard

  • Problem: Compact interface needs distinct sizes in limited space
  • Solution: Major third (1.25) ratio with careful spacing and letter spacing optimization
  • Implementation: Sass map integrated with component library
  • Result: Clear visual hierarchy without overwhelming small screens; improved app navigation

Use Our Type Scale Generator

Ready to create a harmonious typography system? Our generator is a tool to help you build proportional type scales in minutes. Choose your base font size, select a ratio, preview the results, and export production-ready CSS. Whether you're building a design system or need consistent sizes for a single project, our typography tool ensures your font sizes maintain visual appeal and readability. Try our type scale generator now and enhance your web typography.

Frequently Asked Questions

Everything you need to know about Type Scale Generators

What is the best base font size to start with?+

We recommend 16px for web projects since it matches browser defaults and provides comfortable readability for most typefaces. Tailor this based on your font-family; condensed fonts might need 17-18px while wide fonts work at 15-16px.

Which ratio should I choose for my project?+

Use minor third (1.2) for subtle, text-heavy layouts. Major third (1.25) works well for balanced designs and is used in Material Design. Perfect fifth (1.5) or golden ratio (1.618) create a dramatic hierarchy for marketing sites. Preview several ratios with your content to decide.

Can I make type scale responsive?+

Yes. Use CSS clamp()for smooth scaling between minimum and maximum sizes across viewport widths. Alternatively, define different scales at specific breakpoints using media queries. Modern approaches combine both base scales with fluid adjustments.

How do I convert px to rem for a type scale?+

Divide pixel size by root font size (typically 16px). Example: 24px ÷ 16 = 1.5rem. Using rem enables users to scale text via browser settings, improving accessibility.

Is a type scale generator necessary?+

Not required, but highly recommended. Manual calculation works but risks inconsistency and takes longer. A scale calculator helps you create harmonious sequences faster while ensuring mathematical proportion. The consistency attribute alone improves user experience significantly across different devices and screen sizes.