JS Beautify/Minify
Pretty-print or minify JavaScript.
Runs in your browser: what you paste is never uploaded
How to use JS Beautify/Minify
- 1Paste or type your inputUse the box above, or click Sample to try it with an example.
- 2Choose your optionsChoose Beautify or Minify, and the indent size. Syntax errors are reported when minifying.
- 3Copy the resultCopy it with one click. Nothing is sent anywhere.
About JS Beautify/Minify
Make minified or messy JavaScript readable again, or minify your code with variable renaming for smaller bundles.
Frequently asked questions
Can it restore original variable names?
No. Beautifying fixes layout, but names shortened by a minifier can't be recovered.
Is it safe to minify my code here?
Yes. Your code is minified in your browser and never sent anywhere.
Is what I paste sent anywhere?
No. The tool runs entirely in your browser and never sends what you type or paste to a server.
Is it free?
Yes. It's free, with no sign-up and no limits.