Developer Tools

Code Minifier / Beautifier

JavaScript Beautifier

Reformat messy JavaScript code.

JavaScript0 chars
JavaScript rapi

Guide & explanation

The JavaScript Beautifier reflows minified or messy code so it is readable again. Behaviour does not change — only whitespace, line breaks, and indentation.

Example

const f=(a,b)=>{return a+b};if(f(1,2))console.log("ok")

becomes

const f = (a, b) => {
  return a + b;
};
if (f(1, 2)) console.log("ok");

Options

  • Indentation — 2, 4 spaces, or tab.
  • Brace style — attached () {) or on its own line.

Useful for reading a production bundle or normalising style before review.