Two-way
Paste JSON on the left to get YAML, or paste YAML to get JSON. After converting, spot-check indent and types (for example, YAML on / off may be treated as a boolean).
Advanced YAML features such as complex anchors and multi-documents have limited support today.
For configuration
Edit Deployment, docker-compose, and similar files, then convert back to JSON to validate. Use JSON for API mocks and YAML for deploy manifests, with this page in between.
After converting, smoke-test in the target environment to confirm behavior matches a hand-written file.
Comments
YAML comments cannot be kept when converting to JSON—that is a format limit. Put important notes in repo docs.
Converting from JSON to YAML will not invent comments either.