YAML to JSON Converter
Convert YAML format to JSON with real-time validation.
Paste YAML and get the equivalent JSON, with full YAML 1.2 support: anchors and aliases, multi-document streams, the standard scalar types. Parse errors show the exact line and column so you can fix indentation issues quickly.
Common use cases: piping a Kubernetes manifest into a tool that expects JSON, turning a GitHub Actions workflow into testable data, converting Helm values for programmatic processing, and round-tripping config to inspect what your YAML actually means after type coercion.
YAML Input
Reference
Frequently asked questions
Which YAML version is supported?
Why is my YAML giving a parse error on indentation?
Why did my number become a string (or vice versa)?
yes, no, on, off, version-looking strings (1.10), and bare digits into typed values. To force a string, quote it. To force a number, leave it unquoted.Can it parse multi-document YAML?
----separated documents become an array in the JSON output, one element per document. Useful for Kubernetes manifests that bundle multiple resources in one file.Other Formatters
View all tools →JSON Formatter
Format and validate JSON with syntax highlighting
SQL Prettify
Format and beautify SQL queries
HTML to Markdown
Convert HTML to Markdown format
Markdown to HTML
Convert Markdown to HTML
JSON to YAML
Convert JSON to YAML format for configuration files
CSS Minifier
Minify CSS to reduce file size and improve performance
CSS Beautifier
Format and beautify minified CSS code