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
- 1Select the language: CSS, JavaScript, or HTML.
- 2Select the mode: Minify (compress) or Beautify (format). HTML only supports Minify.
- 3Paste your code into the Input box.
- 4Click the action button — output appears instantly with a size comparison badge.
- 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 ...]>).
Tool Info
- Category
- dev
- Usage
- Unlimited
Related Tools
More dev tools
JSON Formatter
Format, validate, and beautify JSON data.
Base64 Encode/Decode
Encode text to Base64 or decode Base64 to text.
Encoder / Decoder
Encode & decode text with 15+ formats: Base64, URL, Hex, Binary, Morse, ROT13, JWT, SHA-256 and more.
GitHub Repository Scanner
Visualize any public GitHub repo: file tree, stats, README, and contributors.