Runs locally
JavaScript Formatter
Format with Prettier or minify with Terser.
Ctrl+Enter runs. Ctrl+Shift+Backspace clears.
Export and import are available after you sign in. Sign in
Your code is formatted or minified locally. It is not executed.
About this tool
Read minified JavaScript from a bundle, tidy a snippet before sharing it, or compress a script. The code is parsed and printed in your browser and never runs.
How to use it
- 01
Paste the JavaScript.
- 02
Choose format or minify.
- 03
Copy the result.
FAQ
Frequently asked questions
Is my code executed?
No. It is only parsed and printed; nothing in it runs.
Does it support modern syntax?
Yes. Modern JavaScript such as arrow functions, classes, async/await and modules is supported.