ADVERT
📘 YAML Formatter & Converter
Format YAML, convert between YAML and JSON, and validate syntax instantly in your browser with offline support.
YAML Formatter and Converter
Format YAML, convert YAML and JSON, and control dump style and multi-document behavior directly in your browser.
Formatting controls
How to use this tool
- Paste YAML or JSON into the input panel.
- Adjust formatting and multi-document controls as needed.
- Format or convert, then copy or download the output.
Use cases
- Standardize Kubernetes manifests with key sort and quote controls.
- Convert multi-document YAML bundles into JSON arrays for API tooling.
- Split JSON arrays into per-document YAML for config repositories.
Troubleshooting
- If parsing fails, check for tabs or mixed indentation.
- Disable multi-document mode when your input is guaranteed single-doc.
- If strings are being reformatted, adjust quote style and force-quote toggles.
FAQ
- Does it support YAML anchors and aliases?
- Yes. Parsing and serialization are handled by js-yaml, including anchors and aliases.
- Can I control indentation width and line length?
- Yes. Use the formatting controls to set indentation and preferred line width.
- How are multiple YAML documents handled?
- Enable parse-all mode to load all `---` documents, then choose whether to emit separators on output.
ADVERT
ADVERT