Fira Code

Replaces: Cascadia Code (88%) | OFL-1.1 | Updated: Feb 2026

About Fira Code

Classification
mono
Weights
Variable (100-900)
Features
Variable
SIL Open Font License 1.1

Free to use, modify, and distribute. Can be used commercially without attribution.

What's allowed?
  • Client work
  • SaaS / Web apps
  • YouTube / Video
  • Sell products
  • Print materials

Note: Derivative fonts must use the same license.

Full license guide →
Get Fira Code Free ↗

Fira Code is a free monospace font with programming ligatures, created by Nikita Prokopov based on Mozilla's Fira Mono. It has become one of the most widely adopted coding fonts due to its extensive ligature support and excellent readability.

History and Design

Fira Code was developed by Nikita Prokopov starting in 2014, building on Fira Mono which Mozilla created for Firefox OS. The key innovation was adding programming ligatures—contextual character combinations that render common coding symbols as connected glyphs, making code easier to scan and understand.

Why Fira Code is Popular

Fira Code has earned its position as a developer favorite:

  • Extensive ligatures: Over 100 programming ligatures
  • Mozilla heritage: Built on the solid foundation of Fira Mono
  • Wide adoption: Supported in virtually every code editor
  • Active development: Continuous updates and improvements
  • Variable font: Smooth weight adjustments in supporting applications

Technical Features

  • Weight range: 300-700 (Variable font support)
  • Ligature coverage: Comprehensive set for most programming languages
  • Character variants: Multiple stylistic alternates available
  • Powerline symbols: Built-in support for terminal status lines
  • Broad compatibility: Works in almost every development environment

Best Use Cases

Fira Code excels in:

  • Any code editor: Universal IDE support
  • Terminal and shell: Clean rendering with Powerline support
  • Web development: Popular choice in web dev community
  • Documentation: Code examples that look professional

Usage Tips

Most editors require enabling ligatures in settings. In VS Code, add "editor.fontLigatures": true to settings.json. Use weight 400 for regular coding, 300 for high-density displays, or 500 for streaming/presentations. Fira Code pairs well with Fira Sans for UI text, creating a cohesive type system.

Is Fira Code on Google Fonts?

Yes, Fira Code is available for free on Google Fonts. Get Fira Code on Google Fonts ↗

Alternative For (13)

Fira Code is a free alternative to the following premium fonts:

[Commercial Type] · mono

Comparable technical monospace

View all alternatives
[Berkeley Graphics] · mono

Comparable clean coding font

View all alternatives
[Microsoft] · mono

Similar ligature-rich mono

View all alternatives
#4 Consolas 78%
[Microsoft] · mono

Fira Mono with programming ligatures for enhanced code readability

View all alternatives
[Phil Plückthun] · mono

Popular free option with extensive programming ligatures

View all alternatives
[Font Bureau] · mono

Comparable readable code font

View all alternatives
[GitHub] · mono

Comparable versatile coding font

View all alternatives
#8 MonoLisa 82%
[Marcus Sterz] · mono

Comparable readable coding font

View all alternatives
[Hoefler&Co] · mono

Popular free option with extensive ligatures

View all alternatives
[Fabrizio Schiavi] · mono

Comparable modern code font

View all alternatives
[Arrow Type] · mono

Comparable versatile mono

View all alternatives
#12 SF Mono 88%
[Apple] · mono

Popular coding font with extensive ligature support

View all alternatives
[Google] · mono

Popular monospace with extensive ligature support

View all alternatives

Compare Fira Code

See how Fira Code compares to other fonts side by side.

Variable Font Axes

Fira Code is a variable font with 1 axis you can fine-tune.

Axis Min Default Max
wght 300 400 700

Font Pairings

Fonts that pair well with Fira Code based on contrast and complementary design characteristics.

DejaVu Sans + Fira Code
92/100
sans-serif + mono
Healthcare Enterprise Accessibility
Fira Code + Google Sans Flex
92/100
mono + sans-serif
Enterprise Accessibility
Fira Code + Hind
92/100
mono + sans-serif
Healthcare Enterprise Accessibility
Fira Code + Khmer
92/100
mono + sans-serif
Fira Code + Mulish
92/100
mono + sans-serif
Healthcare Enterprise Accessibility

Performance

Key metrics for evaluating Fira Code in production.

Score
64 /100 Good
File Size
215.2 KB Medium
Weights
9 (variable)
Languages
6 groups CDN delivery

Font Metrics

x-Height Ratio
0.527
Cap Height Ratio
0.689
Ascender
1980
Descender
-644

Fallback CSS Overrides

Apply these overrides to Courier New to minimize layout shift when loading Fira Code.

@font-face {
  font-family: 'Fira Code Fallback';
  src: local('Courier New');
  ascent-override: 99%;
  descent-override: 32.2%;
  line-gap-override: 0%;
  size-adjust: 105.3%;
}
woff2 Measured via Google Fonts API Metrics extracted from WOFF2

How to Use Fira Code

Copy these code snippets to quickly add Fira Code to your project.

Quick Start

CSS code for Fira Code

@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@100..900&display=swap');