Google Sans Code
Google Sans Code
The quick brown fox jumps over the lazy dog
ABCDEFGHIJKLMNOPQRSTUVWXYZ
abcdefghijklmnopqrstuvwxyz
0123456789 & ? ! @ # % ( )
The download comes from the Fontsource open-source font project and includes every style with its licence file.
Test Google Sans Code
The quick brown fox jumps over the lazy dog
About Google Sans Code
Google Sans Code is a monospace typeface by Google and Universal Thirst, a variable font with weights from 300 to 800. It is currently number 249 among the most used families on Google Fonts. It was added to Google Fonts on 26 February 2025.
| Category | Monospace |
|---|---|
| Designers | Google and Universal Thirst |
| Weights | Any weight from 300 to 800 (variable) |
| Italics | Yes |
| Other variable axes | MONO |
| Character sets | Adlam, Canadian aboriginal, Cherokee, Latin, Latin Extended, Math symbols, Old permic, Symbols, Syriac, Vietnamese |
| Last updated | 1 October 2026 |
| Licence | SIL Open Font License 1.1 |
Can I use Google Sans Code commercially?
Yes. Google Sans Code is published under the SIL Open Font License 1.1. Free for personal and commercial use.
You can
- Use it in any project, paid or unpaid: logos, products, packaging, books, apps, websites and video.
- Embed it in documents, apps and web pages.
- Modify it or build a new font from it.
- Share it with other people.
You must
- Not sell the font files on their own.
- Keep the copyright notice and licence with the font when you pass it on.
- Release any modified version under the same licence, and give it a different name if the original name is reserved.
This is a summary, not legal advice. The licence text included in the download is what applies. See how font licensing works on this site.
Use Google Sans Code on a website
From Google Fonts
Add these lines inside the head of your page:
<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:wght@400;700&display=swap" rel="stylesheet"> Self-hosted with npm
Install the package, then import it once in your JavaScript or CSS entry file:
npm install @fontsource-variable/google-sans-code
import "@fontsource-variable/google-sans-code"; Then set it in CSS
body {
font-family: "Google Sans Code", ui-monospace, Menlo, Consolas, monospace;
} If you installed the variable npm package, the family name to use is Google Sans Code Variable.
To install it on your computer instead, download the family above and follow the guide to installing fonts on Windows or on a Mac.
Writing systems
Besides Latin, Google Sans Code includes:
Fonts similar to Google Sans Code
Other free monospace families with a comparable style and range of weights.
Fonts that pair with Google Sans Code
Suggestions chosen for contrast: a different kind of typeface that can take the other role on the page.