MONOSPACED SYSTEM SANS SERIF · FREE ALTERNATIVES

Free fonts similar to SF Mono

When code on a website looks like it is set in SF Mono, the site is almost always asking for the system monospace, so Apple devices draw SF Mono and everyone else gets Consolas, Menlo or another local font. If code blocks should look the same everywhere, you need a monospace you are allowed to serve.

Short answer: the closest free alternative to SF Mono is JetBrains Mono. IBM Plex Mono is also worth a look. All are open source and free for commercial use.

SF MonoTHE ORIGINAL

SF Mono is not installed on this device, so it cannot be drawn here. The free alternatives below are live. On a device that has it, this row shows the original and unlocks the overlay.

JetBrains MonoCLOSEST MATCH
let font = "SF Mono"
IBM Plex MonoFREE ALTERNATIVE
let font = "SF Mono"
MAKE IT YOURS
/* JetBrains Mono is open source. Self-host it or load it from Google Fonts. */
font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

The alternatives in detail

1. JetBrains Mono

Why it works. A modern coding font with simple, slightly squared shapes, a tall x-height and eight weights with italics.

What differs. Taller x-height and wider letters, and it includes coding ligatures. Turn them off with font-variant-ligatures if you want plain characters.

Open JetBrains Mono on Google Fonts ↗

2. IBM Plex Mono

Why it works. A crisp, engineered monospace with a wide weight range and true italics.

What differs. More personality: slab-like serifs on letters such as i and r, a dotted zero and a cursive-flavored italic.

Open IBM Plex Mono on Google Fonts ↗

How to recognize SF Mono

Designed in-house by Apple and introduced in 2016 as the monospaced member of the San Francisco family. It is used in Xcode and Terminal.

  • The CSS says ui-monospace or SFMono-Regular at the start of a long monospace stack.
  • The same compact, slightly squared curves and flat stroke endings as SF Pro.
  • A slashed zero and a wide range of weights, from light to heavy.

In a site’s CSS it may appear as SFMono-Regular, SF Mono Regular, ui-monospace, San Francisco Mono. Not sure what you are looking at? Identify the font on the live page first.

Is SF Mono free?

Apple offers it as a free download for developers, but the license only covers mock-ups of software interfaces for Apple platforms. It cannot be embedded as a web font. Websites get it on Apple devices by asking for ui-monospace or SFMono-Regular in the font stack.

The alternatives on this page are open source, so you can use them on commercial sites, self-host the files and ship them in products. Read more in font licensing in plain English.

Use JetBrains Mono in your CSS

Put the free font first and keep sensible fallbacks behind it. Self-hosting the files is the most private and usually the fastest option.

@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

body {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}
One rule per weight you host. Adjust the file paths to match. Pairing it with a second face? Try the font pairing playground.

Saw a font you can’t place, or can’t afford?

Font Inspector names the font on any website in one click. For popular paid and system fonts it suggests free look-alikes right in the panel.

Add to Chrome

Questions & answers

What is the closest free font to SF Mono?+

JetBrains Mono is the closest free alternative to SF Mono. A modern coding font with simple, slightly squared shapes, a tall x-height and eight weights with italics. IBM Plex Mono is also worth testing.

Is SF Mono free to use?+

Apple offers it as a free download for developers, but the license only covers mock-ups of software interfaces for Apple platforms. It cannot be embedded as a web font. Websites get it on Apple devices by asking for ui-monospace or SFMono-Regular in the font stack.

What Google Font looks like SF Mono?+

On Google Fonts, the nearest matches are JetBrains Mono and IBM Plex Mono. All are open source and free for commercial use. None is an exact copy, so compare them with your own text first.

How can I tell whether a website uses SF Mono?+

Inspect the text. Browser DevTools show the rendered font in the Computed tab, and the Font Inspector extension shows the family, the rendered font and free look-alikes in one click.