JavaScript Formatter & Minifier
Format JavaScript for review or minify it for compact text output.
№ 025Runs locally
What this tool does
JavaScript Formatter & Minifier. Format JavaScript for review or minify it for compact text output.
When to use it
Use it to make a snippet easier to inspect or remove formatting before embedding it.
How to use
- Try this sample input first: const n={a:1};.
- Choose or adjust the options this tool provides; leave unrelated settings at their defaults.
- Run the tool and read any validation or status message. Correct the input format before trying again if needed.
- Check whether the result matches the example output: const n = { a: 1 };. Then copy or download it.
Your input and files are processed in this browser. They are not uploaded by this toolbox.
Input and output example
const n={a:1};const n = { a: 1 };