Font Pairing and Typography Tester
Try font combinations on real content, tune size, scale, line height and line length, and copy production-ready CSS for your website.
Runs in your browser. Your files never leave your device. See how to check
…
How to do it
- 1Pick fonts
Choose a heading font and body font with their weights.
- 2Or use a pairing
Open Pairing gallery or press Random curated pair.
- 3Add your content
Type your headline and paragraphs and choose a layout.
- 4Tune the scale
Set base size, ratio, line heights and measure.
- 5Check dark mode
Toggle Light and Dark to test contrast and weight.
- 6Export CSS
Press the CSS download or Copy CSS.
About this tool
Choosing fonts from a specimen page rarely works, because a typeface that looks elegant in a single word can feel cramped in a paragraph or shout in a button. This tester shows a pair of fonts the way your readers will meet them. Pick a heading font and a body font from 38 widely used Google Fonts families covering sans-serif, serif, display, monospace and handwriting styles, each with its available weights. Or start from 18 curated pairings, each with a sentence on why it works, or roll the dice for a random curated pair. Then paste your own headline and paragraphs and switch between three layouts: a blog article with a pull quote and caption, a landing page hero with buttons and feature columns, and an app settings screen with cards and small print. Toggle between light and dark backgrounds to check that thin weights survive on dark mode. Everything updates as you type or move a slider, and each change can be undone.
Type scale
A modular scale sizes headings by multiplying the base size by a fixed ratio, which gives a consistent rhythm. Choose a base from 12 to 24 pixels and one of eight ratios, from the subtle minor second, 1.067, through the popular major third, 1.25, and perfect fourth, 1.333, to the dramatic golden ratio, 1.618. The scale table lists every step in pixels and rem with a sample, from tiny print to display size.
Rhythm and measure
Body line height between 1.4 and 1.7 suits most text; headings need less. The measure slider limits paragraph width in characters, and the classic guidance of 45 to 75 characters per line is easy to see in the article layout.
CSS export
The CSS file starts with a Google Fonts import for exactly the families and weights you use, then defines custom properties for both font stacks and every scale step, body settings, paragraph width and rules for h1 to h6. With fluid sizes on, larger headings use CSS clamp so they shrink smoothly on phones instead of jumping at breakpoints. Copy CSS puts it on the clipboard.
Privacy
Font files are loaded from Google's font servers so the preview can show them; that request reveals your IP address to Google, as on any site using Google Fonts. The text you type is never sent anywhere.
Limits
The list is a curated selection, not the full Google Fonts library of more than 1,500 families. Previews depend on your browser's font rendering, which differs slightly between Windows, macOS and phones. The tool does not check licences for fonts outside Google Fonts.
Worked example
For a coffee blog, the user picks Playfair Display 700 over Source Sans 3 at 17 pixels with a 1.25 ratio and line height 1.6. The scale gives h1 at 51.88 pixels and h4 at 26.56 pixels. With fluid sizes on, the exported CSS sets h1 to a clamp that shrinks on small screens and caps at 3.25 rem.
Quick facts
- Category: Images
- Works in your browser, no sign-up, no upload.
- Your input stays on your device.
- Available in English.
- Content last reviewed:
- Official source: Google Fonts CSS API version 2
Frequently asked questions
Are the fonts free for commercial use?
All families listed are on Google Fonts under open licences such as the SIL Open Font License.
What is a modular scale?
A set of sizes where each step is the previous one times a fixed ratio, such as 1.25.
Can I test my own website text?
Yes. Paste a headline and paragraphs into Your content; a blank line starts a new paragraph.
Why use clamp for headings?
It scales headings with the screen width between a minimum and maximum, so they fit phones and desktops.
Does it work offline?
The editor does, but new fonts need a connection to load from Google.
How many fonts should a site use?
Usually two: one for headings and one for body text, with weights for emphasis.
