Skip to main content

What is a monospace font?

Updated November 2026

A monospace font, also called a monospaced or fixed-width font, gives every character the same width: an i takes as much space as an m. That makes columns of text line up, which is why code editors, terminals and tables of numbers use them. For ordinary reading, proportional fonts, where each letter has its own width, are easier on the eye.

Monospace vs proportional fonts

MonospaceProportional
Character widthAll the sameVaries by letter
Columns line upAlwaysOnly with tabular figures
Reading long textSlower, uneven textureFaster, even texture
Typical useCode, terminals, logs, IDsBody text, headings, UI labels
ExamplesJetBrains Mono, Courier, ConsolasInter, Arial, Times New Roman

When to use a monospace font

  • Code, in editors and in documentation.
  • Terminals and logs.
  • IDs, hashes, serial numbers and API keys, where every character counts.
  • Tables where numbers and text must align by character.
  • Retro or technical styling in headings.

Only need numbers to line up?

Many proportional fonts include tabular figures: digits that all share one width while letters stay proportional. In CSS, font-variant-numeric: tabular-nums turns them on. That is usually better than switching a whole dashboard to a monospace font.

Monospace fonts in CSS

code, pre, kbd {
  font-family: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
}
.amount {
  font-variant-numeric: tabular-nums;
}

Popular monospace fonts

Classic system fonts include Courier New, Consolas, Menlo and SF Mono. Free modern choices include JetBrains Mono, Fira Code, Cascadia Code, Source Code Pro, IBM Plex Mono, Geist Mono and Monaspace. See our list of the best fonts for coding for how they compare.

Design a fixed-width font

Start from a preset in Font Studio and tune width and spacing. Free in ExodeUI.

We make ExodeUI. Free Community plan; Professional is $5 a month, billed yearly.

Frequently asked questions

What does monospace mean?
Every character in the font takes up the same horizontal space.
Is Courier a monospace font?
Yes. Courier and Courier New are classic monospace fonts based on typewriter lettering.
Is Arial monospace?
No. Arial is proportional: an i is much narrower than an m.
Why do programmers use monospace fonts?
Indentation and alignment stay exact, and similar characters are easier to tell apart, which matters when a single character changes what code does.
What is the monospace generic font family in CSS?
monospace is a CSS generic family. Put it last in your font-family list so the browser falls back to a fixed-width font if yours fails to load.
Is a monospace font good for body text?
Usually not. The uneven texture slows reading. Use it for short technical text or as a deliberate style.

Sources