JavaScript Formatter & Minifier

Turn minified JS back into readable code to analyze its logic, or compress your own code before shipping it.

Indent:
Input code
Result

Use cases

  • De-obfuscating third-party JS to understand its logic
  • Compressing code before a production deploy
  • Quickly formatting a snippet pasted from chat or docs

FAQ

Is this a full Terser-level minifier?

This is a lightweight minifier for basic compression (whitespace, comments). For aggressive production bundle optimization, use a bundler with Terser.

Is it safe to paste someone else's code here?

Yes, the code is only parsed as text for formatting — it is never executed.

Related tools