Google Sans Code font

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.

Monospace 12 styles, variable by Google, Universal Thirst OFL

Monospace12 stylesOFL

Google Sans Code

AaBbCc 0123

Set live in Google Sans Code, straight from the font files.
Designers
Google, Universal Thirst
Classification
Monospace
License
SIL Open Font License 1.1
Styles
12 6 weights, with italics
Variable font
Yes Weight 300–800, Monospace 0–1
Glyphs
693
Languages checked
25 see the list
Last updated
version 7.001
Used for
CodeTech

Official source: Google Fonts. Facts on this page were read from the font files and the source’s published data.

Try Google Sans Code

Sample text

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.

Weights and styles

  • Light 300Google Sans Code LightLight Italic
  • Regular 400Google Sans Code RegularItalic
  • Medium 500Google Sans Code MediumMedium Italic
  • SemiBold 600Google Sans Code SemiBoldSemiBold Italic
  • Bold 700Google Sans Code BoldBold Italic
  • ExtraBold 800Google Sans Code ExtraBoldExtraBold Italic

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.

About Google Sans Code

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.

Where Google Sans Code works

Programming in an editor
A slashed zero and a tailed l separate 0 from O and l from 1, while equal widths keep indentation lined up.
Command-line output
Weights from Light to ExtraBold give enough range to show prompts or errors by weight alone.
Developer docs
Every weight has an italic, which lets comments and placeholders in a sample read differently from the code.
Code comments beyond English
Latin Extended and Vietnamese are covered, so strings and comments in Turkish, Polish or Vietnamese keep the same fixed-width face.

Glyphs

!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~¡¢

Latin and Latin Extended characters in the preview subset; the complete family has 693 glyphs. Select a glyph to see its code point.

Language support

The family contains the core letters these languages are written with:

  • English
  • French
  • German
  • Spanish
  • Portuguese
  • Italian
  • Dutch
  • Swedish
  • Norwegian
  • Danish
  • Finnish
  • Icelandic
  • Catalan
  • Turkish
  • Polish
  • Czech
  • Slovak
  • Hungarian
  • Romanian
  • Croatian
  • Slovenian
  • Lithuanian
  • Latvian
  • Estonian
  • Vietnamese

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.

License

SIL Open Font License 1.1Copyright 2025 The Google Sans Code Project Authors (github.com/googlefonts/googlesans-code)

What the license allows

  • Use the fonts in personal and commercial work, in print, on the web and in apps.
  • Modify the fonts and build new versions from them.
  • Redistribute the fonts, on their own or bundled with software, as long as the license text and copyright notice go with them.

Conditions

  • The fonts cannot be sold by themselves.
  • A modified version must stay under the same license and cannot use a Reserved Font Name without the copyright holder's permission.
  • The authors' names cannot be used to promote a modified version without permission.

A short summary, not legal advice. The license text decides: read the full OFL text. A copy is included in the download.

Fonts that pair with Google Sans Code

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.

Suggestions follow simple rules: a contrasting classification and enough weights to carry body text. Treat them as a starting point.

Use Google Sans Code on the web

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.

CSS, self-hosted
@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:

HTML, Google Fonts

Things to know

Roman and italic files
The family ships as two variable fonts. Each has weight from 300 to 800 and an axis called Monospace from 0 to 1.
Monospace starts at 1
The default, 1, is the fixed-width setting. The font data does not describe what the lower value does.
Latin and Vietnamese only
Cyrillic and Greek are not complete in this family. Latin, its extended set and Vietnamese are.

FAQs

Can Google Sans Code be used in commercial products?

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.

Who is credited with Google Sans Code?

Google and Universal Thirst. The font files themselves name the Google Sans Code Authors and Google LLC.

How many styles does Google Sans Code have?

Twelve in total: six named weights, Light 300 up to ExtraBold 800, and an italic for each one.

What do the variable axes in Google Sans Code control?

Weight, from 300 to 800, and an axis named Monospace that runs from 0 to 1 and defaults to 1, the fixed-width setting.

What languages can Google Sans Code handle?

Its 693 glyphs cover Latin, Latin Extended and Vietnamese, so German, French, Polish and Turkish all work. Cyrillic and Greek are missing.

What fonts are similar to Google Sans Code?

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.

Fonts similar to Google Sans Code

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.

  • Fira Code 5 styles, variable; also used for code and tech.
  • Space Mono 4 styles; also used for code and tech.
  • Roboto Mono 14 styles, variable; also used for code and tech.
  • Geist Mono 18 styles, variable; also used for code and tech.
  • IBM Plex Mono 14 styles; also used for code and tech.
  • Cascadia Code 12 styles, variable; also used for code and tech.

Other monospace families, ordered by shared uses. All monospace fonts