uncompyle6 review
A focused, open-source choice for recovering Python source across many bytecode generations.
Reviewed by iTechGuides Editors · Editorial team · Updated Oct 2026
uncompyle6 is an open-source command-line tool and Python library that translates Python bytecode into equivalent Python source code. It is aimed at developers working with compiled Python files, reverse engineering, debugging workflows, and bytecode analysis. Its strongest fit is for teams handling legacy or multi-version Python artifacts, especially when the workflow needs both a local command-line interface and library access.
Its main distinction is breadth across Python bytecode generations. The published feature set covers Python 1.4, 2.1–2.7, and 3.0–3.8, along with some PyPy bytecode versions. uncompyle6 can also decompile fragments around a bytecode offset and provide associated offset details, which suits targeted investigation rather than only whole-file conversion. The separate bytecode-tokenization and disassembly command adds a lower-level inspection path, while the --syntax-verify option provides a direct way to check generated code syntax.
The product stays deliberately narrow: it is centered on Python bytecode and does not provide native-code decompilation. It is distributed under the GNU GPL-3.0-or-later license and is intended for local installation through Python packaging or project releases, so its fit depends on the surrounding Python workflow and distribution requirements. Choose uncompyle6 when cross-version Python coverage, fragment decompilation, command-line operation, and bytecode analysis matter most. Consider another category tool when the work involves native binaries or a broader platform and integration ecosystem.
uncompyle6 pros and cons
- Where it wins
- Supports Python bytecode from 1.4, 2.1–2.7, and 3.0–3.8
- Handles some PyPy versions and fragments around bytecode offsets
- Combines CLI decompilation, syntax verification, and disassembly
- Where it doesn't
- Focuses on Python bytecode rather than native code
- Has no AI-assisted features
- GPL-3.0-or-later licensing may not fit every distribution model
uncompyle6 fact sheet, pricing and score →
Advertiser disclosure: iTechGuides is reader-supported. Vendors can pay for top positions in our rankings and for a place on other products' pages, and we may earn a commission when you click some links. Bought places stand at the number bought; this page and our disclosure say so. Paying vendors may get a fuller, more detailed review from our editors, and that review can change their score. How we rank.
Last updated · How we research and update