JavaScript Beautifier
Paste minified JavaScript and format it with proper indentation.
Input
Output
About JavaScript Beautifier
The JavaScript Beautifier unminifies and reformats compressed JavaScript code into a readable, properly indented format. When you need to inspect third-party scripts, debug minified source code, or understand how a library works, this tool makes the code human-readable in seconds.
It handles ES5, ES6+, and modern JavaScript including arrow functions, async/await, destructuring, and template literals. You can configure the indentation size and choose between tabs and spaces.
Useful alongside browser DevTools when source maps aren't available.
Features
- ✓Unminifies and reformats compressed JavaScript
- ✓Configurable indentation (2 spaces, 4 spaces, or tabs)
- ✓Supports ES5 through ES2022+ syntax
- ✓Handles arrow functions, async/await, destructuring
- ✓One-click copy of formatted output
Common Use Cases
- →Reading minified third-party library source code
- →Debugging compiled JavaScript without source maps
- →Understanding obfuscated scripts
- →Reviewing auto-generated JavaScript