Google Sans Sans Serif
Use the proportional Google Sans, also credited to Google, for the prose that surrounds your code; its Regular to Bold range matches.
Fixed-width variable family from Google and Universal Thirst, with a slashed zero and an italic for every weight.
Google Sans Code is a free monospace font by Google and Universal Thirst. It has 12 styles and 693 glyphs and covers 25 languages. It is a variable font with weight and monospace axes. Google Sans Code is licensed under the SIL Open Font License 1.1, so it is free for personal and commercial use. The download is a zip with 2 original font files and the license text.
Google Sans Code
AaBbCc 0123
Official source: Google Fonts. Facts on this page were read from the font files and the source’s published data.
Type over the sample to test your own words. The preview loads a Latin subset of Google Sans Code; the download contains the complete files.
Monospace, 12 styles, OFLvafont.com
Google Sans Code
ABCDEFGHIJKLMNOPQRSTUVWXYZ
abcdefghijklmnopqrstuvwxyz
0123456789 & @ ? ! % ( ) { } “ ”
The quick brown fox jumps over the lazy dog, then packs five dozen liquor jugs into a box.
Google Sans Code is a variable font: the download holds the whole weight range in one file per style, and the named weights above are positions on that range.
In Google Sans Code every character occupies one fixed width. The zero carries a slash, the lowercase l curls into a tail, i and j have a serif on top, and the curly braces are drawn with strong curls. Credit goes to Google and Universal Thirst.
Two variable fonts, roman and italic, each carry two axes. Weight goes from 300 to 800. The second, called Monospace, runs from 0 to 1 and sits at 1 by default, which is the fixed-width setting. Light to ExtraBold gives six named weights, and with italics that makes 12 styles. The 693 glyphs cover Latin, Latin Extended and Vietnamese. It is licensed under the SIL Open Font License 1.1.
Latin and Latin Extended characters in the preview subset; the complete family has 693 glyphs. Select a glyph to see its code point.
The family contains the core letters these languages are written with:
Character sets found in the files: latin, latin-ext, vietnamese. The language list is a check of required letters against the font, not a promise of typographic quality in each language.
SIL Open Font License 1.1Copyright 2025 The Google Sans Code Project Authors (github.com/googlefonts/googlesans-code)
A short summary, not legal advice. The license text decides: read the full OFL text. A copy is included in the download.
Use the proportional Google Sans, also credited to Google, for the prose that surrounds your code; its Regular to Bold range matches.
Suggestions follow simple rules: a contrasting classification and enough weights to carry body text. Treat them as a starting point.
Download the family, put the files on your own server and declare them in CSS. Please do not link to files on vafont.com: the previews here are subsets and their addresses change.
@font-face {
font-family: "Google Sans Code";
src: url("/fonts/GoogleSansCode-Italic-VariableFont_MONO%2Cwght.ttf") format("truetype");
font-weight: 300 800;
font-style: italic;
font-display: swap;
}
@font-face {
font-family: "Google Sans Code";
src: url("/fonts/GoogleSansCode-VariableFont_MONO%2Cwght.ttf") format("truetype");
font-weight: 300 800;
font-style: normal;
font-display: swap;
}
body {
font-family: "Google Sans Code", monospace;
}Or load it from the official source. Google Fonts serves Google Sans Code with this markup:
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Google+Sans+Code:ital,wght@0,300..800;1,300..800&display=swap" rel="stylesheet">Yes. Under the SIL Open Font License 1.1 you may use it in personal and commercial work, modify it and share it. You may not sell it alone, and modified versions keep the license.
Google and Universal Thirst. The font files themselves name the Google Sans Code Authors and Google LLC.
Twelve in total: six named weights, Light 300 up to ExtraBold 800, and an italic for each one.
Weight, from 300 to 800, and an axis named Monospace that runs from 0 to 1 and defaults to 1, the fixed-width setting.
Its 693 glyphs cover Latin, Latin Extended and Vietnamese, so German, French, Polish and Turkish all work. Cyrillic and Greek are missing.
Free monospace fonts close to Google Sans Code in use include Fira Code, Space Mono, Roboto Mono, Geist Mono and IBM Plex Mono. Each is listed on this page with the uses it shares.
These free monospace families are the closest to Google Sans Code in the library by classification and shared uses. Use them as alternatives when you need a different weight range or a slightly different tone.
Other monospace families, ordered by shared uses. All monospace fonts