Convert XAR to ZIP

Turn XAR archives into ZIP. Every stored file is kept as it is, so an installer package gives its Bom, PackageInfo, Payload and Scripts parts with the payload still packed.

Converted in an isolated sandbox on our serversDeleted after 24 hours

Drop XAR files on the dialor turn it to pick what to do

The parts of a XAR, in one ZIP.Every stored file is kept as it is, in a single ZIP file.

  1. What you get

    One ZIP that holds each file stored in the XAR, unchanged. Nothing is rewritten on the way.

    An installer package, which uses the PKG extension, gives its Bom, PackageInfo, Payload and Scripts parts as separate items in the ZIP.

  2. What stays packed

    The Payload is not unpacked. It goes into the ZIP in the same packed form it had in the package, so its contents are not listed as individual files.

  3. When it stops

    If the file cannot be parsed, the conversion stops with input_corrupted. This means the input is not a readable XAR.

    To go the other way, use ZIP to XAR.

XAR and ZIP.What each format is.

The formats

From · XAR

XAR Archive

The archive behind macOS installer packages.

Extensions
.xar .pkg
MIME type
application/x-xar
Kind
Archives
To · ZIP

ZIP Archive

The universal archive. Files and folders in one container with optional compression.

Extensions
.zip
MIME type
application/zip
Kind
Archives

In your code.The same XAR to ZIP conversion through the API, for your app or your agent.

terminal
$ cv convert archive.xar archive.zip
$ cv convert archive.xar archive.zip

Questions.What people ask about XAR to ZIP.

01OF 04

Yes. PKG is one of the extensions of XAR files. The ZIP gives the Bom, PackageInfo, Payload and Scripts parts of the package.

No. The Payload stays packed, exactly as it was stored in the package.

No. Every stored file is kept as it is.

The file could not be parsed. The conversion stops when the input is not a XAR it can read.

More conversions.Other ways in and out of XAR and ZIP.