About the JavaScript Formatter
Minified bundles and one-line snippets are impossible to debug. The JavaScript beautifier restores indentation, line breaks and spacing so the code becomes readable again. It also unpacks common packers such as eval(function(p,a,c,k,e,d)…).
Features
- Beautify minified JavaScript
- Brace style: collapse, expand or end-expand
- Indent with spaces or tabs
- Keep or remove blank lines
- Unpacks common JS packers
How to use it
- Paste JavaScript into the input pane.
- Adjust indentation and brace style.
- Copy or download the beautified code.
Frequently asked questions
Can it restore original variable names?
No. Minifiers rename variables irreversibly. The beautifier restores formatting only; use source maps to recover original names.
Does it work with TypeScript or JSX?
Most TypeScript and JSX formats acceptably, but the beautifier does not fully understand type annotations. For TypeScript projects, Prettier is the better choice.