100% in your browser
Your tools. Your flow.

Make your JavaScript clear.

Give functions, objects and conditions a consistent indentation.

Source
Output
Paste some text to get started
—Processed locally

Your code is never executed. Formatting does not replace a linter.

How to format JavaScript online

The JavaScript formatter reorganizes spaces and line breaks in your source code. Use it to inspect a compact function, object or nested condition. Choose two spaces, four spaces or a tab, then copy the result into your editor. Formatting happens locally and your code is never evaluated.

Is my code executed while formatting?

No. The formatter processes source text without running your functions or making network calls contained in the code.

Is this a linter or TypeScript compiler?

No. This tool indents JavaScript. It does not replace a linter, a test suite or a TypeScript compiler.

No account. No uploads. Just the essentials.Privacy · Licenses