Paste your JavaScript and click Prettify to format it with clean indentation, or Minify to compress it by removing comments and collapsing whitespace. The output auto-formats as you type. Everything runs locally in your browser.
JavaScript Prettify / Minify
Format or compress JavaScript
Output will appear here...Related Tools
Get weekly dev tools and tips