Font files come in several formats, each with a different extension

A font extension is the three or four letters at the end of a font file's name — like .ttf, .otf, or .woff — that tells your computer what kind of font file it is. Different extensions work on different devices and in different programs. The extension matters because some fonts only work on Windows, some only on Mac, and some work everywhere. Websites also use different extensions than desktop programs do.

The most common extensions you'll encounter are .ttf (TrueType), .otf (OpenType), .woff (Web Open Font Format), and .woff2. Each one has a specific purpose, and picking the wrong one means the font won't display or won't install at all.

Key Takeaways

  • .ttf and .otf are the standard formats for installing fonts on your computer and work on both Windows and Mac.
  • .woff and .woff2 are compressed formats designed for websites and load faster than desktop font files.
  • Windows can install .ttf files directly by double-clicking them, while Mac requires dragging them into the Font Book application.
  • If a website uses a font you like, it's usually a .woff or .woff2 file embedded in the page code, not a file you can download and use elsewhere.
  • Font files with the same name but different extensions are often the same typeface in different formats — you only need one version for your use case.

TrueType (.ttf) and OpenType (.otf) for desktop use

.ttf (TrueType Font) and .otf (OpenType Font) are the two formats you'll use most often when installing fonts on your computer. Both work on Windows and Mac, and both can be installed by double-clicking the file (on Windows) or dragging it into Font Book (on Mac). The difference between them is technical: .otf files can hold more advanced features like alternate characters and special ligatures, while .ttf files are simpler but still work fine for everyday use.

For most people, the choice between .ttf and .otf doesn't matter. If you're downloading a font from a foundry or a site like Google Fonts, you'll usually get both versions. Pick whichever one is offered, or if both are available, either one will work. The .otf format is slightly newer and more flexible, but .ttf is just as reliable and has been around longer.

WOFF and WOFF2 for websites

.woff (Web Open Font Format) and .woff2 are compressed formats built specifically for websites. They're smaller than .ttf or .otf files, so web pages load faster. If you see a .woff or .woff2 file, it's almost always embedded in a website's code, not meant to be downloaded and installed on your computer.

Web developers use .woff2 when they can because it's more compressed, but they often include .woff as a backup for older browsers. You don't need to do anything with these files — your browser handles them automatically when you visit a website that uses them. If you want to use a font you see on a website, you'll need to find the original .ttf or .otf file from the font creator, not try to extract the .woff version from the page.

Other formats you might encounter

.eot (Embedded OpenType) is an older format that only works on Internet Explorer, and you're unlikely to see it on modern websites. .svg (Scalable Vector Graphics) fonts are sometimes used on the web but are less common than .woff2. .dfont is a Mac-specific format from older versions of macOS and doesn't work on current systems.

If you download a font and it has one of these less common extensions, check whether the website or program you're trying to use it in actually supports that format. Most modern software supports .ttf and .otf, so if you have a choice, those are your safest bet.

How to tell what format a font file is

The extension is always the last part of the filename, after the final period. A file named "Helvetica.ttf" is a TrueType font. A file named "Georgia.otf" is an OpenType font. On Windows, file extensions are usually visible by default. On Mac, extensions are hidden by default, but you can see them by right-clicking the file and selecting "Get Info," then looking at the "Kind" field.

If a file has no visible extension, or if you're not sure what format it is, you can right-click it and check the file properties (Windows) or Get Info (Mac). The properties will tell you the file type. You can also try opening it with a font manager or attempting to install it — your computer will usually tell you if the format isn't supported.

Installing fonts with different extensions

On Windows, .ttf and .otf files can be installed by right-clicking the file and selecting "Install" or by double-clicking it and clicking the Install button. The font will then appear in all your programs. On Mac, drag the font file into the Font Book application (in Applications > Utilities), and it will be installed system-wide.

If you try to install a .woff or .woff2 file on your computer, it won't work — these formats are only for websites. If you try to install a .eot or .svg file on a modern Mac, it also won't work. Stick to .ttf or .otf for desktop installation, and let your browser handle .woff and .woff2 files automatically.

Choosing the right format when downloading fonts

When you download a font from a site like Google Fonts, DaFont, or a professional foundry, you'll usually see multiple format options. For desktop use, download the .ttf or .otf version. For a website, download the .woff2 version if it's available, with .woff as a backup. Most font sites let you choose which format you want, so pick based on where you're using the font.

If a site only offers one format and it's not what you need, you can sometimes convert fonts using free tools, but conversion isn't always perfect and may not preserve all the font's features. It's usually easier to find a different source for the font in the format you actually need.

Frequently Asked Questions

Can I use a .woff font file on my computer like a regular font?

No. .woff and .woff2 files are designed only for websites and won't install on Windows or Mac. If you want to use a font on your computer, you need the .ttf or .otf version. Check the font creator's website to see if they offer a desktop version.

What's the difference between .ttf and .otf in practice?

.otf can store more advanced typographic features, but for everyday use, both work identically. Most people won't notice a difference. If both are available, pick either one — they'll look the same in your documents and programs.

Why do some fonts have multiple files with different extensions?

Font creators often package the same typeface in multiple formats so it works everywhere — .ttf and .otf for desktop, .woff2 for websites. You only need one version for your use case. Download the one that matches where you're using the font.

If I download a font file and it won't install, how do I know if it's a format problem?

Check the file extension first. If it's .ttf or .otf, try installing it again or restarting your computer. If it's .woff, .woff2, .eot, or another web format, that's why it won't install — you need a desktop version instead. Contact the font creator if you can't find a .ttf or .otf version.

Can I rename a .woff file to .ttf to make it work on my computer?

No. Renaming the file doesn't change what it actually is — it's still a web font, and your computer won't be able to use it. You need an actual .ttf or .otf file from the font creator. Renaming won't convert the format.