Babel Formatter
Format common code, data, markup, and document languages locally in your browser.
Format common code, data, markup, and document languages locally in your browser.
Babel Formatter re-indents modern JavaScript by splitting on braces and semicolons and indenting each block by two spaces. It makes minified or one-line snippets readable; it is a lightweight brace-based formatter, not the Babel compiler, so it does not transpile code.