Skip to content
🔠

Google Font Pairing Generator

Pair a heading font with a body font, check the size and spacing on a real sample, and copy the CSS. No sign-in.

Runs in your browser

Updated

Preview

A pairing

The quick brown fox jumps

Typography is what language looks like when it is set properly. A heading font carries the tone of a page, while the body font is what people actually read for minutes at a time.

If the two fight each other the page feels busy even when nothing is technically wrong with it. The safest pairings either contrast strongly on shape, or come from the same family and differ only in weight.

ABCDEFGHIJKLM abcdefghijklm 0123456789 !?&%

Try a mood:

The sample uses a curated set of widely used Google Fonts. The preview needs the real webfont to be loaded, so it falls back to a system font if your browser is offline. In production, load the fonts from fonts.googleapis.com or self-host them.

Five controls, one preview

Two menus carry the same 25 curated Google Fonts, labelled with their category, and a third offers eleven moods. Heading size runs 16 to 72 (default 38), body size 12 to 24 (default 16), line height 1 to 2.2 in 0.05 steps (default 1.6), and the weight menu refills from the font in the heading box. Every change repaints the sample and rewrites the read-only CSS block.

A worked example

Neither menu marks an option, so both open on the first entry, Playfair Display, pairing that serif with itself. The weight box shows 900, the last weight that font lists, because the field starts empty and the code keeps the final value. Dividing 38 by 16 gives 2.375, printed in the notes as 2.4 to 1. Body becomes 'Playfair Display', system-ui, sans-serif, and headings take a Georgia, serif fallback with a line height fixed at 1.15.

Advice, moods and sharing

The notes run three checks: category contrast, a size ratio that warns under 1.6 and above 5, and a line height read against 1.4 and 1.9. Surprise me draws two random fonts. A mood picks a body font, then a different heading font from the tagged set, and sets size and line height together: 42 with 1.65 for luxury, 32 with 1.55 for tech, 34 with 1.7 for readable. Copy link writes h, b, hs, hw, bs and lh into the query string. Steps come from the type scale generator, legibility from the color contrast checker, and the finished sheet from the css minifier.

Where it stops

  • The preview fetches weights 400 to 700 however you set it, so 800 and the default 900 render as synthesised approximations.
  • A shared link restores h, b, hs, bs and lh but never hw, so the heading weight changes on arrival.
  • Names reach the request with their spaces intact, and an unknown one leaves a stack starting with a comma.
  • Typed values past min or max are not blocked, and nothing persists between visits.

Questions people ask

Why does Copy link seem to do nothing?

It calls the clipboard helper the Copy CSS button installs, so press Copy first.

Is pairing one family against itself a mistake?

The notes call it legitimate, since weight and size alone can carry the hierarchy.

Do I have to load the fonts myself?

The copied import line does it; most production sites self-host.