PKG to TXT Converter

Convert installer packages (PKG) to TXT online for free

Secure Private 2,000+ daily conversions Free

Drop or upload your .PKG file

How to convert your PKG file to TXT

  1. Click the "Select File" button above, and choose your PKG file.
  2. You'll see a preview.
  3. Click the "Convert file to..." button and download the TXT file.

High Quality Conversion

Our advanced conversion technology delivers accurate PKG conversions while preserving quality and integrity of your packages.

Secure and Private

Your data is protected by strict privacy policies and access controls. Uploaded PKG packages and converted TXTs are deleted immediately after conversion.

Easy to Use

Upload your PKG file to preview it in your browser and download it as a TXT. No registration, watermarks, or software installation required.

PKG to TXT Conversion Explained

Converting .PKG to .TXT changes a macOS installer package into a plain text document. This process does not create a functional text-based installer. Instead, it extracts the metadata, file lists, and installation scripts from the package and saves them as readable text. People convert pkg to txt to inspect what an installer will do to a system before running it. You gain complete transparency into the installation process, but you lose the ability to install the software. The binary payload—the actual application files—is discarded. This conversion is a bad idea if your goal is to install or run the software.

Typical Tasks and Users

This conversion serves specific diagnostic and security workflows:

  • Security Researchers: Inspecting suspicious installers for malware by reading the pre-install and post-install scripts.
  • System Administrators: Auditing software deployments to verify exactly which directories a package will modify.
  • Software Developers: Debugging their own package builds to ensure the Bill of Materials (BOM) lists the correct file paths.
  • IT Support: Documenting the contents and behavior of legacy installers for compliance logs.

Software & Tool Support

You can inspect, extract, or convert .PKG files using native command-line utilities or third-party applications:

  • macOS Native Tools: Apple includes pkgutil to expand packages and lsbom to read binary Bill of Materials files in the terminal.
  • Suspicious Package: A free macOS application by Mothers Ruin Software that provides a graphical interface to inspect package contents and export scripts.
  • Pacifist: A paid shareware tool by CharlesSoft that opens macOS packages and allows text extraction of package info.
  • Archive Utilities: Because modern .PKG files are often XAR archives, tools like 7-Zip or The Unarchiver can unpack the raw XML and script files, though they cannot parse binary BOM files into text.

Pros and Cons of the Conversion

Pros:

  • Transparency: Reveals hidden scripts and exact file paths the installer will write to the disk.
  • Security: Allows you to read executable scripts safely without triggering them.
  • Searchability: Converts complex archive structures into a single text file that you can easily search using standard tools like grep.
  • File Size: The resulting .TXT file is tiny compared to the original .PKG, as all heavy binary assets are removed.

Cons:

  • Loss of Functionality: The resulting text file cannot install the software.
  • Data Loss: All application binaries, images, and compiled code are permanently stripped during the conversion.
  • Loss of Structure: Complex directory trees are flattened into simple text lists, which can be difficult to read for massive installers.

Conversion Difficulties & Why Convert.Guru

Converting a .PKG to a .TXT file is technically complex because a modern macOS package is a compressed XAR archive containing multiple different file types. Inside the archive, the file list is stored as a binary Bom (Bill of Materials) file, the metadata is stored in XML, and the payload is often a gzip-compressed cpio archive. A simple text editor cannot open a .PKG. The conversion pipeline requires unpacking the XAR archive, parsing the XML metadata, using specialized libraries to decode the binary BOM into readable text, and concatenating the installation scripts.

Convert.Guru handles this entire pipeline automatically. It safely unpacks the archive, decodes the binary components, extracts the relevant scripts and file paths, and formats them into a clean .TXT file. This allows you to audit macOS packages from any operating system, including Windows or Linux, without needing access to Apple's native command-line tools.

PKG vs. TXT: What is the better choice?

Feature PKG TXT
Primary Purpose Software installation and deployment Text storage and reading
Format Structure Compressed binary archive (XAR) Unformatted plain text
Executability Yes (via macOS Installer) No
Human Readable No Yes
Contains Binaries Yes No

Which format should you choose?

Choose .PKG when you need to distribute software, deploy updates, or install applications on a macOS system. It is the standard format for Apple software deployment.

Choose .TXT when you need to document the contents of an installer, share installation scripts with a security team for review, or keep a lightweight audit log of package behaviors. Avoid converting to .TXT if you are trying to extract the actual application (like the .app bundle) to use it; in that case, you should extract the payload directly instead of converting the package to text.

Conclusion

Converting .PKG to .TXT makes sense only for security auditing, debugging, and documentation. The biggest limitation to watch for is the complete destruction of the installer's functionality and the loss of all software binaries. Convert.Guru is a reliable choice for this exact conversion because it bypasses the need for macOS-specific command-line tools, automatically parsing complex binary archives and BOM files into a single, readable text document.


FAQ

Convert.Guru also easily converts PKG packages (Software Installation Package) to various formats - free and online. No Blender or extra software needed.

Convert the PKG locally and export to TXT using Blender software or a reliable desktop converter — no internet needed. The easiest way is to open the PKG file in the software on your computer and then save it as a TXT file in the File menu under Save as...



About the PKG to TXT Converter

Convert.Guru makes it fast and easy to convert installer packages to TXT online. The PKG to TXT converter runs entirely in your browser, so there’s no software to install and no account required. Powered by one of the industry’s largest and most trusted file format databases—maintained for more than 25 years—our technology reliably identifies PKG packages even when they are damaged or incorrectly named. Uploaded files are automatically deleted after conversion to protect your privacy.