Format and validate YAML — Kubernetes-friendly
Paste messy YAML and get it consistently indented and validated, right in your browser (0 uploads, works offline). Ideal for cleaning up a Kubernetes manifest or a CI file before committing.
How to use it
- Paste your input into the left pane.
- Choose any options shown above the panes.
- The result updates live on the right — Copy or Download it.
FAQ
How do I format YAML online for free?
Paste your YAML and it is re-indented to a consistent 2-space style and validated in your browser, with no upload. If the YAML is invalid you get the parser's message telling you what and where, rather than silent breakage.
Will it break my Kubernetes manifests?
No — it uses a YAML 1.2 parser and re-emits the same data with consistent formatting, so the meaning is unchanged. It is a good pre-commit tidy for manifests and Actions files.
Is my YAML uploaded?
No. Formatting runs locally and nothing is stored; it works offline.
Does it keep my comments?
Comments are not preserved, because formatting reparses the document to its data and re-emits it. Keep a copy if the comments matter.
Limits
Comments are dropped during reformatting. Multi-document YAML (--- separators) is handled one document at a time.
Related
The JSON to YAML converter turns JSON into YAML; the JSON formatter does the same for JSON.
Bookmark this page (Ctrl+D, or ⌘D on Mac) or install the app — it works offline the next time you need it.