Typography Scale Generator
Build modular typography scales with Major Third, Perfect Fourth, and Golden Ratio ratios.
Loading tool...
What is Typography Scale Generator?
The Typography Scale Generator is a free browser tool that builds a modular type scale from a base font size and a ratio. It multiplies the base by the ratio for each step to produce a harmonious set of heading and text sizes, previews every level at its real pixel size, and exports the whole scale as CSS custom properties or a Tailwind fontSize config.
Key Benefits
- Mathematically harmonious font hierarchy with zero guesswork
- Eight classic ratio presets plus a fully custom ratio option
- Live preview of every size rendered at real pixel dimensions
- Copy any single size or export the entire scale at once
- CSS variables and Tailwind config outputs ready to paste
Common Use Cases
- β’Setting up the font hierarchy for a new website or design system
- β’Choosing between ratios like Major Third and Golden Ratio with a live preview
- β’Generating consistent h1-h6 sizes and CSS variables for a component library
- β’Converting a scale into Tailwind fontSize utilities for a utility-first project
How to Use the Typography Scale Generator
- Set your base size: Enter your body font size in pixels (16px is the browser default; 18-20px suits content-heavy sites).
- Pick a scale ratio: Choose a preset like Major Third (1.25) or Perfect Fourth (1.333), or switch to Custom and type any ratio greater than 1.
- Choose the number of steps: Use the slider to set how many levels above body text you need - 6 steps covers a classic h1-h6 hierarchy.
- Preview and copy: Check the live preview at real size, copy individual values per level, then export the whole scale as CSS variables or a Tailwind config and paste it into your project.
Key Features
- Eight classic ratio presets from Minor Second (1.067) to Golden Ratio (1.618), plus a custom ratio input
- Live text preview rendered at real pixel size for every level of the scale
- Per-level copy button that exports rem values with px comments
- Whole-scale export as CSS custom properties or a Tailwind fontSize config block
- Adjustable base size (8-64px) and 4-8 scale steps to match any design system
- Runs 100% in the browser - no uploads, no accounts, no data leaves your device