# .PPTX MIME Type and Content-Type Header

> Modern PowerPoint presentations — a ZIP archive of XML and media files.

- MIME type: `application/vnd.openxmlformats-officedocument.presentationml.presentation`
- Extensions: .pptx
- Content-Type header: `application/vnd.openxmlformats-officedocument.presentationml.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

- For viewing in a browser without Office, export to PDF.

## Server configuration

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

```
application/vnd.openxmlformats-officedocument.presentationml.presentation pptx;
```

### Apache (.htaccess or server config)

```
AddType application/vnd.openxmlformats-officedocument.presentationml.presentation .pptx
```

### Express

```
res.set("Content-Type", "application/vnd.openxmlformats-officedocument.presentationml.presentation");
```

### Python

```
import mimetypes

mimetypes.add_type("application/vnd.openxmlformats-officedocument.presentationml.presentation", ".pptx")
```

### HTML file input

```
<input type="file" accept=".pptx,application/vnd.openxmlformats-officedocument.presentationml.presentation">
```

## FAQ

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

`application/vnd.openxmlformats-officedocument.presentationml.presentation`.

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

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

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

Check its bytes rather than the extension: PPTX 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.pptx` does this for you.

## Related types

- [.ppt — application/vnd.ms-powerpoint](https://www.devkult.com/mime/ppt.md)
- [.docx — application/vnd.openxmlformats-officedocument.wordprocessingml.document](https://www.devkult.com/mime/docx.md)
- [.xlsx — application/vnd.openxmlformats-officedocument.spreadsheetml.sheet](https://www.devkult.com/mime/xlsx.md)
- [.pdf — application/pdf](https://www.devkult.com/mime/pdf.md)

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