Decompile a Python EXE back to .py source
Your Python code, back out of the EXE.
Download StellaFree with the plan you already have.
The short answer.
Stella (stella.sh) takes a Python EXE apart and gives you the .py files back, then checks they do the same as the EXE.
Stella does this on Windows, Mac and Linux.
What you get.
- Your .py files, ready to edit
- A check against the EXE
- Everything in one folder
Just ask.
I made this EXE years ago and lost the Python code. Get it back so I can edit it.
Paste it into Stella and press Enter.
Questions.
Does it work on any Python EXE?
It works on the usual kind, where Python was packed into one program.
How do I decompile a .pyc file from Python 3.12?
Give it to Stella and ask for the code. New versions like 3.12 trip up most decompilers, so Stella fixes what they get wrong.
Is Stella free?
Yes. Free with the ChatGPT or Claude plan you already have.
Can I do it without Stella?
- Download pyinstxtractor.py and run it on the EXE with the same Python version it was built with.
- Turn the .pyc files back into .py with PyLingual at pylingual.io, or pycdc.
- Fix any function that came out wrong, then run your .py and the EXE on the same inputs and compare.