YAML ↔ JSON Converter
Convert common YAML configuration data to JSON or turn JSON into readable YAML. Parsing happens locally in your browser.
Convert YAML and JSON
Convert common YAML configuration data to JSON or turn JSON into readable YAML. Parsing happens locally in your browser.
—
YAML to JSON and JSON to YAML conversion
This YAML ↔ JSON converter is aimed at everyday configuration work: nested mappings, lists, strings, numbers, booleans and null values. YAML input is parsed into a data structure before JSON is produced, so indentation matters. JSON input is validated by the browser before the tool emits block-style YAML.
Where this converter is useful
Developers and DevOps teams often need to move configuration between API payloads, CI files, container settings and application configuration. A local converter is especially convenient for quick inspection because the pasted data does not need to be uploaded to a third-party service.
YAML support and limitations
YAML 1.2 is a large serialization language with advanced features such as anchors, aliases, tags, directives, complex keys and multiple documents. This lightweight browser tool intentionally supports the common subset used in simple configuration files rather than claiming full YAML 1.2 compliance. For advanced YAML, validate the result with the parser used by your application.
Formatting guidance
Use spaces rather than tabs for indentation. If a scalar contains punctuation that could be interpreted as YAML syntax, quote it. When converting JSON to YAML, the tool adds quotes where needed to reduce ambiguity.