Developer · DEV-15Submit an issue

JavaScript formatter

Format or minify JavaScript with configurable indentation.

JS format / minify · Custom indentation
Input
Result
Usage guide and examples

JavaScript formatter

Format or minify JavaScript with configurable indentation.

Check the input format and options with this example before using your own data. Random values, file sizes and presentation vary with the input and settings.

Example input and settings

function add(a,b){return a+b;}

What to check in the result

function add(a, b) {
  return a + b;
}