Minify, unminify and obfuscate code; batch files into a ZIP.
Drop files here
or click to browse · up to 20 files · JS, CSS, HTML
Similar Tools
JSON Formatter & Validator
Pretty-print, minify & validate JSON.
Hash & Encoder
MD5, SHA-256 & Base64.
SQL Formatter
Format messy SQL, dialect presets, Python/PHP export.
Built with privacy in mind. All processing happens entirely in your browser using open-source libraries.
What is the Code Minifier?
Minification removes unnecessary whitespace, comments and line breaks from JavaScript, CSS and HTML, shrinking files for faster page loads. This tool also unminifies formatted code back into a readable layout and offers a JavaScript obfuscator for when you need a little extra obscurity.
Smaller files mean faster websites and lower bandwidth bills. Since processing is local, proprietary code and configuration never leave your computer, and the batch mode sequentially minifies up to 20 files and packages them into a single ZIP.
How to use the Code Minifier?
- Select the code type: JavaScript, CSS or HTML.
- Paste your code and click Minify, Unminify, or Obfuscate JS.
- For batch work, drop multiple files and download the ZIP.
Frequently Asked Questions (FAQ)
Is the Code Minifier free?
Yes, free with no signup or limits.
Is my code uploaded?
No. Minification and obfuscation happen entirely in your browser.
Can I process many files at once?
Yes, drop up to 20 files and download them all as one ZIP.
Which languages and file types are supported?
JavaScript (Terser), CSS (clean-css) and HTML (html-minifier-terser). Batch mode accepts .js, .css, .html and .txt files, up to 20 at a time.
Does it detect the code type automatically?
Yes. When you paste more than 50 characters, the tool auto-selects JavaScript, CSS or HTML; you can always override it with the dropdown.
Can I undo minification?
Yes. The Unminify tab beautifies minified JavaScript, CSS or HTML into a readable layout; stripped comments are not restored and obfuscated code cannot be fully reversed.