Code / FREE ONLINE TOOL
JavaScript Minifier & Beautifier
Minify JavaScript online with Terser to make files smaller, or beautify minified JavaScript to make it readable again. Supports modern syntax and keeps license comments.
QUICK GUIDE
How to use this tool
Paste JavaScript and choose Format or Minify. Minify removes whitespace and comments, shortens local names and simplifies code; check ES module for code with import or export. Test minified code before you deploy it.
Your input is processed locally. Use Copy or Download to keep your result.
Keep your workflow moving
Need another step? Try a related tool.