Code Minifier & Beautifier
Minify or prettify HTML, CSS and JavaScript code.
Input (69 bytes)
Output (0 bytes)
Minify or beautify JSON, CSS and HTML code. Reduce file sizes for production, or format minified code for readability — all without leaving the browser.
Key Features
JSON
Full parse-based formatting — guaranteed valid output. Detects and shows parse errors.
CSS
Structural minification removes whitespace and comments; beautification adds readable indentation.
HTML
Minification strips whitespace between tags; beautification re-indents nested elements.
Size Comparison
See before/after byte counts and the percentage size reduction.
How to Use
- 1Select a language tab (JSON, CSS, or HTML).
- 2Paste or type your code in the input panel.
- 3Click Beautify to format, or Minify to compact.