JavaScript Code Formatter
JavaScript Code Formatter Paste minified, messy, or compressed JavaScript and get back a clean, consistently formatted version you can actually read. The formatter is token-aware — it understands string literals, template literals, regular expressions, and comments, so it never accidentally reformats the inside of a regex or rearranges your ${...} interpolations. Everything runs in your browser, so the code you paste never leaves your machine. How to Use Paste your JavaScript into the input box. Pick your indentation, quote style, and semicolon policy. Choose a brace style (1TBS or Allman) and a trailing-comma policy. Set a target print width — long object literals and arrays are split to fit. Copy ...
ツールを試す »