Click the "Select File" button above, and choose your PYC file.
You’ll see a preview, if available.
Click the "Convert file to..." button to extract text information.
Convert PYC to another file type
To convert PYC Compiled files to another format, you need CPython or other Developer software.
Convert a file to PYC
To convert other file formats to the "Compiled Python Script" file type, you need software like CPython or a similar tool.
About PYC files
The .PYC file format contains compiled bytecode generated by the CPython interpreter. When a .PY script is executed, Python compiles the source code into a .PYC file and stores it in a pycache directory. This skips the compilation step on future runs, improving load times. Users typically want to convert .PYC back to .PY (decompilation) when the original source code is lost. However, this is a challenging process. .PYC files are heavily tied to the specific Python version used to compile them. Because they are compiled binary data, they lack the original formatting and developer comments. Standard online converters fail because decompilation requires version-specific reverse-engineering algorithms, not a simple format swap. You can use tools like uncompyle6 or decompyle3 to attempt restoring the .PY file, or view the bytecode instructions using Python's built-in dis module. While standard tools fail on binaries, our engine can identify the magic number, inspect the Python version header, and extract readable text when possible.
Convert.Guru analyzes your PYC file, detects the exact format, and lets you read the text inside.
If you want to convert PYC file to PY, EXE, PYTHON, MSI, APP, DMG, DEB, RPM, PKG, RUN, SH or BAT, you can use CPython or similar software from the "Python Bytecode Cache" category. In the File menu, look for Save As… or Export….
To convert JAR, APP, SCR, IPA, COM, AAB, PS1, DMG, VBS, EXE, XAPK or MSI files to PYC, try CPython or another comparable tool in the "Python Bytecode Cache" category.
The PYC Converter Story
The history of Convert.Guru began over 25 years ago in California with Tom Simondi’s file-format database. A former contributor to Space Shuttle development and a software pioneer of the 1980s, Simondi established a trusted resource for file type analysis that was even referenced by Microsoft Windows XP. Today, we use modern technology to process and convert thousands of file formats while continually improving our PYC converter.