Output will appear here
Output will appear here
Convert YAML to JSON online with our free YAML to JSON converter. The tool parses YAML 1.2 syntax including anchors, aliases, multiline strings, and block scalars, producing properly formatted JSON output. Ideal for converting Kubernetes manifests, Docker Compose files, and CI/CD configs to JSON for API consumption or programmatic use.
Try Convert All - paste JSON once, see TypeScript, Go, YAML, and 15 more formats instantly.
Enter YAML data in the left editor. The converter supports YAML 1.2 syntax including anchors, aliases, multiline strings, and flow collections.
The right pane shows the equivalent JSON with proper formatting. All YAML types are mapped to their JSON counterparts.
Copy the JSON to your clipboard or download it as a .json file. Use it in APIs, JavaScript applications, or anywhere JSON is expected.
YAML features like comments are discarded since JSON has no comment syntax. Anchors and aliases are resolved to their actual values. YAML date values are converted to ISO 8601 strings, and yes/no booleans become true/false.
Yes. The converter handles Kubernetes resource definitions, Helm chart values, and Docker Compose files. The output JSON preserves the entire structure so you can use it with kubectl apply -f or other JSON-accepting tools.
YAML comments (lines starting with #) are stripped during conversion because JSON does not support comments. The data values are preserved exactly; only comments are lost.
The converter processes the first YAML document in a multi-document stream (separated by ---). If you need to convert multiple documents, paste each one separately to get individual JSON outputs.