JS Formatter
Format and beautify JavaScript code
How to use
- Paste your JavaScript code.
- It's reformatted with clean indentation and consistent spacing.
- Copy the readable code back into your editor.
Why use this tool
- Readable code: Re-indents minified or messy JavaScript into something you can actually read.
- Consistent style: Helpful for inspecting third-party or compiled scripts.
- 100% private: Everything runs in your browser. Your data is never uploaded to a server, so it's safe for confidential content.
Frequently asked questions
Does formatting change behaviour?
No. It only changes whitespace and layout; your code's logic is untouched.
Can it un-minify code?
It re-indents minified code so it's readable, though original variable names can't be recovered if they were mangled.
Is my code uploaded?
No. Everything runs in your browser, so proprietary code stays private.
Back to all tools