HTML Formatter
Auto-indent and organize HTML markup for better readability.
Compact YAML by removing unnecessary empty lines and spaces.
Removes YAML comments and blank lines while keeping the content. Everything runs locally in your browser.
Line-by-line, with no parsing or rebuilding: comments, trailing spaces and blank lines are removed while indent width, key order and quote style stay exactly as written.
Because nothing is rebuilt, every character outside comments is preserved — including deliberately quoted strings and hand-made list indentation.
It is the opposite trade-off from YAML format: this one keeps content and drops comments, that one keeps structure and drops comments plus original layout.
Paste the YAML
An annotated config file is the typical input.
Check which comments matter
Inline notes and commented-out old settings will disappear, so confirm before copying.
Copy the result
Fewer lines and no comments, with indentation and values untouched.
Because the document is never parsed. Normalising indentation means rebuilding structure, which is the formatter job; leaving it alone guarantees your layout cannot change.
Yes. A full line starting with # is a comment and will not survive. Copy the original first if you want a record.
Auto-indent and organize HTML markup for better readability.
Minify HTML by removing extra spaces and non-essential characters.
Minify or prettify CSS code for production and maintenance workflows.
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.