Type Scale Generator
Enter a base size, a ratio, and the number of steps to generate a modular font-size scale from headings to body text.
How to Use
Enter the Base Size
Input the base font size used for body text (e.g. 16px).
Pick a Ratio and Steps
Choose a ratio such as 1.25 (Major Third) or 1.618 (Golden Ratio) and set the number of steps up and down.
Check the Preview
Each step is shown instantly as px/rem with a live preview.
Copy the CSS
Copy the generated custom-property CSS and use it directly in your project.
What is a Type Scale
A type scale (modular scale) is a set of font sizes created by repeatedly multiplying a base size by a fixed ratio. Like a musical scale, it produces harmonious sizes and a clean visual hierarchy from headings to body text. This tool runs every calculation in your browser and never sends your input to a server.
Features
- Real-time GenerationSizes and preview update instantly as you type.
- Ratio Presets + CustomChoose musical and golden-ratio presets, or enter any custom ratio.
- px / rem TogetherView and copy both px and rem (root-based) values at once.
- Copy-ready CSSGenerate custom-property CSS and copy it with one click.
Use Cases
- Typography for a design system
- Deciding heading sizes (h1–h6)
- Tuning font sizes for sites and landing pages
- Defining text styles in Figma/XD
- rem-based responsive design
FAQ
Which ratio should I choose?
Should I use px or rem?
What do “steps up” and “steps down” mean?
When should I use the golden ratio (1.618)?
Is my input sent to a server?
Feedback
Missing a feature, or getting a result that looks wrong? Let us know — we improve our tools based on your feedback.