Browse 25 curated Google Fonts pairings, preview them in real layouts, tune sizes and weights, and export CSS, HTML, Tailwind or SCSS.
Initializing in your browser…
Build Flexbox and Grid layouts by adjusting real boxes, with presets, per-item controls, warnings for settings that do nothing, and CSS that matches the preview.
Convert fonts between TTF, OTF, WOFF and WOFF2 in your browser, preview them, and get a ready @font-face rule. Every result is checked first.
Design linear, radial and conic CSS gradients with live preview, vivid colour-space blending, and CSS or Tailwind code to copy.
You want elegant serif headings for a magazine-style blog and a body face that stays comfortable over long articles.
Chosen pairing
Playfair Display (headings, 700) with Source Sans 3 (body, 400) Preview: Article layout, desktop, light
The CSS export (excerpt)
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Source+Sans+3:wght@400&display=swap');
:root {
--font-heading: 'Playfair Display', serif;
--font-body: 'Source Sans 3', sans-serif;
--font-weight-heading: 700;
--font-weight-body: 400;
--font-size-heading: 48px;
--font-size-body: 16px;
--line-height: 1.6;
}The import asks Google Fonts for exactly the two weights the CSS uses, 700 for the headings and 400 for the body, so nothing is downloaded that the page never shows and nothing is faked. Playfair Display publishes weights from 400 to 900 and Source Sans 3 from 200 to 900, and the weight menus offer exactly those. Each stack ends in a real generic family, so if the fonts are slow or blocked the page still falls back to a serif for headings and a sans-serif for text, keeping the same contrast between the two.
Browse 25 tried-and-tested Google Fonts pairings for headings and body text, preview each one in a realistic page layout, and copy the code to use it in CSS, HTML, Tailwind, SCSS or styled-components. You can also build your own pairing from 46 families and compare up to three side by side.
Browse and preview. Each pairing combines a heading face and a body face, such as Playfair Display with Source Sans 3 or Montserrat with Open Sans. Filter by mood (elegant, modern, bold, minimal, professional and more), search by font name or use, or press Surprise me. Every family in the list is loaded, so the cards show the real faces. The preview renders the selected pair in one of five layouts (an article, a landing page, a shop, a dashboard or a card), at phone, tablet or desktop width, on a light or dark background, so you judge the fonts in context rather than as a name in a list.
Tune the typography. Open Advanced to set the heading and body size, line height and letter spacing, and the weights. The weight menus list only the weights each family actually publishes: Bebas Neue, for instance, comes in a single weight, and asking a browser for a weight a font does not have makes it fake bold or light by distorting the outlines. Type scale builds a set of sizes from a base size and a ratio (from the Minor Second at 1.067 to the Golden Ratio at 1.618) and copies them as CSS custom properties.
What can and cannot be measured. Whether two typefaces go together is a matter of judgement, and no tool can prove it; the pairings here are a curated list. Some things are measurable, and the panel under the preview reports them once the fonts have loaded: the x-height and cap height of each face, the ratio between them (which decides whether body text looks the same size as the heading font at equal settings), and the weights available. Rules of thumb, such as pairing a serif with a sans-serif, are labelled as conventions.
Code that loads correctly. The export uses the Google Fonts CSS API and asks for exactly the weights your CSS uses, so the font you see is the font your visitors get. Choose CSS for an @import plus custom properties, HTML for link tags with the recommended preconnects, Tailwind for a fontFamily configuration, SCSS for variables and mixins, or styled-components for a theme. Every font stack ends in a real generic family (serif, sans-serif or monospace) as a fallback. In Build your own, the import also asks only for weights each family has, because a request for a missing weight makes Google refuse the whole file.
Keep and share. Favourites are saved in your browser, the selected pair and mood go into the page address for sharing, and Compare shows up to three pairings next to each other.
Playfair Display for headings and Source Sans 3 for text: the high-contrast serif gives the titles character while the sans keeps long paragraphs easy to read.
Montserrat with Open Sans in the Landing layout, at desktop and phone width, before committing the fonts to a design system.
Bebas Neue publishes one weight, so the weight menu offers only 400 and the export never asks Google for a bold that does not exist.
Common advice is to contrast in style (a serif heading with a sans-serif body, or a display face with a neutral text face) while keeping similar proportions, such as x-height. The measurements panel shows the x-height of both faces to help with the second part.
Yes. Every family here is on Google Fonts under an open licence (mostly the SIL Open Font License), which allows use on websites and in commercial projects.
Link tags in the head, with the preconnect lines, start loading the fonts sooner than an @import inside a stylesheet. Use the HTML export where you can edit the page head.
It lists the weights the family actually publishes. If CSS asks for a weight that is not there, the browser synthesises it by thickening or slanting the outlines, which looks noticeably worse.
Yes. Download the families from Google Fonts, convert them to WOFF2 if needed, and use the font-family names from the export with your own @font-face rules.
The export adds display=swap, which shows text in a fallback font immediately and swaps to the web font when it arrives, so text is never invisible while fonts load.
This runs as client-side JavaScript. Keys, tokens, payloads, and other inputs never leave your device.