YAML formatting, syntax checking, JSON conversion tool
As YAML Formatter, we perform formatting, verification, and JSON conversion while maintaining comments and anchors as much as possible.
YAML input and conversion
Supports pasting code and selecting or dropping .yaml · .yml files.
Input YAML
Processing results
syntax error
Errors and Warnings
Processing results
Check the document structure and input/output sizes, then copy or save the result.
- document
- 0
- Mapping
- 0
- S ence
- 0
- Anchor / Alias
- 0 / 0
- Input
- 0 B
- Output size
- 0 B
About this tool
You can read YAML for configuration files, CI definitions, Docker Compose, Kubernetes, etc., and check syntax errors.
Features
- YAML 1.2 · 1.1 formatting and syntax checking
- Comments, empty lines, anchors, aliases, multiple documents
- 2 · 4 spaces, LF · CRLF, line width, trailing newline
- YAML to JSON
- Lines and columns errors and warnings
How to use
- Paste YAML or open a .yaml or .yml file.
- Select Indent, Line Change, and YAML versions.
- Perform either formatting, syntax checking, or JSON conversion.
- Copy or save the results as needed.
Limitations
- Comments are not included in the YAML data structure, so the position of the affiliation may change after the formatting.
- Custom tags may not be executed and may be warned or error as unsolved tags.
- JSON conversion does not retain YAML-specific expressions such as comments, anchor names, and complex keys.
- In a very large YAML, the syntax color is omitted, but the formatting and validation continue.
- The size that can be processed depends on the available memory of the device and browser.
Privacy: Input and results are processed in your browser and are neither sent to nor stored on the Develop Tools server.