YAML Formatter & Converter
Format and validate YAML, or convert between YAML and JSON.
Also available in the Chrome extension Every Zase tool also lives in the free Developer Toolkit by Zase extension: fully offline, in a window or the side panel, one keyboard shortcut away.
About this YAML Formatter & Converter
The YAML Formatter and Converter formats and validates YAML with line-numbered errors, and converts between YAML and JSON in both directions. It is aimed at the config files that run modern projects: CI pipelines, Docker Compose, Kubernetes and application settings.
How to use the YAML Formatter & Converter
- Paste YAML (or JSON, which is detected automatically) into the input.
- Format it to fix the layout and surface any indentation errors with their line numbers.
- Convert to JSON when a tool needs JSON, then copy or download the result.
Good to know
- YAML errors name the line, which matters because a single wrong indent can change what a config means.
- Block scalars for long strings and scripts survive formatting, including their chomping markers.
- Anchors and custom tags are reported as errors rather than silently misread.