Free type scale generator for web designers

Create a balanced typography scale.

Choose a base font size and ratio, preview headings and body sizes, then copy clean CSS variables for your website or design system.

Try a starting point

Preview sizes are limited to 12–76px to keep this panel readable. The numeric results and copied CSS contain the full scale; very small values may be unsuitable for reading text.

Hierarchy

Make headings feel related

A type scale keeps display text, headings, body copy and small labels in one visual family instead of seven unrelated font sizes.

CSS ready

Copy usable variables

Generate rem-based CSS variables you can paste into a stylesheet, design system or prototype.

Design rhythm

Build with proportion

Use gentle ratios for calm interfaces or larger ratios for editorial websites, landing pages and strong typographic contrast.

What is a type scale?

A type scale is a structured set of font sizes based on a mathematical ratio. It helps designers choose sizes for headings, body text, captions and UI labels with intention.

Instead of choosing each size by eye, you define a base size and a ratio. The scale then grows upward for headings and downward for smaller text. This creates a typography system that feels coherent across a page.

Why designers use type scales

  • To create clear visual hierarchy.
  • To keep websites and apps consistent.
  • To make CSS easier to maintain.
  • To avoid random font-size decisions.

Choose a scale by testing a real page

A ratio is a starting point, not a verdict about good typography. Compare the same title, paragraph and caption before deciding. This generator uses size = base × ratiostep. With a 16px base and 1.25 ratio, step 1 is 20px, step 2 is 25px and step 5 is 48.83px.

Three starting points

Interface: 16px × 1.2. Try 23.04px for a card title and 27.65px for a section title. Keep buttons close to the body size; use weight and spacing to distinguish them. Test long labels and an error message.

Portfolio: 16px × 1.25. Try 25px for project headings and 48.83px for a page title. Place the title beside a portrait image and a landscape image. If the heading competes with the work, choose a lower step rather than shrinking all text.

Editorial: 18px × 1.5. The first three steps are 27px, 40.5px and 60.75px. These can serve an introduction, a section heading and an opening title. Step 5 is already 136.69px: you do not need to use every generated value.

Read the output correctly

Here, H4, H3, H2 and H1 use steps 2, 3, 4 and 5. Display uses step 6; Body is step 0 and Small is step −1. These are suggested visual roles, not a required HTML heading structure. Choose heading levels according to the document outline, then style them with the appropriate variable.

The rem output assumes a 16px browser root: 18px becomes 1.125rem. Keep html { font-size: 100%; } when applying these values. Setting the root to 18px as well would enlarge everything again. Visitors can change their default font size; test that setting too.

Test the extremes before copying

  • Read a full paragraph, not only the headline. Start around 16–18px and adjust for the font and reading conditions.
  • Try a narrow viewport, long words and 200% browser zoom. Text should wrap without hiding controls or requiring horizontal scrolling.
  • Large ratios can make Small too small and Display too large. Skip unsuitable steps. A mathematical relationship does not guarantee readability.
  • Begin around 1.5 line-height for body copy and 1.15 for headings, then check the actual font. Limit long reading columns to roughly 60–70 characters.

Use a small, maintainable system

Copy the variables, then apply only the roles your layout needs: body { font-size: var(--font-base); line-height: 1.5; } and h1 { font-size: var(--font-h1); line-height: 1.15; }. Bound large headings on small screens; the CSS guide includes an example using clamp(). Record deliberate exceptions so the next page follows the same decisions.

Follow the workflow · Compare the worked examples · Apply the CSS

Frequently asked questions

What is the best type scale ratio?

For most websites, 1.2 or 1.25 is a safe start. Larger ratios such as 1.333 or 1.5 create more dramatic heading contrast.

What base font size should I use?

16px is a reliable default for body text. Editorial layouts can often use 18px for a calmer, more spacious reading rhythm.

Can I use the generated scale in CSS?

Yes. Copy the CSS variables and use them for headings, body text, labels and design tokens.

Copied CSS