Ty
Runs in your browserNothing is uploadedDesign & Color

Type Scale Generator

Build a modular type scale from a base size and a ratio such as the major third or golden ratio, in px, rem and CSS variables.

Loading tool…
Short answer

Type Scale Generator builds a modular font size scale from a base size and a ratio, from the minor second to the golden ratio. It lists nine steps, two below the base and six above, in pixels and rem, or as CSS variables.

What is a modular type scale?

Modular scale

A set of font sizes where each is the one before multiplied by the same ratio. With a 16px base and a 1.25 ratio, the next sizes are 20px, 25px and 31.25px.

Ratios

Small ratios such as 1.125 suit dense interfaces. Larger ones such as 1.5 or the golden ratio (1.618) give dramatic headings for editorial pages.

Why use Type Scale Generator?

  • Consistent hierarchy. Headings, body and captions all relate to each other instead of being picked one by one.
  • Two outputs. Show a table to read, or CSS variables (--step-n2 to --step-6) to paste.
  • rem values included. Each size is converted with your root font size.

How to use Type Scale Generator, step by step

Type Scale Generator in PrintxPDF with a file loaded, options on the right and the run button below
Type Scale Generator with a file loaded: the steps below follow this screen.
  1. Set the base size in Type Scale Generator. Usually your body text size, such as 16px.
  2. Pick a ratio. From minor second (1.067) to golden ratio (1.618).
  3. Copy the scale. Copy the table as CSV, or switch to CSS variables and copy those.

Frequently asked questions

Which ratio should I choose?

For apps and dashboards, 1.125 to 1.2. For blogs and marketing pages, 1.25 to 1.333. Larger ratios make big headings very big on phones.

Why are the sizes not whole numbers?

A scale multiplies exactly. Round them if you prefer; the rem values are kept to four decimals.

Can I make the steps fluid?

Yes. Take two sizes from the scale and use the CSS Clamp Generator to grow between them.

Looking for the long version? The guides cover each of these jobs in depth.