Code Obfuscator & Deobfuscator

Upload a file or ZIP archive, or paste code. The language is detected automatically for Python, PHP, JavaScript, HTML and CSS.

Drop files or a ZIP here or click to choose - .py .php .js .html .htm .css .zip - up to 2 MB per file
or paste code

What each language gets

  • Python - source is compressed and encoded inside a one-line exec loader. Runs as before.
  • PHP - comments removed and local variables renamed (token-aware, so strings are untouched), then wrapped in eval. Files with inline HTML are renamed without the wrapper.
  • JavaScript - comments removed (string-aware) and wrapped in an eval loader. ES module files get comment removal only.
  • HTML - inline scripts are wrapped, inline styles minified, HTML comments removed.
  • CSS - comments and whitespace removed.

Obfuscation raises the effort to read or copy code; it is not encryption. Anyone who can run the code can recover it. Keep secrets such as API keys on the server, not in shipped code.