Fira Code font

A monospaced coding font built on Fira Mono, with ligatures that join arrows and operators into single symbols.

Fira Code is a free monospace font by The Mozilla Foundation and others. It has 5 styles and 1,846 glyphs and covers 28 languages, plus Cyrillic and Greek. It is a variable font with a weight axis. Fira Code is licensed under the SIL Open Font License 1.1, so it is free for personal and commercial use. The download is a zip with the original font file and the license text.

Monospace 5 styles, variable by The Mozilla Foundation, Telefonica S.A., Nikita Prokopov OFL

Monospace5 stylesOFL

Fira Code

AaBbCc 0123

Set live in Fira Code, straight from the font files.
Designers
The Mozilla Foundation, Telefonica S.A., Nikita Prokopov
Classification
Monospace
License
SIL Open Font License 1.1
Styles
5 5 weights
Variable font
Yes Weight 300–700
Glyphs
1,846
Languages checked
28 see the list
Last updated
version 5.002
Used for
CodeTech

Official source: Google Fonts. Facts on this page were read from the font files and the source’s published data.

Try Fira Code

Sample text

Type over the sample to test your own words. The preview loads a Latin subset of Fira Code; the download contains the complete files.

Monospace, 5 styles, OFLvafont.com

Fira Code

ABCDEFGHIJKLMNOPQRSTUVWXYZ

abcdefghijklmnopqrstuvwxyz

0123456789 & @ ? ! % ( ) { } “ ”

The quick brown fox jumps over the lazy dog, then packs five dozen liquor jugs into a box.

Weights and styles

  • Light 300Fira Code Light
  • Regular 400Fira Code Regular
  • Medium 500Fira Code Medium
  • SemiBold 600Fira Code SemiBold
  • Bold 700Fira Code Bold

Fira Code is a variable font: the download holds the whole weight range in one file, and the named weights above are positions on that range.

About Fira Code

Type the characters for an arrow, an assignment operator or less-than-or-equal in Fira Code and each sequence is drawn as one joined symbol. That is the point of this monospaced face: it takes Fira Mono and adds programming ligatures. Some of them simply adjust the gap inside frequent pairs such as a double dot or double slash. Nothing changes in the file you save, since the text underneath is still plain ASCII. The zero has a mark inside, the i has serifs, and l and 1 are clearly different.

Weight can be set anywhere from 300 to 700, and five instances are named, from Light up to Bold. No italic exists. Its 1,846 glyphs take in Latin, Greek and Cyrillic as well as a symbols set. The Fira Code Project Authors hold the copyright.

Where Fira Code works

Programming in an editor
Operators made of several characters, like arrows and comparisons, are drawn as one symbol and read as one token.
Command-line work
Every character has the same width, and the zero, the l and the 1 are easy to tell apart in paths and output.
Code on slides
The heavier weights keep a snippet legible when it is projected in a talk or a workshop.
Code with Greek or Russian comments
Greek and Cyrillic are both in the font, so comments in those scripts keep the fixed character width.
Logs and config files
With five weights a tool can show keys or log levels in a heavier style without breaking the grid.

Glyphs

!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~¡¢

Latin and Latin Extended characters in the preview subset; the complete family has 1,846 glyphs. Select a glyph to see its code point.

Language support

The family contains the core letters these languages are written with:

  • English
  • French
  • German
  • Spanish
  • Portuguese
  • Italian
  • Dutch
  • Swedish
  • Norwegian
  • Danish
  • Finnish
  • Icelandic
  • Catalan
  • Turkish
  • Polish
  • Czech
  • Slovak
  • Hungarian
  • Romanian
  • Croatian
  • Slovenian
  • Lithuanian
  • Latvian
  • Estonian
  • Russian
  • Ukrainian
  • Bulgarian
  • Greek

Writing systems with glyphs in the family besides Latin: Cyrillic, Greek. Listed as scripts, not as a promise for every language written in them.

Character sets found in the files: cyrillic, cyrillic-ext, greek, greek-ext, latin, latin-ext, symbols2. The language list is a check of required letters against the font, not a promise of typographic quality in each language.

License

SIL Open Font License 1.1Copyright 2014-2020 The Fira Code Project Authors (https://github.com/tonsky/FiraCode)

What the license allows

  • Use the fonts in personal and commercial work, in print, on the web and in apps.
  • Modify the fonts and build new versions from them.
  • Redistribute the fonts, on their own or bundled with software, as long as the license text and copyright notice go with them.

Conditions

  • The fonts cannot be sold by themselves.
  • A modified version must stay under the same license and cannot use a Reserved Font Name without the copyright holder's permission.
  • The authors' names cannot be used to promote a modified version without permission.

A short summary, not legal advice. The license text decides: read the full OFL text. A copy is included in the download.

Fonts that pair with Fira Code

Fira Sans Sans Serif

Fira Code is built on Fira Mono, the fixed-width member of the Fira family, so code blocks sit naturally next to Fira Sans in docs.

Suggestions follow simple rules: a contrasting classification and enough weights to carry body text. Treat them as a starting point.

Use Fira Code on the web

Download the family, put the files on your own server and declare them in CSS. Please do not link to files on vafont.com: the previews here are subsets and their addresses change.

CSS, self-hosted
@font-face {
  font-family: "Fira Code";
  src: url("/fonts/FiraCode-VariableFont_wght.ttf") format("truetype");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

body {
  font-family: "Fira Code", monospace;
}

Or load it from the official source. Google Fonts serves Fira Code with this markup:

HTML, Google Fonts

Things to know

Uprights only
There is no italic. Editor themes that italicise comments will produce an artificial slant.
Ligatures are optional
They are an OpenType feature, so you can turn them off in your editor or with CSS and see the plain characters.
Source text stays the same
Ligatures only change the display. Copying or saving the code keeps the ordinary ASCII characters.

FAQs

Can I use Fira Code at work or in paid projects?

Yes. Under the SIL Open Font License 1.1 it can be used in personal and commercial work, modified and redistributed. The font may not be sold on its own, and edited versions keep the same license.

Who is responsible for Fira Code?

It extends Fira Mono and is credited to Nikita Prokopov along with The Mozilla Foundation and Telefonica S.A. The name table also lists Carrois Corporate and Edenspiekermann AG, and the copyright belongs to The Fira Code Project Authors.

How do the Fira Code ligatures work?

Frequent character sequences in code, such as arrows or a less-than-or-equal sign, are shown as one joined glyph, and spacing is corrected for pairs like two dots. The file still contains plain ASCII.

What weights are available in Fira Code?

Five, from Light 300 through Regular, Medium and SemiBold to Bold 700, in one variable file with a weight axis from 300 to 700. There is no italic.

Which scripts does Fira Code cover?

Its 1,846 glyphs include Latin, Cyrillic and Greek, so Turkish, Polish and German work as well as Bulgarian, Ukrainian, Russian and Greek.

What fonts are similar to Fira Code?

Free monospace fonts close to Fira Code in use include Roboto Mono, Space Mono, IBM Plex Mono, Google Sans Code and Geist Mono. Each is listed on this page with the uses it shares.

Collections with Fira Code

Fonts similar to Fira Code

These free monospace families are the closest to Fira Code in the library by classification and shared uses. Use them as alternatives when you need a different weight range or a slightly different tone.

Other monospace families, ordered by shared uses. All monospace fonts