YAML JSON Converter
About this tool
Paste YAML or JSON and convert it into the other format. Invalid indentation, tab characters, and other syntax errors are identified before the result is produced.
How to use
- Convert YAML to JSON
- Convert JSON to YAML
- Show syntax errors with line information
- Produce readable two-space indentation
- Copy or download the result
- Paste source: Input YAML or JSON depending on direction.
- Convert: Click Convert to transform formats.
- Review output: Fix parse errors if shown, then copy or download.
Examples
- Convert an application configuration between YAML and JSON
- Inspect a YAML file as a JSON structure
- Prepare data for a system that accepts only one format
- Convert a GitHub Actions configuration for inspection
Limitations
- YAML anchors and aliases may expand when converted to JSON because JSON has no equivalent reference syntax
- JSON does not support YAML comments—comments are lost converting to JSON
- The entered data is processed directly in your browser and is not sent to a server.
FAQ
- Why did my YAML fail to parse?
- Common causes: tabs for indentation, inconsistent spacing, or unquoted special characters.
- Are multi-document YAML files supported?
- Multiple documents may require splitting; single-document conversion is most reliable.
- Will numbers stay numbers in JSON?
- YAML types map to JSON numbers, strings, booleans, arrays, and objects appropriately.