Font Pairing Preview

Try heading and body font pairs on a live page with a type scale, line height and colour contrast check – using free self-hosted fonts or your own font files.

Tool

Was this tool useful?

About this tool

About Font Pairing Preview

Choosing fonts is easier when you see them together. Pick a heading font and a body font from free Open Font License fonts (Inter, Montserrat, Merriweather, Playfair Display, Lora and more), or load your own font files. Choose a type scale, body size and line height and see a realistic page. The contrast of your text and background colours is checked against WCAG, and you can copy ready CSS with font variables and heading sizes.

How it works

Heading sizes = body size × ratio^n (h4 = 1 step … h1 = 4 steps). Contrast = (L1 + 0.05) ÷ (L2 + 0.05) using relative luminance; AA needs 4.5:1, AAA 7:1.

Example

Playfair Display headings with Source Serif 4 text at 18 px, ratio 1.25: h1 is 44 px; #1f2937 on white has 14.7:1 contrast (AAA).

How to use this tool

  1. Choose a heading and a body font (or load your own files).
  2. Set the type scale, size, line height and colours.
  3. Shuffle for ideas, then copy the CSS.

Frequently asked questions

Are the fonts free for commercial use?

Yes – all listed fonts use the SIL Open Font License. Your own font files must be licensed by you.

Is my data uploaded?

No. Everything runs in your browser and stays on this device.

Is my design uploaded by the Font Pairing Preview?

No. The Font Pairing Preview works in your browser, so your images and colours stay on your device.