JavaScript minifier
Minifies JavaScript with Terser, the minifier most build tools use: dead code removed, names shortened, comments dropped except /*! licences. A syntax error is shown with its line.
- In
- JS
- Out
- JS
Waiting for input
Runs in this tab. The text is not sent anywhere.
Related
Questions
What does "Shorten names" do?
It renames local variables to one or two letters. Exported names and properties are left alone, so the code works the same.
What does "ES module" change?
Top-level names are treated as private to the file and import/export are allowed. Turn it off for a classic script whose globals other scripts use.