Convert YAML to JSON Instantly
Paste or upload a YAML file and the converter parses it into a native data structure, then serialises that structure as valid JSON with proper indentation. Multi-document YAML separated by --- is converted to a JSON array of documents, anchors and aliases are resolved before emitting, and nested maps and sequences survive the round-trip with their structure intact.
This is the everyday tool for feeding YAML-based configs (Kubernetes manifests, GitHub Actions workflows, Docker Compose files, OpenAPI specs) into systems that only consume JSON — test fixtures, schema validators, REST clients, serverless configurations, or ad-hoc scripts. It is also useful when a colleague shares config as YAML but your pipeline or editor works better with JSON.
Typed scalars are preserved: integers stay integers, floats stay floats, booleans (true/false/yes/no) are normalised to JSON booleans, null/~/empty become JSON null, and dates/timestamps are serialised as ISO 8601 strings. If you paste what looks like JSON by mistake, the converter detects it and suggests the reverse direction instead of producing confusing output.
Parsing and emitting both run locally in your browser — no upload, no third-party service, no storage.
About YAML to JSON conversion
Convert YAML configuration files and data to JSON format instantly. Supports multi-document YAML, nested structures, anchors, and all standard YAML features.
- Multi-document YAML support (--- separators)
- Handles complex nested structures
- Auto-detects if you paste the wrong format
- Upload YAML files directly
100% client-side. Your inputs never leave your browser. Ads via AdSense (consent required).
Frequently asked questions
How do I convert YAML to JSON?
Paste a YAML document — Kubernetes manifest, GitHub Actions workflow, docker-compose file, or any config — and the converter parses it with a YAML 1.2 parser and outputs equivalent JSON. Type information is preserved: numbers stay numbers, booleans stay booleans, nulls stay null, strings stay strings. Anchors and aliases are dereferenced so the JSON output is self-contained, and nested mappings and sequences translate one-to-one.
Is the YAML to JSON converter free?
Yes, completely free with no signup. Convert unlimited YAML files, any size your browser can parse. JSONCraft is fully free across every tool — formatter, diff, converters, viewer — there is no premium tier gating features or throttling usage. Useful for CI pipelines, Kubernetes work and general config translation.
Does the converter upload my YAML file?
No. The YAML parser runs entirely in your browser. Nothing leaves your device — important for Kubernetes manifests that may contain secrets, or CI workflows that reference internal hostnames. You can convert sensitive configs without any data touching a server, and there is no history, account or logging of any kind.
Does it support multi-document YAML files?
Multi-document YAML (streams separated by ---) is not supported as a single combined output; JSON has no native equivalent for document streams. If your file contains multiple documents, split them on --- and convert each independently. Single-document YAML with any depth of nested mappings and sequences, anchors, aliases and the standard scalar types works out of the box.
What about round-tripping YAML to JSON to YAML?
The conversion is lossy in one direction: YAML comments and some formatting choices don't exist in JSON, so they are discarded. For round-tripping config, pair this tool with the JSON to YAML converter, but be aware comments won't survive. For pure structural data (no comments, no custom tags) the round-trip is clean and produces semantically identical output.