JavaScript Formatter & Minifier

Format and beautify JavaScript code or minify it for production. Remove whitespace and improve readability.

Features

Format

  • • Proper indentation
  • • Improved readability
  • • Customizable indent size
  • • Line breaks after statements

Minify

  • • Remove comments
  • • Remove extra whitespace
  • • Reduce file size
  • • Production-ready

Note: This is a basic formatter. For production minification, consider using tools like Terser or UglifyJS which handle variable renaming and advanced optimizations.