JSON is valid YAML
YAML 1.2 treats plain JSON as valid YAML, so your input is already “YAML enough”—conversion mainly prettifies spacing.
Tip: Press Ctrl/Cmd + Enter to convert. You can also drop a .json file into the input box.
This converter parses your JSON entirely in your browser with the built-in JSON parser, then outputs equivalent YAML using a local JavaScript library. No files or data ever leave your device—ideal for sensitive configs.
null values from objects before conversion.undefined, functions, and comments aren’t valid JSON.100% client-side. This page performs all parsing locally with no network requests (aside from the initial page load).
YAML 1.2 treats plain JSON as valid YAML, so your input is already “YAML enough”—conversion mainly prettifies spacing.
YAML’s flow style ({}/[]) is basically JSON syntax, handy when you want compact single-line snippets.
JSON bans comments, but once converted you can sprinkle # notes into the YAML to explain fields without breaking the data.
AWS CloudFormation, GitHub Actions, and Kubernetes all accept JSON, but YAML stays friendlier to read and diff—hence the conversion.
YAML can stack several documents in one file using --- separators, so you can tack on extra configs after converting.