Type scale. Find your rhythm.
Set a base size and preview a complete hierarchy.

Everything runs in your browser.Nothing you set is saved or sent to us.
Step 1: Settings
Choose your base size, ratio and options.
Body text size (12 – 24px). 16 is the browser default.
Headings shrink on small screens and grow on large ones, with no breakpoints.
Step 2: Scale preview
A complete type hierarchy using your settings.
H1Page title
Set the tone.
61.04 px3.815 rem · line 1.15
H2Sections
Set the tone.
48.83 px3.052 rem · line 1.15
H3Sub-sections
Set the tone.
39.06 px2.441 rem · line 1.25
H4Card and section titles
Set the tone.
31.25 px1.953 rem · line 1.25
H5Minor heading
Set the tone.
25 px1.563 rem · line 1.35
H6Smallest heading
Set the tone.
20 px1.25 rem · line 1.5
BodyParagraphs
Set the tone.
16 px1 rem · line 1.5
SmallSecondary text
Set the tone.
12.8 px0.8 rem · line 1.5
CaptionFine print, labels
Set the tone.
10.24 px0.64 rem · line 1.5
See it in a page
A page title that sets the tone
The opening paragraph explains what the page is about. It is set in your body size, the one every other size is measured from.
A section heading
Sections break a long page into parts a reader can scan. The step between this heading and the text under it comes from your ratio.
A card title
Secondary text sits one step under the body size.
Captions and labels use the smallest size.
Step 3: Export
Copy your type scale as CSS, Tailwind or plain text.
/* Type scale: 16px body, ratio 1.25 */
:root {
--text-xs: 0.64rem;
--text-sm: 0.8rem;
--text-base: 1rem;
--text-h6: 1.25rem;
--text-h5: 1.563rem;
--text-h4: 1.953rem;
--text-h3: 2.441rem;
--text-h2: 3.052rem;
--text-h1: 3.815rem;
--leading-xs: 1.5;
--leading-sm: 1.5;
--leading-base: 1.5;
--leading-h6: 1.5;
--leading-h5: 1.35;
--leading-h4: 1.25;
--leading-h3: 1.25;
--leading-h2: 1.15;
--leading-h1: 1.15;
}
body { font-size: var(--text-base); line-height: var(--leading-base); }
small { font-size: var(--text-sm); }
h1 { font-size: var(--text-h1); line-height: var(--leading-h1); }
h2 { font-size: var(--text-h2); line-height: var(--leading-h2); }
h3 { font-size: var(--text-h3); line-height: var(--leading-h3); }
h4 { font-size: var(--text-h4); line-height: var(--leading-h4); }
h5 { font-size: var(--text-h5); line-height: var(--leading-h5); }
h6 { font-size: var(--text-h6); line-height: var(--leading-h6); }
Sizes are in rem, so text follows the size a reader has set in their browser.
How it works
- Set your baseChoose a base size and a ratio that fit your brand.
- Preview the hierarchySee a complete type scale, from H1 to caption.
- Copy your scaleExport clean CSS, Tailwind or a plain text list.
FAQs
What is a type scale?
What does the ratio change?
The ratio sets how far apart the sizes are. A small ratio keeps headings close to the body text; a large one makes them much bigger.
- Minor second (1.067).
- Barely there. For dense screens such as dashboards and tables.
- Major second (1.125).
- Gentle. Good for apps and long documents.
- Minor third (1.2).
- A clear but calm hierarchy. A safe choice for most websites.
- Major third (1.25).
- Confident headings. Common on marketing pages and blogs.
- Perfect fourth (1.333).
- Strong contrast. Suits editorial pages with short headlines.
- Augmented fourth (1.414).
- Dramatic. Works when headings are a few words long.
- Perfect fifth (1.5).
- Very large headings. For landing pages with little text.
- Golden ratio (1.618).
- The largest steps. Use for posters and hero sections, with fluid sizes.
Can I export Tailwind values?
What are fluid sizes?
clamp() function so a heading grows smoothly with the width of the screen, between a smallest and a largest size, without breakpoints. The body size stays the same; only the steps between sizes change.How do I use a type scale well?
- Start from the body size. If paragraphs are comfortable to read, the rest of the scale has something solid to stand on.
- Use fewer sizes than the scale offers. Most pages need a title, one or two headings, body and small text.
- Tighten line height as text gets larger. Paragraphs want about 1.5; a large headline wants close to 1.1.
- Check the largest heading on a phone. If it breaks into four lines, lower the ratio or use fluid sizes.
- Keep sizes in rem, as the copied code does, so text follows the size a reader has set in their browser.
