Maaz Zindani

Loading the index…

↑↓ move↵ openesc close4791 pages

Free tool · Design and colour

Font pairing

Pick one font for headings and one for body text and see them together with your own words. Playfair Display over Inter at 17 px gives a main heading of 33.2 px.

  • Free
  • No sign-up
  • Runs in your browser

By Maaz Zindani · Updated

Preview

Quiet mornings at the market

The first stalls open before the light is full. Bread, cut flowers and cold coffee change hands while the street wakes up, and nobody is in a hurry.

Playfair Display + InterA serif heading over a sans body: the contrast in shape makes the two levels easy to tell apart.

Heading size (h1)
33.2 px
Subheading (h2)
26.56 px
Small heading (h3)
21.25 px
body {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.2;
}
h1 { font-size: 33.2px; }
h2 { font-size: 26.56px; }
h3 { font-size: 21.25px; }

How to use the Font Pair Previewer

  1. Choose a Heading font and a Body font. Each is marked serif or sans.
  2. Set the Body size, the Line height and the Heading scale.
  3. Type your own heading and paragraph so that you judge the pair on real words.
  4. Press Copy the CSS to get the font stacks and sizes for your stylesheet.

How do I pair fonts for a heading and body text?

A common first step is to pair a serif with a sans serif. The difference in shape makes the two levels of text easy to tell apart. The page says so in its note under the preview: A serif heading over a sans body: the contrast in shape makes the two levels easy to tell apart. The suggestion is a starting rule from design practice, not a law, so trust your eyes and the preview with your own text.

Two fonts of the same kind can work, but they can look close to each other. For a pair such as Lora and Merriweather the page notes: Two serif fonts. They can look close to each other, so give the heading a clearly larger size or a heavier weight. Using one family for both levels is also fine and is the safest choice.

Try the opposite kind first. For a Lora heading the opposite kind gives Montserrat, Inter, Poppins, Open Sans. Keep to two fonts on a page. A third font rarely adds anything and makes a page feel busy.

The eight fonts on this page
FontKindWeights loadedLicense
Playfair DisplaySerifRegular and boldSIL Open Font License 1.1
LoraSerifRegular and boldSIL Open Font License 1.1
MerriweatherSerifRegular and boldSIL Open Font License 1.1
Source Serif 4SerifRegular and boldSIL Open Font License 1.1
MontserratSans serifRegular and boldSIL Open Font License 1.1
InterSans serifRegular and boldSIL Open Font License 1.1
PoppinsSans serifRegular and boldSIL Open Font License 1.1
Open SansSans serifRegular and boldSIL Open Font License 1.1

How big should the headings be?

Set the body size first, then let a type scale decide the headings. A scale multiplies the body size by the same ratio for each step up, so the sizes feel related. With a body of 17 px and the ratio 1.25, h3 is 21.25 px, h2 is 26.56 px and h1 is 33.2 px.

A bigger ratio gives a stronger contrast between levels. At 16 px, the ratio 1.2 gives a main heading of 27.65 px and the ratio 1.5 gives 54 px. On a phone a large ratio can make a long heading wrap onto many lines, so a smaller one is often easier there. With a body of 18 px and the largest ratio, h1 would be 60.75 px.

Heading sizes for a 16 px body at each scale
Scaleh3h2h1
Minor third (1.2)19.2 px23.04 px27.65 px
Major third (1.25)20 px25 px31.25 px
Perfect fourth (1.333)21.33 px28.43 px37.9 px
Perfect fifth (1.5)24 px36 px54 px

How do I use the CSS in my own site?

Copy the CSS and paste it into your stylesheet. It sets the body font, size and line height, then the heading font and sizes. Each stack ends with a safe fallback such as Georgia or Arial, which the browser uses while a font loads or if it fails.

All eight fonts come with the SIL Open Font License 1.1, which allows free use. This page carries them only so that you can preview a pair. To use one on your site, load it yourself from Fontsource, from Google Fonts or from your own server, and keep the licence terms.

What else makes text easy to read?

Size and line height matter as much as the font. The page accepts a body size from 12 to 28 px and a line height from 1.1 to 2.2, so you can see the effect of a looser or tighter setting. Tighter spacing suits big headings and looser spacing suits paragraphs.

Check contrast too. Dark text on a light background is the most legible choice. The color palette generator on this site lists contrast ratios for any color you plan to use.

Read your sample aloud on the device your readers use. A pair that looks fine on a large screen can feel cramped on a phone. The heading in the example, "Quiet mornings at the market", is short on purpose. Test it with your own longest title.

Use it with

Questions

Which fonts go well together?

A serif with a sans serif is a common start. For a Playfair Display heading, Inter is the pair shown. The preview with your own text is the real test.

Which fonts can I preview?

Eight: Playfair Display, Lora, Merriweather, Source Serif 4, Montserrat, Inter, Poppins, Open Sans.

How are the heading sizes worked out?

The body size is multiplied by the scale ratio once for h3, twice for h2 and three times for h1. A 16 px body with ratio 1.5 gives 24, 36 and 54 px.

Can I use these fonts on my own website?

Yes, they are open source under the SIL Open Font License 1.1. Load them from Fontsource, Google Fonts or your own server.

How many fonts should a page use?

Two is plenty, one for headings and one for body text. One family for both is also fine.

Is my sample text sent anywhere?

No. The preview is drawn in your browser and your text is not sent or kept.

The tool's results are computed in your browser by the code on this page, using the sources listed above; the explanations are checked against the tool's own output.