JSON ↔ YAML
Convert JSON to YAML and YAML back to JSON in the browser. Paste a config, Kubernetes snippet, or API fixture and copy the other format. Parsing uses js-yaml locally. Documents are never posted to a converter.
Runs in your browser. Nothing is uploaded.
About this tool
Convert JSON to YAML and YAML to JSON with js-yaml in the browser. Maps, lists, and scalars round-trip for typical config: Docker Compose-ish files, GitHub Actions fragments, and API fixtures. Anchors and custom tags are not a goal. This is dump/load, not a Kubernetes admission controller.
How to use: paste JSON, pick JSON → YAML, copy. Reverse for a .yml you want as a JSON blob. Parse errors from either side show in the alert line. Indent and quoting follow js-yaml defaults so output is readable, not bit-identical to every YAML 1.1 dialect.
Example: {"replicas":3} becomes replicas: 3. A YAML list of services becomes a JSON array. Duplicate keys and tabs-as-indent can fail the YAML parser. That is expected.
Documents never go to a YAML SaaS. Related: JSON formatter to tidy the JSON side, JSON ↔ XML if the next hop is a SOAP stack. After the page loads you can keep converting offline.
FAQ
Related Convert tools
JSON ↔ TOML
Convert JSON objects to TOML and TOML documents back to JSON in the browser. Handy for Cargo.toml, pyproject, and app config fragments. Parsing stays on-device.
JSON ↔ XML
Convert JSON objects to XML and XML documents back to JSON. Useful for SOAP leftovers, RSS, and mixed API stacks. XML is parsed with the browser DOMParser so payloads stay on the device.
JSON ↔ CSV
Turn an array of JSON objects into CSV, or parse CSV headers into JSON objects. Quote-aware parsing runs in the tab so spreadsheets of IDs and emails are not uploaded to a conversion service.
JSON to SQL
Turn a JSON object or array of objects into SQL INSERT statements. Set a table name, copy the query, and keep rows on the device instead of pasting fixtures into a hosted converter.
CSV ↔ TSV
Convert comma-separated values to tab-separated values and back, preserving quoted fields. A small delimiter swap for dumps you would rather not paste into a spreadsheet SaaS.
Timestamp Converter
Convert Unix timestamps, milliseconds, and ISO 8601 dates in both directions. See UTC and local time side by side, generate a 'now' epoch, and copy values for logs, databases, and APIs without a round trip to a conversion API.