skillfed

jsbeautifier

JavaScript unobfuscator and beautifier.

jsbeautifier v2.0.3 7.2M downloads/30d#1,776 on PyPI
Permissive license MIT Active released

What it is and what it does

jsbeautifier is a Python package that reformats and deobfuscates JavaScript code. It takes minified, obfuscated, or packed JavaScript and outputs human-readable code with proper indentation and formatting. The package is designed to handle output from popular online obfuscators, making it useful for code analysis, security review, or recovering readable source from minified distributions.

The package has a single runtime dependency on editorconfig and installs with low friction. It has been actively maintained since its initial release in 2013, with recent activity indicating ongoing support.

Use it for:

  • Reverse-engineer minified JavaScript from production websites for security auditing
  • Unpack obfuscated malware samples for analysis and threat intelligence
  • Recover readable source code from packed or compressed JavaScript libraries
  • Format and debug JavaScript that has been processed through online obfuscators
  • Automate beautification of JavaScript in build pipelines or CI/CD workflows

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Beautifies, unpacks, and deobfuscates JavaScript code, including output from popular online obfuscators.

Yes. The package is actively maintained, has low install friction, carries a permissive MIT license, and addresses a specific need in JavaScript analysis and code recovery. No known vulnerabilities. Suitable for developers, security researchers, and automation tasks involving JavaScript code inspection.

Install

jsbeautifier on PyPI

pip

pip install jsbeautifier

uv

uv add jsbeautifier

poetry

poetry add jsbeautifier

Installing jsbeautifier

Before you install

Low install friction with a single runtime dependency (editorconfig). Active maintenance status with a release 45 days ago.

License in practice

MIT license is permissive, allowing commercial and private use with minimal restrictions.

Quickstart

pip install jsbeautifier

import jsbeautifier

beautified = jsbeautifier.beautify('var x=1;var y=2;')
print(beautified)

Verify before relying

  • Whether the package supports modern JavaScript syntax (ES6+, async/await, etc.)
  • Specific obfuscators the package is known to handle effectively
  • Performance characteristics on large or deeply obfuscated files

Package facts

License MIT (permissive)
Python support not specified
Install friction low — pure-Python wheel
Runtime dependencies 1 — editorconfig
Maintenance actively maintained — 45 days since the last release
First released
Downloads 7,177,550/month — #1,776 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: jsbeautifier-2.0.3-py3-none-any.whl

Tags

javascript beautifierjs deobfuscatorunpack minified javascriptjavascript formattercode beautification toolobfuscated code decoderminified js unpack
javascript-toolscode-analysisdeobfuscation

More Utilities packages