About JavaScript Beautifier
Paste minified, obfuscated, or poorly-formatted JavaScript and get clean, readable code in a single click. The tool uses the open-source js-beautify library and runs entirely in your browser — your code never leaves your device.
Key Features
- Full ES6+ support — arrow functions, template literals, destructuring, async/await
- Tabs or spaces with adjustable indent size (1–8)
- Four brace styles: collapse, expand, end-expand, none
- Optional line wrapping at a custom column
- Preserve or collapse existing line breaks
- Space before anonymous function parentheses toggle
- Copy or download the formatted output
How to Use
- Paste your JavaScript code in the input area
- Adjust formatting options in the side panel
- Click Beautify
- Copy or download the result
When Is This Useful?
- Reading minified production bundles or third-party scripts
- Cleaning up auto-generated or transpiled code
- Standardising formatting before a code review
- Converting between brace or indentation styles
Privacy
All processing happens locally. No code is uploaded, stored, or shared. Safe for proprietary and sensitive projects.