HTML Formatter
Auto-indent and organize HTML markup for better readability.
Minify or prettify CSS code for production and maintenance workflows.
Strip CSS comments and whitespace, or format with 4-space indentation. Everything runs locally in your browser.
Removes /* */ comments, collapses runs of whitespace, strips spaces around {}:;,>~+ and folds `;}` into `}`.
No value-level optimisation: #ffffff is not shortened to #fff, 0px is not reduced to 0, and margin is never collapsed to shorthand — that needs CSS semantics.
Every comment goes, including /*! ... */ blocks conventionally kept for licensing; extract those by hand first if they matter.
Paste the CSS
A whole stylesheet or a fragment; SCSS nesting is out of scope.
Watch the size change
The panel reports byte counts before and after plus the saved percentage.
Copy the result
Output is a single-line stylesheet, ready to inline or save.
This pass only handles whitespace and comments and never parses values. Turning #ffffff into #fff or rgb() into hex requires a full CSS parse to stay safe.
No. It only touches character-level whitespace and never reorders selectors or rules. Nested syntax (SCSS, LESS) is not supported — compile to CSS first.
Auto-indent and organize HTML markup for better readability.
Minify HTML by removing extra spaces and non-essential characters.
Beautify JavaScript code with consistent indentation and spacing.
Minify JavaScript to reduce file size for faster page delivery.
Format, validate, and beautify JSON for easier reading and debugging.
Compress JSON by removing unnecessary whitespace and line breaks.