Binary & system · .pkg

How to open a .pkg file

If double-clicking a PKG file did nothing useful, that is normal: this extension carries no standard structure, so there is nothing for a generic viewer to hand off to. This page explains the format and gives you a way to read one immediately.

What is a .pkg file?

macOS Installer Package is a binary & system format developed by Apple, first appearing in 2001. It is normally produced by macOS software distribution.

A XAR archive with install scripts and a payload. Signed packages are verified by Gatekeeper before anything executes.

Full namemacOS Installer Package
File categoryBinary & system
MIME typeapplication/x-newton-compatible-pkg
Magic bytes (file signature)78 61 72 21 (xar!)
DeveloperApple
Introduced2001
Usually created bymacOS software distribution
OpenAnyFile engineuniversal hex inspector
Opens without uploadYes — parsed locally in your browser

Open a .pkg file in your browser

OpenAnyFile routes .pkg to its universal hex inspector, which inspects a byte-level hex and ASCII dump alongside the detected signature, exact size and type analysis.

  1. Open the OpenAnyFile opener in this browser — nothing to download or sign up for.
  2. Drag your .pkg file onto the drop zone, click to browse for it, or paste it with Ctrl+V.
  3. The extension is detected and the file is handed to the universal hex inspector.
  4. Your PKG opens on its own viewer page: a byte-level hex and ASCII dump alongside the detected signature, exact size and type analysis.
  5. Use fullscreen for a closer look, or download the file back out unchanged. Free, and free in the sense that there is no paid tier waiting behind step three.

What you can and cannot do with it here

Works

Viewing, inspecting and verifying. You get a byte-level hex and ASCII dump alongside the detected signature, exact size and type analysis. File details, exact byte size and the detected signature are always shown.

Does not work

Full-fidelity rendering. This extension has no standard structure, so you get a byte-level inspection rather than a rendered view.

Why your {ext} file is never uploaded

Most online viewers work by sending your file to their server, processing it there, and leaving a copy behind on infrastructure you do not control. OpenAnyFile does not. Your .pkg file is read through the browser's local File API and decoded by JavaScript and WebAssembly running on your own machine. There is no upload step and no server-side copy — open your browser's network tab while you do it and watch: the file never appears.

Frequently asked questions about PKG files

Can I open a .pkg file without installing special software?

Yes. OpenAnyFile's universal hex inspector runs in your browser, so you can read a PKG file with nothing installed. You get a byte-level hex and ASCII dump alongside the detected signature, exact size and type analysis. It will not replace the original application for editing, but it answers 'what is in this file' in seconds.

How can I check a file really is a PKG file?

Look at the first bytes rather than the extension. A genuine PKG begins with 78 61 72 21 (xar!). Opening the file in OpenAnyFile shows that signature in the file-details panel, so a file renamed to .pkg by mistake is easy to spot.

Is it safe to open a PKG file online?

With OpenAnyFile, yes, because nothing is uploaded. The file is read locally through your browser's File API and never leaves your device, so there is no server copy to leak, log or retain. That matters most for the kind of file people are least willing to hand to a random converter site.

What is a .pkg file, exactly?

macOS Installer Package — an application/x-newton-compatible-pkg format created by Apple since 2001. A XAR archive with install scripts and a payload. Signed packages are verified by Gatekeeper before anything executes.

Does the same viewer handle formats related to PKG?

Yes — the same engine also opens .dll, .doc, .exe, so you can compare related files without switching tools.

Related formats

These open with the same engine, so if you have one of these sitting next to your .pkg file, it will open too:

⚡ Open your .pkg file now All 300 file types