jsbeautifier
JavaScript unobfuscator and beautifier.
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 jsbeautifieruv
uv add jsbeautifierpoetry
poetry add jsbeautifierInstalling 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
More Utilities packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
charset-normalizerDetects and normalizes text encoding from…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
pluggyPluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
PygmentsPygments is a syntax highlighter that colorizes…
permissive · top 100 on PyPI
sixSix provides utility functions to write Python…
permissive · top 100 on PyPI
cssbeautifierBeautifies, unpacks, and deobfuscates CSS code…
permissive · top 5,000 on PyPI
jsminMinifies JavaScript code by removing…
permissive · top 5,000 on PyPI
css-html-js-minifyMinifies CSS, HTML, and JavaScript files or…
copyleft · top 15,000 on PyPI
beautyshBeautysh automatically formats and beautifies…
permissive · top 15,000 on PyPI
mkdocs-minify-pluginMinifies HTML, JavaScript, and CSS files in…
permissive · top 5,000 on PyPI
minify-htmlMinifies HTML, JavaScript, and CSS in a single…
permissive · top 5,000 on PyPI
rjsminrjsmin minifies JavaScript code by removing…
permissive · top 5,000 on PyPI
pyarmorPyarmor obfuscates Python scripts to protect…
unclear · top 15,000 on PyPI
django-compressorDjango Compressor combines, minifies, and…
permissive · top 5,000 on PyPI
cloakbrowserLaunches a stealth Chromium browser that evades…
permissive · top 15,000 on PyPI