YAML to JSON Converter
Convert YAML to JSON and JSON to YAML, including multi-document YAML files.
Open toolValidate YAML syntax with exact line and column errors, duplicate-key detection and multi-document support.
Paste a YAML file and it is parsed with js-yaml as you type. Syntax problems such as bad indentation, unclosed brackets or tabs are reported with the exact line and column and a pointer to the spot. Duplicate keys in the same mapping, a common source of silently lost settings, are flagged as errors.
Files with several documents separated by --- are supported, and each valid document is summarised (top-level type, number of keys, nodes and nesting depth). Custom tags such as !!js/function are rejected rather than executed, because only the safe default schema is used. Everything runs in your browser. Your data is never uploaded, logged or stored.
Your code or text
YAML 1.2, Multi-document YAML (---)
Processed in this browser
Instant, in-browser. Nothing is uploaded.
Your result
Ready to download or copy
Paste your YAML.
Fix any error at the line and column shown.
Review the per-document summary, or convert the YAML to JSON.
Zero-upload architecture
Free, with no sign-up or watermark · Your files stay on your device
Launch the app and add your file. There is nothing to install and no account to create.
Fix any error at the line and column shown.
Review the per-document summary, or convert the YAML to JSON.
Convert YAML to JSON and JSON to YAML, including multi-document YAML files.
Open toolCheck whether JSON is valid and see exactly where and why it fails, with fix suggestions.
Open toolPretty-print, beautify and validate JSON with precise error locations, key sorting and custom indentation.
Open toolEdit, validate, format and explore JSON with a code editor, tree view and table view, then convert it to CSV, YAML or TypeScript.
Open tool