Home/Tools/Typography/Google Font Preview
Typography · Generator

Google Font Preview

Preview Google Fonts with custom text, weight, and size. Generates @import and font-family CSS.

Font Family

Style

32px

Inter

loading...
The quick brown fox jumps over the lazy dog
300
400
600
700
900
Generated CSS
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400&display=swap');

.element {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 32px;
}
100%
Free, no
sign-up needed
0
Code written
by hand
85+
CSS tools
in one place
<1s
Copy-ready
CSS instantly
What is this

What is the CSS Font Preview?

Preview any system font, Google Font, or custom font with your own text. Adjust size, weight, and style properties and export the CSS.

Everything runs locally in your browser. Adjust the controls above, preview instantly, and copy clean, production-ready CSS — no account, no upload.

How to use

Using the CSS Font Preview

Everything lives in the panel at the top of this page. There is nothing to install — it all runs right here in your browser.

1

Choose a font

Browse Google Fonts, enter a custom font name, or pick from system fonts. The preview loads the font immediately.

2

Set size, weight, and style

Adjust font-size, font-weight, line-height, and letter-spacing. Type your own preview text to see exactly how the font renders with real content.

3

Copy the CSS

Click Copy to grab the font-family declaration and any additional properties you set.

The output

What the generated code looks like

Clean, production-ready CSS — no vendor bloat, no unnecessary declarations.

styles.css
/* System font stack - no download needed */
body {
  font-family: -apple-system, BlinkMacSystemFont,
    'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* Google Font with fallback */
h1 {
  font-family: 'Inter Tight', -apple-system, sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

The system font stack loads instantly with zero network requests. Use it for body text. Load a web font only for headings or branded elements.

Pro tips

Pro tips for better results

Use the system font stack for body text

System fonts (-apple-system, BlinkMacSystemFont, Segoe UI...) load instantly with no network requests and look native on each platform. Reserve web fonts for headings.

Only load the weights you actually use

Loading Google Fonts at weight=400;500;600;700 downloads data for four weight variations. If you only use 400 and 700, specify only those. Each extra weight adds roughly 25-40KB.

Variable fonts cover many weights in one file

Variable fonts (Inter, Source Sans, etc.) provide every weight from 100-900 in a single file that is often smaller than loading two static weights. Use font-weight: any value when using a variable font.

FAQ

Frequently asked questions

A system font stack is a font-family value that lists the native interface font for each operating system: -apple-system and BlinkMacSystemFont for macOS/iOS, Segoe UI for Windows, Roboto for Android. The browser uses the first one it finds. No fonts are downloaded.
No. Everything runs in your browser. Nothing is sent to a server.

From the blog

Read more