Free Code Minifier
& Beautifier
Paste or drop your HTML, CSS, or JavaScript. Compressed output in one click. Runs in your browser — your code never leaves your device.
What you get
- 100% Private
- Your code never leaves your browser. All processing runs locally — nothing is uploaded.
- Instant
- No server round trips. Process thousands of lines in milliseconds using client-side Terser and custom parsers.
- HTML, CSS & JS
- Accurate minification for all three web languages with inline style and script handling.
- Size Stats
- Byte-level size comparisons, line counts, and percentage reduction after every operation.
- File I/O
- Drag and drop .html, .css, .js, .json, or .txt files. Download output as a named .min file.
- Free
- No account, no limits, no ads. A fast, focused tool that works every time.
How it works
Paste or upload
Type directly, paste from clipboard, or drag and drop a file. HTML, CSS, and JavaScript are auto-detected.
Minify or beautify
Hit the button or use Ctrl+Shift+M / Ctrl+Shift+B. Processing is instant — no loading spinner, no server call.
Copy or download
Copy the output to clipboard or download it as a file. Minified files are named with a .min suffix automatically.
Language-specific minifiers
FAQ
What does minification do to my code?
Minification removes unnecessary characters — whitespace, comments, newlines — without changing how the code runs. The result is a smaller file that loads faster in browsers.
Is my code safe? Does it get sent to a server?
Your code never leaves your device. Everything runs locally in your browser. No data is uploaded, stored, or logged anywhere.
How much can minification reduce file size?
Typical savings are 20-50% for CSS, 30-60% for JavaScript, and 15-30% for HTML. Well-commented source files with generous whitespace see the largest reductions.
What's the difference between minify and beautify?
Minify compresses code for production — smallest possible file size. Beautify formats code for readability — useful for debugging minified third-party code or understanding unfamiliar files.
Does minification change how my code works?
No. Minification only removes redundant characters. Logic, selectors, and functionality stay identical. JavaScript uses Terser, which safely handles variable renaming.
What file types are supported?
MinifyTools supports .html, .htm, .css, .js, .json, and .txt files up to 1 MB. Language is auto-detected, or use the dedicated HTML, CSS, or JavaScript minifier pages.