At a glance. Search 1,940 Google Fonts for a heading and a body font, or open one of 118 curated pairs, each with a short reason. System fonts such as Georgia and Arial work too. The preview uses your own text in nine layouts. The tool measures the lowercase height of both fonts in your browser, checks weight and colour contrast, builds a type scale, and copies code with only the weights you pick. There are no made-up scores, and nothing you type is uploaded or saved.
How to use the font pairing generator
Start with the pair builder. The heading and body fonts you choose appear straight away in a layout you can switch, using your text if you typed some. Everything below the preview, from the checks to the code, describes that same pair.
Choose two fonts
Search all Google Fonts, or pick a system font such as Georgia or Arial, for a heading and a body font. Or open a curated pair. Lock one, choose how far Shuffle should look (Similar, Balanced or Contrasting) and press Shuffle. Back and Ctrl+Z undo it.
Add your own text
Type a headline on the first line and your real paragraphs below. The preview uses them in nine layouts, from an article and a landing page to a resume, poster, logo, newsletter and slide, instead of lorem ipsum.
Read the checks
The tool measures the lowercase height of both fonts in your browser and checks weight and colour contrast. Turn on the dark preview or the text spacing test to see how the pair holds up. Fix what is flagged, or ignore it on purpose.
Copy the code
Pick CSS, Tailwind, SCSS, design tokens, next/font, Fontsource, WordPress theme.json, an HTML link or an AI prompt. Only the weights you tick are requested. Save pairs you like under My pairs, and use Share link to send one to a client or teammate.
How to choose a font pair
There are no rules that guarantee a good pair, but a few habits avoid the usual mistakes. They are guidance from working designers and type foundries, not measurements.
- Give each font one job. One font for headings, one for text, and at most one more for code.
- Make the difference obvious. A serif with a sans serif is the easy route. Two fonts that are almost alike look like a mistake; if you want that restraint, use one family and let weight and size do the work.
- Pick the body font first. It carries most of the words, so it has to stay comfortable at 16 to 20 px. Expressive display fonts belong in headings.
- Watch the lowercase height. Fonts at the same size can look bigger or smaller than each other. The checks measure the gap.
- Match the tone. Both fonts should suit the same mood, whether that is editorial, technical, friendly or formal.
Do you need a second font at all? Often not. The Use one family button sets the body to the heading font so you can see how far weight and size get you.
What the checks measure
Each check says what was measured and how. None of them adds up to a score, because how fonts feel together is a judgement. The checks point at things worth looking at.
- Lowercase height.The tool draws the letters x, H, d and p in both fonts in your browser and measures the ink. It reports how much taller or shorter the body font's lowercase letters are. Google Fonts Knowledge explains x-height (opens in a new tab). Our limits (under 5% fine, over 12% worth fixing) are a rule of thumb, not a standard.
- Weight contrast. The difference between the heading weight and the body weight. A gap of 200 or more reads clearly as a different level.
- Colour contrast. The WCAG 2 contrast ratio of your text and background colours, checked for the body and heading sizes you chose.
- Pair type, body size, line height and scale. Plain notes: two sans serifs, a display font as body text, text under 16 px, tight line spacing, or a heading barely larger than the body.
Measured here, on your device. Fonts are drawn in your browser, so results can differ by a fraction between browsers. They are good for comparing two fonts, not for publishing a specification.
118 curated pairings
The curated tab lists 118 heading and body pairs chosen by hand and tagged by style, mood, industry and use. Each has a short reason that sticks to facts about the two fonts, such as what they were built for and how they differ. They are a starting point, not a ranking: open one, replace the text with yours, and read the checks.
Find a match starts from the other direction: pick the font you already have, say whether it is the heading or the body, and get partners for it. Curated pairs come first, followed by suggestions from a short list of reviewed families, ordered by whether you want partners that are similar, balanced or contrasting. For measured comparison of many fonts at once, use the font comparison tool (opens in a new tab). For more on one style, see the serif (opens in a new tab), sans serif (opens in a new tab) and gothic (opens in a new tab) tools.
System fonts: Georgia, Arial and friends
Fonts such as Georgia, Arial, Verdana, Calibri and Times New Roman are already on most computers, so they cost no download. Pick one from the system font list under either font box. The catch is that a system font only shows if the visitor's device has it. Windows, macOS, Android and Linux ship different sets, so the same page can look different from one device to the next.
- Nothing to download. The next/font, Fontsource, HTML link and @import formats have nothing to write for a system font. The CSS formats list it as a font stack with sensible fallbacks.
- Checked on your device. If your device does not have the font, the tool says so and does not measure it, because the preview would be drawn in a fallback font.
- Google alternatives.Where Google made a font to match a system font's character widths (Arimo for Arial, Tinos for Times New Roman, Cousine for Courier New, Carlito for Calibri, Caladea for Cambria), the tool offers it, so line breaks stay the same on every device. For Georgia and Helvetica the alternatives are only similar, and sources disagree on how closely, so compare them before swapping.
Scripts and languages
A font that looks right for English may have no letters for Russian, Hindi or Vietnamese, and the browser then draws those letters in another font. Under Only fonts that cover you can choose a script such as Cyrillic, Devanagari, Arabic or Vietnamese. The font search, Shuffle and Find a match then offer only fonts that list that script. If your own text uses a script that a font does not list, a warning appears under the pickers.
A published list, not a glyph test. The scripts come from the metadata Google Fonts publishes for each family. A font can list a script and still lack a rare letter, so check your real text in the preview. System fonts have no script data here.
Type scale
A type scale gives every level of text a size from one ratio, so the page feels consistent. The Type scale tab uses your body size as the base: heading 6 and body share it, each heading level above is the previous one times the ratio (1.125 to 1.618), and the caption is the base divided by the ratio.
Copy it as CSS variables or a Tailwind CSS v4 @theme block. With Fluid sizes each step uses clamp() to grow smoothly between a 320 px and a 1440 px wide screen, in remunits so it respects the visitor's browser font size (clamp() on MDN (opens in a new tab)). The ratios and the narrow-screen sizes are our own simple rules, so adjust them to your design.
Code and self-hosting
The Code tab writes the pair in eleven formats. Each one asks only for the weights you tick, and only for weights the family has. Italic is included only for a role where you turned Italic on.
- CSS with
--font-headingand--font-bodyproperties and rules using your sizes, and SCSS with variables for the same values. - Tailwind CSS v4 as an
@themeblock; every--font-*variable becomes afont-*class (Tailwind theme docs (opens in a new tab)). - Next.js with
next/font/google, which downloads the files at build time and serves them from your own site (Next.js font docs (opens in a new tab)). - Fontsource npm packages for self-hosting in any bundler (Fontsource (opens in a new tab)).
- HTML link and CSS @import that load from Google Fonts.
- Design tokens (JSON) in the style of the Design Tokens Community Group format (opens in a new tab). Tools expect slightly different versions of it, so check which one yours reads.
- WordPress theme.json (version 3) for a block theme, with font entries that point at files you add to the theme (theme.json reference (opens in a new tab)). WordPress 6.5 and later can also install Google Fonts through its Font Library (opens in a new tab).
- Fallback fonts with
size-adjustand the ascent, descent and line-gap overrides, measured in your browser against Arial, Times New Roman or Courier New (size-adjust on MDN (opens in a new tab)). - AI prompt, a plain brief for tools such as Cursor, v0 or Lovable, so they use your fonts and sizes.
Loading speed. web.dev advises WOFF2 files, subsetting, and font-display: optional for body text so late fonts cause no layout shift, with swap for brand fonts (font best practices (opens in a new tab), size-adjust (opens in a new tab)). Under each font the tool shows the size of the full font file as Google publishes it. That is the uncompressed TTF, before WOFF2 compression and subsetting, so it is far larger than what a visitor downloads. It is a guide to how heavy a family is, not a transfer size. Next.js adjusts its fallback font for you, and the Fallback fonts format writes the rules for other setups.
Accessibility
WCAG 2.2 asks for a contrast ratio of at least 4.5:1 for normal text and 3:1 for large text (24 px, or about 18.7 px bold) at level AA (Contrast (Minimum) (opens in a new tab)). The colour check uses those limits. Thin weights on a dark background can look weaker than the ratio suggests, so look at them at the size you will use.
Readers may also override line spacing. WCAG success criterion Text Spacing (opens in a new tab) expects that content still works with a line height of 1.5 times the font size, so avoid boxes with a fixed height. The Text spacing test button in the preview applies the criterion's minimums (line height 1.5, paragraph spacing 2 times, letter spacing 0.12 em, word spacing 0.16 em) so you can see whether your layout holds. A font that looks right does not prove a text is accessible: build with real headings and test with your readers.
Privacy and licences
The tool runs in your browser. What you type is not uploaded or saved, and your last pair, settings and saved pairs stay in your browser storage. A share link contains your text only if you press Share link.
Google says all Google Fonts are open source and can be used commercially, under each font's licence (Google Fonts FAQ (opens in a new tab)). If you load them from Google, visitors' IP addresses go to Google, which a 2022 Munich ruling (opens in a new tab) treated as a data protection problem without consent. Self-hosting avoids that, at the cost of managing the files yourself. This is information, not legal advice.
Frequently asked questions
What is font pairing?
Font pairing means choosing two typefaces that work together on the same page, most often one for headings and one for body text. The aim is a clear difference between the two roles without the combination looking accidental. Many sites use one family only, which is also a valid choice.
How do I choose fonts that go together?
Give each font one job and make the difference between them obvious. A serif heading with a sans serif body is the usual starting point. Pick a body font that stays comfortable in paragraphs at 16 to 20 px, keep the lowercase letters of the two fonts a similar height, and make sure the heading is clearly heavier or larger. Then test the pair with your own text, which is what the preview here is for.
How many fonts should I use?
Two is plenty for most pages: one for headings and one for body text. A third, usually a monospace font, makes sense for code. More fonts add download weight and tend to look inconsistent. This tool lets you add one optional code font and says plainly when you use a single family.
What are the best Google Font pairings?
There is no single best pair, because it depends on the tone and the reader. The curated tab lists 118 pairs with a short reason for each, for example Playfair Display with Inter for an editorial feel, Lora with Roboto for something warmer, and Space Grotesk with Inter for a technical product. Filter by style, mood, industry or use (website, logo, wedding invitation, resume, slides, newsletter, worksheets, social poster or app), then open one in the builder and test it with your text.
Should I use a serif or a sans serif font?
Either can work for headings and for body text. Serif headings with a sans serif body is the most common pairing and gives an obvious contrast. Two sans serifs or two serifs also work, but then the hierarchy has to come from weight and size, and the tool notes when your pair is close in type.
What is x-height and why does the tool measure it?
X-height is the height of the lowercase letters such as x, measured from the baseline. Two fonts set at the same size can have different x-heights, so one looks larger than the other. The tool draws both fonts in your browser, measures them, and reports how much taller or shorter the body font's lowercase letters are. Under 5% we call it fine and over 12% we suggest matching; those limits are our own rule of thumb, not a standard. Match body size scales the body so the lowercase heights line up.
Can I use my own text to test a pair?
Yes. Type a headline on the first line and paragraphs below it. The preview shows them in nine layouts: article, landing hero, UI card, dashboard, resume, poster, logo lockup, newsletter and slide. Your text is not uploaded and is not saved. It goes into a share link only when you press Share link.
How do I use the fonts in Next.js, Tailwind or WordPress?
The Code tab has a format for each. For Next.js it writes next/font/google declarations and maps them to font-heading and font-body names; next/font downloads the files at build time and serves them from your own site. For Tailwind CSS v4 it writes an @theme block, and each --font-* variable becomes a font-* class. For a WordPress block theme it writes a theme.json (version 3) whose font entries point at files you add to the theme; WordPress 6.5 and later can also install Google Fonts through its Font Library. For other sites, use the HTML link or CSS tabs, or host the files yourself with the Fontsource tab. We did not run the generated code inside each framework here, so check it in your project.
Are Google Fonts free for commercial use?
Yes. Google says all Google Fonts are open source and free to use commercially, including in logos and products you sell, under the licence of each font. The most common one is the SIL Open Font License, and a few use the Apache or Ubuntu Font Licence. This tool lists only Google Fonts.
Does loading Google Fonts affect privacy?
When a page loads fonts from Google, each visitor's browser sends requests that include their IP address, as Google's own FAQ explains. In January 2022 a Munich court ruled against a site operator for this without consent (case 3 O 17493/20). Self-hosting avoids the transfer, and the Next.js and Fontsource tabs self-host. Google also lists drawbacks of self-hosting, such as bigger files unless you subset them and manual updates. This is general information, not legal advice.
Why does the page jump when my web font loads?
Until the web font arrives the browser shows a fallback font, and the two differ in size and spacing. web.dev recommends font-display: optional for body text to avoid layout shifts, swap for brand fonts, and size-adjust to reduce the jump. The Fallback fonts format in the Code tab measures your fonts in your browser and writes fallback @font-face rules with size-adjust and the ascent, descent and line-gap overrides. next/font does the fallback adjustment for you.
Can I pair system fonts like Georgia or Arial?
Yes. Pick one in the System font list under either font box. A system font needs no download, so the file formats (next/font, Fontsource, HTML link, @import) have nothing to write for it and the CSS lists it as a font stack. It only shows if the visitor's device has the font, so the tool tells you when your own device does not, and then does not measure it, because the preview would be using a fallback. Where a Google font was made to match a system font (Arimo for Arial, Tinos for Times New Roman, Cousine for Courier New, Carlito for Calibri, Caladea for Cambria) the tool offers it as an alternative. For Georgia the alternatives are only similar, because sources disagree on how closely Gelasio matches it.
Does it work for Hindi, Cyrillic, Arabic or other scripts?
It can help you find fonts that list support for a script. Choose a script under Only fonts that cover and the search and Shuffle show only fonts that list it, using the scripts Google Fonts publishes for each family. If your typed text uses a script the font does not list, a warning says so. This is based on that published list, not on a check of every character, so look at your real text in the preview before you decide.
What is a type scale?
A type scale is a set of sizes that grow by a fixed ratio, so headings, body text and captions relate to each other. The Type scale tab builds heading 1 to 6, body and caption from your body size and a ratio such as 1.25, and writes it as CSS variables or a Tailwind v4 theme, with fixed sizes or fluid clamp() sizes that grow between a phone and a wide screen. The sizes follow our own simple rules, not a standard.
Can I save the pairs I like?
Yes. Open My pairs under the preview, name the pair and press Save. Saved pairs stay in your browser, and you can rename, delete, export them as a JSON file and import them again. Only the two fonts, their weights and italics are saved, never the text you typed. Clearing your browser data removes them, so export the file if you want a backup.
Is my data sent anywhere?
No text you type is uploaded. Fonts are requested from Google so they can be drawn and measured in your browser. Your last pair, your settings and the pairs you save stay in your own browser storage, and typed text is never stored.
Sources
- Google Fonts Knowledge, X-height (opens in a new tab)
- Google Fonts FAQ: commercial use, privacy and self-hosting (opens in a new tab)
- activeMind.legal, Munich Regional Court decision on Google Fonts (20 January 2022, 3 O 17493/20) (opens in a new tab)
- web.dev, Best practices for fonts (opens in a new tab)
- web.dev, Scale fonts with size-adjust (opens in a new tab)
- Next.js documentation, Font module (opens in a new tab)
- Tailwind CSS documentation, Theme variables (opens in a new tab)
- Fontsource, self-hosted open source fonts (opens in a new tab)
- W3C, WCAG 2.2 Contrast (Minimum) (opens in a new tab)
- W3C, WCAG 2.2 Text Spacing (opens in a new tab)
- WordPress Block Editor Handbook, theme.json (opens in a new tab)
- WordPress 6.5 release notes, Font Library (opens in a new tab)
- Design Tokens Community Group, Design Tokens Format Module (opens in a new tab)
- MDN, clamp() (opens in a new tab)
- MDN, size-adjust (opens in a new tab)
The reasons on the curated pairs are our own editorial notes about each font's design, not measurements. Lowercase heights and contrast are calculated in your browser.
Last updated: