← All tools

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…

Each input: 1 MiB UTF-8; output: 2 MiB. Loading stops after 15 seconds; processing after 2 seconds. Content stays local, without uploads or storage.

Enter input or load a sample, then run.

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 →