JavaScript beautify / compress
Indent JavaScript for readability or strip whitespace and comments. Best for hand-written code; for production minification, reach for Prettier or Terser.
0 chars
Press Cmd/Ctrl + Enter to beautify, or drop a .js file anywhere on the input.
Result
Result will appear here.