Free · without registration
Minimize JavaScript and format readably
Reduce JavaScript by compact spelling or format it for troubleshooting. The code is parsed locally in a separate worker and never runs.
Entry Processing
Their results
Minimize without renaming variable names
This tool uses Terser for syntax processing. The compressive logic optimization and the renaming of variables are deliberately deactivated. Above all, unnecessary formatting is removed; names remain traceable. This is helpful for the analysis of individual files and the passing on of readable examples. A complete project build can optimize more with additional knowledge about modules and dependencies.
Select Script or ES module
For files with import or export, activate module mode. Regular embedded scripts use the script mode. Syntax errors are reported with row and column as far as the parser provides them. TypeScript and JSX must be translated in advance. The tool does not load any imports, does not perform any functions, and does not access variables of your application.
Formatting does not reconstruct an original source
A compact file can be indented again, but removed comments, previous variable names and the original file structure cannot be retrieved. License comments with /*! or @license or @preserve will be retained. The output does not have a source map. Therefore, keep your actual sources and the reproducible build process.
Local processing and testing after download
You can insert up to 500 KB of UTF-8 or open a file locally. The processing runs in a worker and is terminated if the runtime is too long so that the surface remains operable. Test the downloaded file in your application before replacing an existing production file. Syntax checking alone does not detect runtime errors, missing libraries or browser compatibility issues.
Example of classification
function sum(a, b) { return a + b; } is written compactly without renaming sum, a or b. The function is not called in the tool.
Frequent questions
Is the entered JavaScript code executed?
No. It is only parsed and reissued as text.
Why is the file bigger than some other minifiers?
Logic optimization and renaming are deactivated. The tool focuses on syntax and formatting.
Do TypeScript and JSX work?
No. Translate these languages into regular JavaScript first.