.pptx MIME type
PowerPoint presentationdocuments
application/vnd.openxmlformats-officedocument.presentationml.presentationModern PowerPoint presentations — a ZIP archive of XML and media files.
| MIME type | application/vnd.openxmlformats-officedocument.presentationml.presentation |
|---|---|
| Extensions | .pptx |
| Content-Type | application/vnd.openxmlformats-officedocument.presentationml.presentation |
| Compress in transit? | No — already compressed |
| File signature | 50 4B 03 04 (PK..) the ZIP signature — this format is a ZIP archive inside |
Good to know
- For viewing in a browser without Office, export to PDF.
Serve .pptx files with the right type
The response header to send:
Content-Type: application/vnd.openxmlformats-officedocument.presentationml.presentation
Most servers pick the type from the file extension. If yours sends the wrong one, map it explicitly:
application/vnd.openxmlformats-officedocument.presentationml.presentation pptx;
AddType application/vnd.openxmlformats-officedocument.presentationml.presentation .pptx
res.set("Content-Type", "application/vnd.openxmlformats-officedocument.presentationml.presentation");import mimetypes
mimetypes.add_type("application/vnd.openxmlformats-officedocument.presentationml.presentation", ".pptx")<input type="file" accept=".pptx,application/vnd.openxmlformats-officedocument.presentationml.presentation">
Check it
See what a server sends for a file, and what type a local file really is by its contents:
curl -sI https://example.com/file.pptx | grep -i '^content-type:' file --mime-type file.pptx
Frequently asked questions
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.
Headers that go with it: Content-Type · Content-Disposition · X-Content-Type-Options