JavaScript

Beautify JS

Make JavaScript easier to read with stable indentation.

What does this tool do?

This tool makes JavaScript easier to read with simple line breaks and indentation.

HTTP/HTTPS up to about 1.5 MB
Allowed: .js, .mjs, .txt
Show / hide explanation of the options

Remove comments: Removes JavaScript comments while preserving strings, template strings and RegEx literals.

Priority: If URL and upload are both provided, the upload wins. Then URL, then the text field.

Note: If URL and upload are both provided, the upload wins. Content is processed as UTF-8.