application/zip

The MIME type for Zip archive data, Numpy Arrays Archive, and NuGet Package. The top-level type application declares binary or application-specific data that a program, rather than a person, is expected to interpret; the subtype names the format.

Formats with this MIME type

  • ZIP · Zip archive data · .zipSignature 50 4B 03 04 (PK..) · details
  • NPZ · Numpy Arrays Archive · .npzSignature 50 4B 03 04 (PK..) · details
  • NUPKG · NuGet Package · .nupkgSignature 50 4B 03 04 (PK..) · details

Where the MIME type comes from, and why it can be wrong

A MIME type is a label attached by whoever sends the file: a web server picks it from the file extension, an email client from the attachment name, an upload form from whatever the browser guessed. None of them read the content. A renamed file, a misconfigured server, or a deliberate disguise all produce a confident, wrong label.

To see what a server actually sends, and then what the file actually is:

# The declared type, from the HTTP headers
curl -sI https://example.com/file.zip | grep -i content-type

# The real type, from the bytes (macOS and Linux)
file --mime-type file.zip

Or drop the file on our detector, which reports the type the bytes support and the MIME type that goes with it, without uploading anything.

Setting it correctly on a server

# Nginx (mime.types or a location block)
types { application/zip zip npz nupkg; }

# Apache (.htaccess)
AddType application/zip .zip .npz .nupkg

# Any HTTP response
Content-Type: application/zip