Code Minifier & Beautifier

Minify or beautify CSS, JavaScript, and HTML. Shows file size savings instantly.

About Code Minifier & Beautifier

Minify and beautify CSS, JavaScript, and HTML online. CSS minifier and beautifier, JS minifier and formatter, HTML minifier — all in one free tool. No installation required.

How to Use

  1. 1Select the language: CSS, JavaScript, or HTML.
  2. 2Select the mode: Minify (compress) or Beautify (format). HTML only supports Minify.
  3. 3Paste your code into the Input box.
  4. 4Click the action button — output appears instantly with a size comparison badge.
  5. 5Click Copy to copy the result to clipboard.

Frequently Asked Questions

What languages are supported?
CSS (minify + beautify), JavaScript (minify + beautify), and HTML (minify). All processing happens in your browser — no server involved.
How much does minifying reduce file size?
Typical results: CSS 30–60% smaller, JS 40–70% smaller, HTML 20–50% smaller depending on how much whitespace and comments the original file had.
Is the JavaScript beautifier accurate?
It produces clean, indented output for most code. For very complex or minified production bundles, use a dedicated tool like Prettier for best results.
Does it remove all comments?
Minify mode strips all CSS and JS comments. For HTML it removes <!-- --> comments but preserves IE conditional comments (<!--[if ...]>).