JavaScript Formatter

Reindent JavaScript and JSX source using parsed tokens while preserving strings and template literals.

How to use it

Fill in the fields and run the tool. Copy the result directly from this page.

Using the javascript formatter

Reindent JavaScript and JSX source using parsed tokens while preserving strings and template literals.

JavaScript source

Frequently asked questions

What do I need to use JavaScript Formatter?

Start with JavaScript source. Use the units and formats shown beside the inputs.

Do I need to create an account?

No. You can browse and use TinyToolbox’s available tools without an account.

Related tools