Convert between YAML and JSON formats instantly. Supports nested objects, arrays, multi-line strings, comments and more — all processed in your browser with zero server calls.
Last updated: March 2026Convert between YAML and JSON in either direction. YAML's used heavily for config (Docker Compose, GitHub Actions, k8s, Helm); JSON dominates APIs and data exchange. The converter handles nested objects, arrays, anchors, aliases, and multi-document YAML streams. Local-only; configs never upload.
{, etc.).--- separators) converts to a JSON array of documents.&name / *name references in JSON-friendly form (since JSON has no anchors, the converter expands them inline).country: NO is parsed as boolean false in YAML 1.1 (the NO/YES/ON alias). Always quote string values that could be confused — country: "NO".version: 010 is parsed as octal in YAML 1.1, decimal in 1.2. Quote it: version: "010".1: "x" in YAML becomes "1": "x" in JSON.JSON.parse() and is the standard format for REST APIs, package.json files, and web configurations. Both formats represent the same data structures (objects, arrays, strings, numbers, booleans, null).|) which preserve line breaks exactly as written, and folded block scalars (>) which join lines with spaces. Block chomping indicators (|-, |+, >-, >+) control trailing newline behavior. These are commonly used in CI/CD pipelines for multi-line shell commands and in Kubernetes for embedded configuration files.