Weight Regular
Size 42
Tracking 0
const x = await fetch("/api"); if (x.ok) return x.json();
Code preview
const greet = (name) => {
  return `Hello, ${name}!`;
};

async function fetchData(url) {
  const res = await fetch(url);
  if (!res.ok) throw new Error(res.status);
  return res.json();
}

const items = data
  .filter(x => x.active)
  .map(x => x.name);
Confusables
zero / capital O / lowercase o 0 O o
one / lowercase L / capital I / pipe 1 l I |
rn vs m rn m
quotes ' " ` ‘ ’ “ ”
brackets ( ) [ ] { } < >
Use this font
CSS font-family: 'Google Sans Code', monospace;
CDN <link href="https://cdn.onlyfonts.ai/css2?family=Google%20Sans%20Code&display=swap" rel="stylesheet">
WOFF2 Download .woff2
Weights
Aa Bb Cc Dd Ee 0123 Light 300
Aa Bb Cc Dd Ee 0123 Regular 400
Aa Bb Cc Dd Ee 0123 Medium 500
Aa Bb Cc Dd Ee 0123 SemiBold 600
Aa Bb Cc Dd Ee 0123 Bold 700
Aa Bb Cc Dd Ee 0123 ExtraBold 800
OpenType Features (3)
aaltAccess All Alternates
AaBbCcDd 0123
ss01Stylistic Set 1
AaBbCcDd 0123
markmark
AaBbCcDd 0123
Character Map (691 glyphs)
AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz0123456789
Aa
Aa
Regular
Italic
Details
Format truetype
Glyph count 691
Version Version 7.000
Hinting No
Variable No
TTF size 98 KB
WOFF2 size 24 KB
Identifiers
Family Google Sans Code
Style Regular
PostScript GoogleSansCode-Regular
License
License OFL-1.1
Copyright Copyright 2025 The Google Sans Code Project Authors (github.com/googlefonts/googlesans-code)
Source both
Languages (3)
Other (3)
latin latin-extended vietnamese