HTML Runner

JavaScript Beautifier

Format browser JavaScript with a parser so nested expressions and blocks are easier to inspect.

How to use JavaScript Beautifier

Paste JavaScript and select Format. Try it on a nested object or a function with multiple branches.

Limitations

The tool uses a JavaScript parser. It does not transpile syntax or check that identifiers exist.

Frequently asked questions

Will it run my source?

Formatting parses the source locally. Use JavaScript Runner to execute it.

Test your web code in the live HTML workspace.

Related resources