EN

Google Sans Code

A monospaced variable family credited to Google and Universal Thirst, in six weights with italics.

Monospace 12 styles · variable by Google, Universal Thirst OFL

Google Sans Code is a monospaced typeface credited to Google and Universal Thirst. It comes as roman and italic variable fonts with a weight axis from 300 to 800, six named weights and 12 styles, plus a second axis named Monospace. Google Sans Code is licensed under the SIL Open Font License 1.1 and is meant for code and documentation.

Google Sans Code font preview card
Preview drawn by trendhub 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.

Google Sans Code font specimen: alphabet, numerals and weights
Google Sans Code specimen: alphabet, numerals and weights. Image drawn by trendhub from the font files.

Weights and styles

  • Light 300Google Sans Code Light Light Italic
  • Regular 400Google Sans Code Regular Italic
  • Medium 500Google Sans Code Medium Medium Italic
  • SemiBold 600Google Sans Code SemiBold SemiBold Italic
  • Bold 700Google Sans Code Bold Bold Italic
  • ExtraBold 800Google Sans Code ExtraBold ExtraBold 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

Google Sans Code is a monospaced typeface credited to Google and Universal Thirst. In the specimen every character sits on the same width; the zero is slashed, the lowercase l ends in a curved tail, the i and j carry a serif at the top, and the curly braces are drawn with pronounced curls. The family is distributed as two variable fonts, roman and italic. Each has a weight axis from 300 to 800 and a second axis named Monospace, which runs from 0 to 1 and defaults to 1, the fixed-width setting shown in the specimen. Six named weights from Light to ExtraBold, each with an italic, make 12 styles. The 693 glyphs cover Latin, Latin Extended and Vietnamese. Google Sans Code is licensed under the SIL Open Font License 1.1.

Where Google Sans Code works

Code editors
The slashed zero and the tailed l keep 0, O, l and 1 distinct, and equal character widths keep indentation aligned.
Terminal windows
Light 300 to ExtraBold 800 give enough range to mark prompts or errors by weight.
Technical documentation
Italics exist for every weight, so comments and placeholders in a code sample can be set apart.
Comments and strings in several languages
Latin Extended and Vietnamese letters are in the files, so comments and string literals in Polish, Turkish or Vietnamese stay in the same monospaced face.

Glyphs

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

Latin and Latin Extended characters in the preview subset; the complete family has 693 glyphs.

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.

This is 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

Google Sans is the proportional family credited to Google, with matching Regular to Bold weights for the prose around code set in Google Sans Code.

Suggestions come from simple rules on the records: a contrasting classification and enough weights to carry body text. They are a starting point, not a verdict.

Use Google Sans Code on the web

Download the family and host the files on your own site, then declare them in CSS. Please do not link to the files on trendhub.net: preview files here are subsets and their addresses change.

CSS, self-hosted
@font-face {
  font-family: "Google Sans Code";
  src: url("/assets/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("/assets/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

Two variable files
One file holds the roman, the other the italic. Both carry the weight axis (300 to 800) and the Monospace axis (0 to 1).
Monospace axis defaults to 1
The font data gives the axis range and default but no description of the intermediate setting; the specimen shows the default.
No Cyrillic or Greek
Among the major alphabets, only Latin, Latin Extended and Vietnamese are complete.

FAQs

Is Google Sans Code free for commercial use?

Yes. Google Sans Code is published under the SIL Open Font License 1.1, which allows use in personal and commercial work, modification and redistribution. The font cannot be sold on its own, and modified versions stay under the same license.

Who designed Google Sans Code?

Google Sans Code is credited to Google and Universal Thirst. The font itself names the Google Sans Code Authors and Google LLC.

How many weights does Google Sans Code have?

Google Sans Code has six named weights, from Light 300 to ExtraBold 800, each with an italic, for 12 styles.

Is Google Sans Code a variable font?

Yes. Google Sans Code has a weight axis from 300 to 800 and a Monospace axis from 0 to 1.

Which languages does Google Sans Code support?

Google Sans Code includes the letters needed for English and other Latin-script languages such as German, French, Turkish, Polish and Vietnamese. Cyrillic and Greek are not covered.

Comments

No comments yet. If you have used Google Sans Code, tell other readers how it went.

Leave a comment

Comments are reviewed before they appear. Links are marked as user content.

Similar fonts

Other families in the same classification, ordered by shared use tags. All monospace fonts