Safely remove comments and extra whitespace from your JavaScript while keeping strings, template literals and regular expressions intact. Watch the size savings update live and copy or download the result.
A real tokenizer understands strings, template literals and regexes — your code is never mangled.
Line breaks are kept by default so automatic semicolon insertion continues to work exactly as before.
Live byte counts and savings percentage update as you edit the source code.
Copy the result or download it as a .min.js file, ready to drop into your build.
Format CSS, validate JSON or encode Base64.
CSS Minifier