🐍 Python Obfuscator

Transform your Python code with base64 string encoding, identifier renaming, and minification. Quick, powerful, and effective.

Input Python Code
Paste your script to obfuscate
âš ī¸ Experimental
Minify Code Remove comments & whitespace
Encode Strings Convert to base64
Rename Identifiers Functions, variables, classes
Important Note: This tool uses text transformations rather than a full parser. It works best on smaller scripts and may not handle all edge cases. Always backup your original code before obfuscating.
Obfuscated Output
Copy or download the result
🔒 Obfuscated
Restoration Note: The restore feature attempts to decode base64 and revert simple renames. Success is not guaranteed for all obfuscated code.