HTML Formatter
Auto-indent and organize HTML markup for better readability.
Format YAML with clean indentation and stable structure.
Normalises YAML indentation and alignment while keeping comments and key order.
It parses and re-serialises: indentation becomes two spaces and a space is inserted after each colon, so the layout is guaranteed consistent.
The cost is that comments are lost: they never enter the parse tree and there is nowhere to put them on output. Use YAML minify when comments must stay — it works line by line instead of regenerating.
The parser is a built-in lightweight implementation: keys, indented nesting, lists, quotes and type inference work, while anchors and aliases (& / *) and complex tags do not.
Paste the YAML
Badly indented or multi-line input is fine; the parser rebuilds the structure first.
Confirm nothing is missing
Comments will not survive, and key order may follow the parsed result.
Copy the result
Normalised YAML with a fixed two-space indent.
Formatting parses then re-serialises, and comments are not part of the parse result. Use YAML minify to keep them: it strips comments and trailing spaces line by line without rebuilding the document.
No, output is fixed at two. YAML forbids mixing indent widths within one document, and a fixed value makes that mistake impossible.
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.