Skip to main content

application/zip

application

The MIME type for ZIP archive files. Use with Content-Disposition: attachment;filename='archive.zip' for download endpoints. application/zip is the correct IANA-registered type; application/x-zip-compressed and application/x-zip are legacy variants still accepted by most parsers.

Details

application/zip is the IANA-registered type for ZIP archives. RFC 1951 defines the deflate compression algorithm used by ZIP.

Common non-standard variants (still widely encountered): application/x-zip-compressed – Windows IIS legacy application/x-zip – legacy application/octet-stream – when type is unknown

All of the above are generally accepted by ZIP parsers and browsers, but use application/zip for new implementations.

File download: Content-Disposition: attachment;filename="archive.zip" is essential to prevent browsers from attempting to open or preview ZIP files.

Common use

Archive downloads, bulk export endpoints, dependency bundles

See Also