Fonts by use

Free monospace and typewriter fonts for coding

Code fonts have strict requirements: every character the same width, zero and the letter O clearly different, and shapes that stay distinct at 12–14 px on a screen for hours. This collection brings together monospace and typewriter faces that meet those needs for editors and terminals, plus technical-looking sans serifs for developer tools, documentation and tech branding.

Install the font on Windows, macOS or Linux and select it in VS Code, JetBrains IDEs, iTerm, Windows Terminal or your editor of choice. Download is free; most code-oriented fonts are released under open licenses that allow any use.

hand-picked fonts
24
download, no signup
Free
Windows & Mac
TTF / OTF

24 fonts for monospace fonts for coding

Ranked by fit for this use, then by popularity. Every font has a preview page and a free download.

Advertisement

Setting up a comfortable coding font

Run editors at 13–14 px with line height around 1.4–1.5; monospace faces look cramped at the default 1.2. Enable ligatures only if the font supports them and you like them. Check the characters that matter: 0 vs O, 1 vs l vs I, and the braces and quotes. For presentations and documentation, use the same font at 18 px or larger so screenshots stay readable.

Questions about monospace fonts for coding

What is the best free font for programming?
Any well-hinted monospace font with distinguishable 0/O and 1/l/I and a comfortable x-height. Preferences vary; try two or three from this collection for a week each.
Do these fonts work in VS Code and terminals?
Yes. Install the TTF or OTF on your system and set the font family name in the editor or terminal settings; a restart of the app picks it up.
Can I use a monospace font for a tech company logo?
Monospace and typewriter faces are a common choice for developer tools and tech brands. For a logo, check the license in the ZIP for commercial use.
All collections