YAML ↔ JSON Converter
Updated May 4, 2026
Paste YAML to get formatted JSON, or paste JSON to get clean YAML — with a one-click direction swap. The converter handles strings, numbers, booleans, null, arrays, and deeply nested objects.
A pure client-side implementation with no external dependencies. Inline comments are stripped on YAML→JSON conversion. Coverage notes clearly state what's not handled (anchors, multi-document YAML, block scalars). Nothing is sent to a server.
service: api-server version: "2.4.1" enabled: true port: 8080 hosts: - "10.0.0.1" - "10.0.0.2" database: host: db.internal port: 5432 name: production ssl: true tags: - backend - critical
Coverage notes
- Handles strings, numbers, booleans, null, arrays, and nested objects
- YAML→JSON strips comments; inline comments on value lines are removed
- Complex YAML features (anchors, multi-doc, block scalars) are not supported
- Everything runs client-side — no data leaves your browser