CSS Formatter
Beautify or minify CSS stylesheets.
Clean up minified or inconsistent JavaScript.
Runs in your browser. Your input is never uploaded.
Paste your JavaScript.
Choose indentation and brace style.
Press Format and copy or download.
Input
function add(a,b){return a+b}const x=add(1,2);Output
function add(a, b) {
return a + b
}
const x = add(1, 2);Beautify or minify CSS stylesheets.
Beautify HTML with consistent indentation.
Format, beautify and minify JSON with custom indentation.
No. It only reformats text. There is no eval.
No. It formats what it can but is not a linter or compiler.
No. Minifiers discard original names permanently.
A practical tour of the JavaScript array methods you will use daily: map, filter, reduce, find, some, every, flat, sort and more, with examples.
Paste or type input above, or press Sample to see an example.