# .ODP MIME Type and Content-Type Header

> LibreOffice Impress presentations — the OpenDocument counterpart to .pptx.

- MIME type: `application/vnd.oasis.opendocument.presentation`
- Extensions: .odp
- Content-Type header: `application/vnd.oasis.opendocument.presentation`
- Compress in transit: no (already compressed)
- File signature: `50 4B 03 04` (the ZIP signature — this format is a ZIP archive inside)

## Good to know

- Like every OpenDocument file, it's a ZIP archive whose first entry, `mimetype`, names the exact type.

## Server configuration

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

```
application/vnd.oasis.opendocument.presentation odp;
```

### Apache (.htaccess or server config)

```
AddType application/vnd.oasis.opendocument.presentation .odp
```

### Express

```
res.set("Content-Type", "application/vnd.oasis.opendocument.presentation");
```

### Python

```
import mimetypes

mimetypes.add_type("application/vnd.oasis.opendocument.presentation", ".odp")
```

### HTML file input

```
<input type="file" accept=".odp,application/vnd.oasis.opendocument.presentation">
```

## FAQ

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

`application/vnd.oasis.opendocument.presentation`.

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

`Content-Type: application/vnd.oasis.opendocument.presentation`. It's already compressed, so servers shouldn't gzip it.

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

Check its bytes rather than the extension: ODP files start with `50 4B 03 04` (`PK..`) — the ZIP signature — this format is a ZIP archive inside. On the command line, `file --mime-type name.odp` does this for you.

## Related types

- [.pptx — application/vnd.openxmlformats-officedocument.presentationml.presentation](https://www.devkult.com/mime/pptx.md)
- [.odt — application/vnd.oasis.opendocument.text](https://www.devkult.com/mime/odt.md)
- [.ods — application/vnd.oasis.opendocument.spreadsheet](https://www.devkult.com/mime/ods.md)
- [.pdf — application/pdf](https://www.devkult.com/mime/pdf.md)

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