devkult_
tools29converters34
home/mime/.apk

.apk MIME type

Android app packageapps & binaries

application/vnd.android.package-archive

Android app packages. The type tells Android browsers the download is an installable app.

MIME typeapplication/vnd.android.package-archive
Extensions.apk
Content-Typeapplication/vnd.android.package-archive
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

  • Served with a generic type, some Android browsers save the file as .zip or .bin instead.

Serve .apk files with the right type

The response header to send:

Content-Type: application/vnd.android.package-archive

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.android.package-archive apk;
Apache (.htaccess or server config)
AddType application/vnd.android.package-archive .apk
Express
res.set("Content-Type", "application/vnd.android.package-archive");
Python
import mimetypes

mimetypes.add_type("application/vnd.android.package-archive", ".apk")
HTML file input
<input type="file" accept=".apk,application/vnd.android.package-archive">

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

Frequently asked questions

What is the MIME type for .apk files?

application/vnd.android.package-archive.

What Content-Type header should a .apk file be served with?

Content-Type: application/vnd.android.package-archive. It's already compressed, so servers shouldn't gzip it.

How can I tell if a file is really a .apk?

Check its bytes rather than the extension: APK 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.apk does this for you.

Related types

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