devkult_
tools30converters34
home/mime/.odp

.odp MIME type

OpenDocument presentationdocuments

application/vnd.oasis.opendocument.presentation

LibreOffice Impress presentations — the OpenDocument counterpart to .pptx.

MIME typeapplication/vnd.oasis.opendocument.presentation
Extensions.odp
Content-Typeapplication/vnd.oasis.opendocument.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

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

Serve .odp files with the right type

The response header to send:

Content-Type: application/vnd.oasis.opendocument.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.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">

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.odp | grep -i '^content-type:'
file --mime-type file.odp

Frequently asked questions

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

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