JavaScript Formatter & Minifier
Format or minify JavaScript locally with Terser syntax parsing, preserving identifier names and avoiding execution or unsafe comment stripping.
javascript-minifierLOCAL WORKSPACE
Enabling local controls…
If clipboard access is denied, select the read-only output manually. Input HTML, SVG, CSS and JavaScript are never rendered or executed.
How to use this tool
Paste JavaScript and choose Format or Minify. AST serialization adds readable indentation or removes whitespace; both modes remove comments; compression rewrites and name mangling are disabled.
When not to use it
Source is never executed. Keep required license notices separately; comments are removed. TypeScript and JSX require their own compiler.
Read the guide →