The best monospace Google Fonts for coding
A coding font needs clear differences between look-alike characters (0 and O, 1, l and I), a comfortable x-height and even rhythm across long lines. These monospace families are all free to install in your editor or use for code blocks on the web.
The 10 best free fonts for coding
1.JetBrains Mono
Monospace · variable · italics · #44 on Google Fontsconst pair = { heading, body }; // 0O 1lI
A tall x-height and simple shapes reduce eye strain; includes optional code ligatures.
Try it with Inter (curated pairing).
2.Fira Code
Monospace · variable · #276 on Google Fontsconst pair = { heading, body }; // 0O 1lI
Fira Mono with programming ligatures for arrows, comparisons and operators.
Try it with Fira Sans (curated pairing).
3.Source Code Pro
Monospace · variable · italics · #58 on Google Fontsconst pair = { heading, body }; // 0O 1lI
Adobe's clean, open mono; pairs naturally with Source Sans 3 and Source Serif 4.
Try it with Open Sans.
4.IBM Plex Mono
Monospace · 7 weights · italics · #75 on Google Fontsconst pair = { heading, body }; // 0O 1lI
Precise and engineered, with true italics, and part of the Plex superfamily.
Try it with IBM Plex Sans (curated pairing).
5.Roboto Mono
Monospace · variable · italics · #16 on Google Fontsconst pair = { heading, body }; // 0O 1lI
Roboto's monospaced sibling, compact and neutral.
Try it with Rubik (curated pairing).
6.Space Mono
Monospace · 2 weights · italics · #156 on Google Fontsconst pair = { heading, body }; // 0O 1lI
A retro-futuristic mono with character, better for headings than long code.
Try it with Space Grotesk (curated pairing).
7.Inconsolata
Monospace · variable · #84 on Google Fontsconst pair = { heading, body }; // 0O 1lI
A humanist mono designed for printed code listings, with variable widths.
Try it with Roboto.
8.Ubuntu Mono
Monospace · 2 weights · italics · #432 on Google Fontsconst pair = { heading, body }; // 0O 1lI
Narrow and friendly; fits more columns on a small screen.
Try it with Ubuntu.
9.DM Mono
Monospace · 3 weights · italics · #157 on Google Fontsconst pair = { heading, body }; // 0O 1lI
A light, low-contrast mono that sits well beside DM Sans in interfaces.
Try it with DM Sans.
10.Geist Mono
Monospace · variable · italics · #132 on Google Fontsconst pair = { heading, body }; // 0O 1lI
Vercel's mono, drawn alongside Geist for developer tools.
Try it with Geist.