# Font File Format

> The kind of file a font comes in, such as OTF, TTF or WOFF2.

**Field:** Design  
**Category:** Typography  
**Also known as:** Font Format, TrueType Font, OpenType Font, WOFF, OTF, TTF

## Think of it like

It is like the box a toy comes in. Same toy, a different box for the shop or the post.

## Definition

A font file format is the kind of file a font is saved in. TTF (TrueType) and OTF (OpenType) are the common ones you install on a computer. WOFF and WOFF2 are packed kinds made for websites, so they download faster. The letters inside are the same design. Only the wrapping changes.

## Example

A designer installs Inter as an OTF file on her laptop. The website loads the same font as a WOFF2 file.

## Example code

```css
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter.woff2") format("woff2");
}
```

The web page asks for the small web version of the font, not the desktop file.

## Why it matters

The right format makes a font work in every app and load fast on the web.

## Common mistake

Putting big desktop font files on a website. Use WOFF2, so pages load faster.

## Three principles

- **Desktop files.** OTF and TTF, installed on a computer.
- **Web files.** WOFF2, packed small for pages.
- **Same letters.** Only the wrapping is different.

## Related terms

- [Font](https://learn.benibix.com/term/design/font)
- [Web Font](https://learn.benibix.com/term/design/web-font)
- [OpenType Features](https://learn.benibix.com/term/design/opentype-features)
- [Variable Font](https://learn.benibix.com/term/design/variable-font)
- [Font License](https://learn.benibix.com/term/design/font-license)

## Taught in

- [Web Fonts and Font Loading](https://learn.benibix.com/learn/design-typography/web-fonts-and-font-loading): Typography, 15/17

![A web page on the left asks for fonts in order. First, a WOFF2 file travels from a server and is still loading. Second, the fallback font Georgia is shown on the page meanwhile. Third, the system font is already on the device and needs no download.](https://learn.benibix.com/diagrams/des3-font-loading.svg)

---

Source: https://learn.benibix.com/term/design/font-file-format
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-19
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
