Developer & Data

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

  1. Try this sample input first: const n={a:1};.
  2. Choose or adjust the options this tool provides; leave unrelated settings at their defaults.
  3. Run the tool and read any validation or status message. Correct the input format before trying again if needed.
  4. 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

Sample input
const n={a:1};
Sample output
const n = { a: 1 };