Paste any YAML document and get a cleanly indented, normalised version instantly. The formatter handles complex nested structures, anchors, and multi-document files using the js-yaml parser.
How it works
The tool uses js-yaml, a YAML 1.2 parser written in pure JavaScript. The library loads lazily when you trigger an action, parses the input into an in-memory tree, and re-emits it using the chosen indentation. Validation surfaces any parser error along with the line where it occurred.
Processing runs in your browser
All parsing and conversion happens locally in your browser tab. Our servers are not involved at any point.
Frequently asked questions
- Is my YAML sent to a server?
- All processing runs in your browser using the js-yaml library bundled with the page. Our servers are not involved at any point.
- Can the formatter handle Kubernetes manifests?
- Yes. Kubernetes manifests, Helm charts, and any standard YAML 1.2 documents are supported, including multi-document files separated by triple-dash markers.
- What indentation does the formatter use?
- Two spaces by default, with an option to switch to four. Indentation is applied consistently across nested mappings and sequences.
- Does formatting change the meaning of my YAML?
- Formatting only adjusts whitespace, quoting style, and key order representation. The parsed data structure remains identical to the input.
- Will comments survive the format step?
- The js-yaml parser drops comments during parsing. If preserving comments is important, keep the original file and use the formatter for review or normalisation only.