# .woff MIME Type: font/woff

> The original web font format, zlib-compressed. Superseded by WOFF2.

- MIME type: `font/woff`
- Extensions: .woff
- Content-Type header: `font/woff`
- Compress in transit: no (already compressed)
- File signature: `77 4F 46 46`

## Good to know

- Only needed as a fallback for very old browsers; WOFF2 is smaller.

## Server configuration

### nginx (inside the types block in mime.types)

```
font/woff woff;
```

### Apache (.htaccess or server config)

```
AddType font/woff .woff
```

### Express

```
res.set("Content-Type", "font/woff");
```

### Python

```
import mimetypes

mimetypes.add_type("font/woff", ".woff")
```

### HTML file input

```
<input type="file" accept=".woff,font/woff">
```

## FAQ

### What is the MIME type for .woff files?

`font/woff`.

### What Content-Type header should a .woff file be served with?

`Content-Type: font/woff`. It's already compressed, so servers shouldn't gzip it.

### How can I tell if a file is really a .woff?

Check its bytes rather than the extension: WOFF files start with `77 4F 46 46` (`wOFF`). On the command line, `file --mime-type name.woff` does this for you.

## Related types

- [.woff2 — font/woff2](https://www.devkult.com/mime/woff2.md)
- [.ttf — font/ttf](https://www.devkult.com/mime/ttf.md)

Open the interactive page: https://www.devkult.com/mime/woff