JavaScript Minifier
Remove comments and redundant whitespace from JavaScript without ever touching strings or risking an ASI bug.
Result
- Saved
- —
- Size
- —
How it works
- Variable names are not renamed, so the output stays readable and debuggable.
- Comments are removed and indentation collapsed; line breaks are kept by default so ASI behaviour is unchanged.
- Strings, template literals and regular expressions are copied byte-for-byte.