Google Sans Code

Monospace by Google, Universal Thirst #220 on Google Fonts
Weights
6 (300–800)
Styles
12
Italic
Yes
Variable font
Yes (MONO, wght)
Subsets
11
Added to Google Fonts

Source: Google Fonts · Family last modified

Weight

About Google Sans Code

Google Sans Code is a monospace typeface developed by Google and Universal Thirst that shares the geometric DNA of Google Sans while meeting the functional demands of code display. The variable weight axis spans six steps, and remarkably, the typeface extends to Adlam, Canadian Aboriginal Syllabics, Cherokee, and Old Permic scripts alongside Latin and mathematical symbols. This makes it an unusually inclusive coding font for developers working in less-common writing systems.

Character Map

AaBbCcDdEeFfGgHhIiJjKkLlMm
NnOoPpQqRrSsTtUuVvWwXxYyZz
0123456789
!@#$%^&*()_+-=[]{}|;':",.<>?

Code Editor Preview

example.js
const fibonacci = (n) => {
  if (n <= 1) return n;
  return fibonacci(n - 1) + fibonacci(n - 2);
};

// Generate first 10 numbers
const results = Array.from(
  { length: 10 },
  (_, i) => fibonacci(i)
);

console.log(`Result: ${results.join(', ')}`);

Character Disambiguation

Can you tell these apart? A good monospace font makes similar characters easy to distinguish.

Zero vs O 0 O o
One vs l vs I 1 l I | !
Quotes ' ' " " ` ´
Braces ( ) [ ] { } < >
Punctuation . , : ; .. ...

Weight Waterfall (6)

300 Light
Google Sans Code
400 Regular
Google Sans Code
500 Medium
Google Sans Code
600 SemiBold
Google Sans Code
700 Bold
Google Sans Code
800 ExtraBold
Google Sans Code

How to Use

<link href="https://fonts.googleapis.com/css2?family=Google+Sans+Code:wght@300;500;600;700;800;400&display=swap" rel="stylesheet">
@import url('https://fonts.googleapis.com/css2?family=Google+Sans+Code:wght@300;500;600;700;800;400&display=swap');
font-family: 'Google Sans Code', monospace;
brew install --cask font-google-sans-code
On this page

Details

Category
Monospace
Weights
6
Italic
✓
Korean
✗
Designer
Google, Universal Thirst
License
OFL
Popularity
#220
Downloads
1,370

License Usage

Web useAllowed
PrintAllowed
Video / BroadcastAllowed
PackagingAllowed
App embeddingAllowed
Brand / LogoAllowed
ModificationAllowed

OFL — Free for personal & commercial use

Language Support

adlam canadian-aboriginal cherokee latin latin-ext math old-permic symbols symbols2 syriac vietnamese

Best For

Code editors Technical docs Web apps Branding UI elements

Articles About Google Sans Code

Frequently Asked Questions

Is the Google Sans Code font free for commercial use?

Yes — Google Sans Code is an open-source font, free to use in personal and commercial projects.

What type of typeface is Google Sans Code?

Google Sans Code is a Monospace typeface. It is offered as a variable font.