DEVELOPER TOOLS · LOCAL ONLY

JavaScript Formatter

Re-indent JavaScript by braces and semicolons to restore readability.

Up to 200,000 characters. Conservative token-based layout, not an AST formatter, and the code is never executed.

Format
1 lines · 72 bytes
0 lines · 0 bytes
Run the tool to see the result

Up to 200,000 characters. Conservative token-based layout, not an AST formatter, and the code is never executed.

How to use

Re-indent JavaScript by braces and semicolons to restore readability.

Expand minified or single-line JavaScript into readable indentation to quickly understand what a third-party snippet does. Strings, template literals, and regular expressions are never touched, and `};` and `});` stay on one line. For full style normalisation, still use an AST tool such as Prettier.

Limits and privacy

Up to 200,000 characters. Conservative token-based layout, not an AST formatter, and the code is never executed.

Everything runs inside this browser. Your input is never uploaded, stored, or written to the URL or any log.