CSS: Common web fonts

By Xah Lee. Date: . Last updated: .

Here is a list of fonts that are available on Microsoft Windows and macOS. On linux, a Metrically Compatible Font is available and automatically substituted.

Most common serif, sans-serif, monospace

web safe fonts 2020-11-01 pJGJ8
web safe fonts 2020-11-01 pJGJ8

Common sans-serif font: Arial

/* metrically compatible fonts for arial */
.sans {
 font-family: Arial, Helvetica, Arimo, "Liberation Sans", sans-serif;
}
Helvetica

Year 1957. On Mac since 1980s.

Arial

Year 1992. Microsoft's clone of Helvetica, since Windows 3.1.

Liberation Sans

2007. Linux.

Arimo

Google. ~2013

Common serif font: Times New Roman

/* metrically compatible fonts for Times New Roman */
.x {
 font-family: "Times New Roman", Tinos, "Liberation Serif", serif;
}
Times New Roman

Year 1932. On Mac/Windows since 1990s.

Liberation Serif

Linux. 2007

Tinos

Google. 2013

Common monospace font: Courier New

/* metrically compatible fonts for Courier New */
.x {
 font-family: "Courier New", Cousine, "Liberation Mono", monospace;
}
Courier New

1992. Windows 3.1.

Liberation Mono

Linux. 2007

Cousine

Google, 2013

Default monospace font

on Microsoft Windows

on Mac OS