What is a PEX file?
A .PEX file is most often a compiled Papyrus game script used by the Bethesda Creation Engine. Game developers and modders use these files to add logic, quests, and behaviors to games like Fallout 4.
The .PEX extension also has other uses. It can be a Python executable archive created by the Pex packaging tool. It might also be a protocol analyzer trace file from Teledyne LeCroy. Other possibilities include a Merak Peep Data File associated with Merak, a business plan project file for Project Expert, or a portable exhibit file from Thomson West.
How to open PEX files?
To view and edit game scripts, you cannot open a .PEX file directly in a standard text editor. You must use a community decompiler tool like Champollion to convert it back into a readable .PSC source file. If your file is a Python executable archive, you can run it directly using the command line with standard Python.
Because .PEX has multiple possible meanings, viewer.online/pex can analyze .PEX files to identify the exact format and creator software, inspect the file structure, extract readable text, and check whether an online preview is available.
Best practices and troubleshooting
If a .PEX file does not open, you must first confirm its origin. Attempting to decompile a Python archive or a Merak Peep Data File with a game modding tool will fail. Use a file analysis tool or check the source location of the file to determine the correct application. Always keep backups of original .PEX scripts before you modify game directories.
Software and tools
For game modding, the Bethesda Creation Kit and community command-line tools like Champollion are standard. For software development, the Pex tool builds standalone Python environments. For hardware analysis, engineers use the PETracer software suite.
Summary
viewer.online/pex is useful for identifying, inspecting, and understanding .PEX files without installing software or dealing with compatibility problems. It is the fastest way to check the actual format of your file.