Skip to content
OT

JavaScript Beautifier

Free No sign-up Nothing stored

Indent and tidy JavaScript so it is easy to read.

Output

How to use

  1. 1 Paste your JavaScript (minified or messy) into the Input box.
  2. 2 Choose the indent size and where opening braces go.
  3. 3 Press Beautify, then Copy the result.

Example

Input

function hi(n){return 'Hi '+n}

Output

function hi(n) {
  return 'Hi ' + n
}

Related tools