Developer Tools

JavaScript formatter

Indent braces or strip spare space. It does not run the script.

In the browser

Formatting stays in this tab. It indents braces. It is not a full JavaScript parser.

About this tool

Indent JavaScript braces or strip extra space.

Paste script you are allowed to read. Indent adds line breaks after braces and semicolons. Minify drops spare space outside quotes. Strings and template quotes are left alone.

This is not a full parser. Code with unusual layout can still look odd. It does not run the script and it does not prove the code is valid.

Read the privacy line on this page before you use the result in public.

Quick steps

  1. Indent JavaScript braces or strip extra space.
  2. Paste script you are allowed to read. Indent adds line breaks after braces and semicolons. Minify drops spare space outside quotes. Strings and template quotes are left alone.
  3. This is not a full parser. Code with unusual layout can still look odd. It does not run the script and it does not prove the code is valid.

Read the privacy line on this page before you use the result in public.

FAQ

Indent JavaScript braces or strip extra space.

Paste script you are allowed to read. Indent adds line breaks after braces and semicolons. Minify drops spare space outside quotes. Strings and template quotes are left alone.

This is not a full parser. Code with unusual layout can still look odd. It does not run the script and it does not prove the code is valid.

Read the privacy line on this page before you use the result in public.

A useful next step

Site policies: Privacy · Terms