JavaScript Beautifier
Expand compact JavaScript for review.
Try this example
Load the sample and format it. The return statement is indented, and the space inside the string remains.
function greet(name){return name+"! "}Expected result
function greet(name) {
return name + "! "
}This formatter is for readability. Run your normal tests before replacing production code.
Related walkthrough · Prepare a safe test copy before using an online tool