YAML to JSON
Convert YAML files or pasted YAML text to JSON directly in the browser.
YAML settings
Input
Private by design: your file never leaves your device.
Output
Paste valid YAML to see the JSON preview.
Paste valid YAML to see the JSON preview.
Good to know
Good to know
The YAML to JSON converter converts YAML files into JSON directly in your browser and supports multiple YAML documents separated by ---, which automatically become a JSON array in document mode. A YAML profile lets you choose between modern YAML 1.2 and historical YAML 1.1, which interprets values like yes/no as booleans.
Typical searches include YAML to JSON, YAML parser, and Kubernetes YAML JSON. Since JSON has no NaN or Infinity values, you can determine whether such YAML numbers trigger an error, become null, or are output as text. Non-ASCII characters can additionally be written as Unicode escape sequences like \u00e4.
Typical use cases
Evaluate a Kubernetes manifest with multiple documents
Paste a multi-part YAML manifest to automatically get it as a JSON array with one entry per document.
Correctly interpret an old configuration with YAML 1.1 booleans
Choose the YAML 1.1 profile when an older configuration file uses yes/no or on/off as boolean values.
Tips for better results
Deliberately handle NaN and Infinity values
Since JSON has no NaN or Infinity values, deliberately choose whether such YAML numbers should trigger an error, become null, or appear as text.
Check the document mode with multiple YAML documents
The automatic document mode generates an array for multiple YAML documents — check whether this matches the expected JSON structure.
How it works
How it works
Step by step
Features
Features
YAML 1.1 and 1.2 supported
Choose modern YAML 1.2 or historical YAML 1.1 with different boolean interpretation.
Multi-document support
Multiple YAML documents separated by --- automatically become a JSON array.
Local processing
Your file never leaves your device; conversion runs entirely in the browser.
Frequently asked questions
Frequently asked questions
What happens with multiple YAML documents in one file?
In automatic document mode, they are combined into a JSON array, one entry per document.
Is my file uploaded?
No. Conversion runs entirely locally in the browser.
More tools
More tools
JSON to YAML
Convert JSON files or pasted JSON text to YAML directly in the browser.
JSON Formatter
Validate, format, minify, analyze, and inspect JSON as a tree locally.
JSON to TOML
Convert strict JSON to readable TOML locally in the browser.
XML to JSON
Convert XML files or pasted XML text to JSON directly in the browser.