What is a .pkg file?
A .pkg file is an unknown. Its registered MIME type is application/octet-stream, which places it in the application or document family of formats.
PKG is a binary format: the contents are not readable text, so opening it in a text editor shows scrambled characters.
The same format is also saved with the extensions .bin, .bpk, .buffer, .deb, .deploy, .dist.
PKG file format details
| Extension | .pkg |
|---|---|
| Format | Unknown |
| MIME type | application/octet-stream, application/x-xar |
| Category | Application or document |
| Text or binary | Binary |
| File signature | None fixed |
| Registered with IANA | Yes |
| Other extensions | .bin, .bpk, .buffer, .deb, .deploy, .dist |
How to open PKG files
| Windows | PKG files (Unknown) are made by specific software. The reliable way to open one is with the program that created it; a generic viewer will only show raw data. |
|---|---|
| Mac | The same applies on a Mac: look for a Mac version of the program that makes PKG files. |
| iPhone and iPad | Phones rarely open this type of file directly. The viewer above can show what is inside it without installing anything. |
| Android | The same applies on Android. The viewer above shows the first bytes of the file so you can confirm what it is. |
Can you convert a .pkg file?
TapToConvert does not convert PKG files. The usual route is to open the file in the program that made it and use its Export or Save as option.
PKG file FAQ
What is a .pkg file?
A .pkg file is an unknown, with the MIME type application/octet-stream.
How do I open a .pkg file?
With the program that created it. The viewer on this page shows what is inside without installing anything.
Is a .pkg file safe to open?
PKG files hold data rather than programs, but any file from an unknown source can be crafted to exploit the software that opens it. Keep that software up to date. The viewer on this page only reads the bytes and never runs anything.
What is the MIME type of .pkg?
application/octet-stream, and it is also seen as application/x-xar. Web servers send this type so browsers know how to handle the file.
Is PKG a text or binary format?
Binary. Its contents are not readable as text.
File type facts come from the IANA media type registry, the mime-db project and the freedesktop.org shared MIME database.