HTML Formatter
Beautify HTML with consistent indentation.
Format CSS for readability or minify it to save bytes.
Runs in your browser. Your input is never uploaded.
Paste CSS.
Choose Beautify or Minify and indentation.
Copy or download.
Input
a{color:red;margin:0}b{padding:4px}Output
a {
color: red;
margin: 0
}
b {
padding: 4px
}Beautify HTML with consistent indentation.
Beautify or minify-whitespace JavaScript code.
Convert colors between HEX, RGB and HSL.
It strips comments and whitespace safely. For production builds use your bundler’s optimizer.
Basic nesting is tolerated, but it is designed for plain CSS.
No.
Paste or type input above, or press Sample to see an example.