# .flac MIME Type: audio/flac

> Lossless compressed audio, supported by current browsers.

- MIME type: `audio/flac`
- Extensions: .flac
- Also seen as: `audio/x-flac`
- Content-Type header: `audio/flac`
- Compress in transit: no (already compressed)
- File signature: `66 4C 61 43`

## Good to know

- Roughly half the size of WAV with identical audio.

## Server configuration

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

```
audio/flac flac;
```

### Apache (.htaccess or server config)

```
AddType audio/flac .flac
```

### Express

```
res.set("Content-Type", "audio/flac");
```

### Python

```
import mimetypes

mimetypes.add_type("audio/flac", ".flac")
```

### HTML file input

```
<input type="file" accept=".flac,audio/flac">
```

## FAQ

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

`audio/flac`. You may also see `audio/x-flac`, but `audio/flac` is the one to send.

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

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

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

Check its bytes rather than the extension: FLAC files start with `66 4C 61 43` (`fLaC`). On the command line, `file --mime-type name.flac` does this for you.

## Related types

- [.wav — audio/wav](https://www.devkult.com/mime/wav.md)
- [.mp3 — audio/mpeg](https://www.devkult.com/mime/mp3.md)
- [.ogg — audio/ogg](https://www.devkult.com/mime/ogg.md)

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