.zip MIME Type: application/zip

Files ending in .zip (ZIP archive) use the MIME type application/zip.

Updated

application/zip
MIME type for .zip
Archives
Category
No
Compress with gzip/Brotli

What is the MIME type of .zip files?

The MIME type (media type) for ZIP archive files with the .zip extension is application/zip. You may also see application/x-zip-compressed. Already compressed. Windows sometimes reports application/x-zip-compressed for uploads — accept both.

Content-Type header

Content-Type: application/zip

Server configuration

ServerConfiguration
Nginx (mime.types or types {})application/zip zip;
Apache (.htaccess)AddType application/zip .zip
IIS (web.config)<mimeMap fileExtension=".zip" mimeType="application/zip" />
Node.js / Expressres.type('zip') or res.setHeader('Content-Type', 'application/zip')
Amazon S3Set Content-Type: application/zip on the object (metadata), or pass --content-type application/zip to aws s3 cp

Should .zip files be compressed?

No. ZIP archive files are already compressed internally, so gzip or Brotli would waste CPU and barely reduce — sometimes even increase — the size. Leave application/zip out of your compression configuration.

Why the MIME type matters

Browsers decide what to do with a response — render, run, play or download — from the Content-Type header, not the file extension. With X-Content-Type-Options: nosniff, a wrong type causes stylesheets and scripts to be blocked outright. For uploads, never trust the type sent by the client; check the file’s content (its magic bytes) on the server.

MIME type lookupSearch every common file extension and MIME type, with copy-ready Content-Type headers.
Search all MIME types

Frequently asked questions

What is the MIME type for .zip?
application/zip. Alternatives seen in the wild: application/x-zip-compressed.
How do I set the Content-Type for .zip in Nginx?
Make sure application/zip zip; is listed in the types block (usually in /etc/nginx/mime.types) and reload Nginx.
Should I gzip .zip files?
No — the format is already compressed, so HTTP compression gives no benefit.