FreeUtilFreeUtil

JavaScript Formatter & Minifier

Format and minify JavaScript code. Beautify with Prettier or minify with Terser. All client-side.

Formatted or minified output will appear here

About This Tool

Format JavaScript with Prettier for clean, consistent code style, or minify with Terser to reduce file size for production. Everything runs in your browser — no code is sent to any server.

Features

  • Format with Prettier: consistent indentation, semicolons, and trailing commas.
  • Minify with Terser: compression, dead code elimination, and name mangling.
  • Size stats showing original size, output size, and savings percentage.
  • Configurable indentation (2 or 4 spaces).