YAML to JSON
Runs locally in your browser. Nothing leaves your device.Convert YAML files or pasted YAML text to JSON directly in the browser.
YAML settings
Input
Output
Paste valid YAML to see the JSON preview.
Paste valid YAML to see the JSON preview.
How it works
- 1
Paste YAML or open a file
Paste YAML or open a YAML, YML, or TXT file.
- 2
Choose the profile and options
Choose the YAML profile, document mode, and NaN/Infinity handling.
- 3
Copy or download the JSON
Copy the generated JSON or download it as a file.
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.
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.
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
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
Looking for another tool?
Every tool runs locally in your browser – no sign-up, no upload, and it works offline.