devkult_
tools29converters34
home/mime/.pptx

.pptx MIME type

PowerPoint presentationdocuments

application/vnd.openxmlformats-officedocument.presentationml.presentation

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

MIME typeapplication/vnd.openxmlformats-officedocument.presentationml.presentation
Extensions.pptx
Content-Typeapplication/vnd.openxmlformats-officedocument.presentationml.presentation
Compress in transit?No — already compressed
File signature50 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:

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">

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.

Related types

Headers that go with it: Content-Type · Content-Disposition · X-Content-Type-Options