Dev tools
JS Minifier
Compact JavaScript using Terser parsing in your browser. Compression and variable renaming are disabled; syntax errors are reported instead of producing output.
JavaScript minifier
Parse and compact JavaScript with Terser. Variable renaming and compression optimizations are disabled. Test the output in your application before deployment.
About this tool
Paste JavaScript and choose Minify JavaScript. Terser parses it and prints compact code, preserving string contents and syntax-sensitive boundaries. Parse failures are displayed as errors and do not become copyable output.
Variable mangling and compression optimizations are disabled. Some license comments are retained. This is a JavaScript tool, not a TypeScript or JSX compiler; test generated code in its intended runtime before deployment.
Frequently asked questions
Does it rename variables or compile TypeScript?
No. Variable mangling and compression are disabled, and TypeScript/JSX compilation is not provided.