YAML to JSON
Convert YAML to formatted JSON locally.
Free. No signup required.
What this tool does
Turn a YAML document into indented JSON locally. Inspect syntax errors and review the result before using it in an API or JSON configuration file.
How to use
Paste a YAML document to convert it to formatted JSON.
Features
Parse a YAML document and produce indented JSON for applications that require JSON input.
When to use it
Inspect a YAML configuration as JSON before passing it to an API.
Example and checks
Quote identifiers when leading zeros matter. YAML comments do not appear in JSON, and values outside JSON's data model must be resolved before conversion.
code: "0012"
active: true
{
"code": "0012",
"active": true
}Common questions
Can every YAML value be represented in JSON?
Comments are omitted. Circular aliases and non-JSON values cannot be represented in JSON.
Data processing
This tool processes its input locally in your browser without sending it to a server for processing. Input and results are not included in share URLs.
Related tools
JSON to YAML
Convert valid JSON to readable YAML in your browser.
JSON Formatter
Format and validate JSON locally in your browser.
JSON Validator
Validate JSON and locate parse errors without uploading your data.