JSON to YAML
Convert JSON to clean, readable YAML as you type, with 2 or 4 space indents and long strings kept on one line.
Runs in your browserNothing uploadedWorks offline
Set up for this job. It runs on JSON, YAML, TOML and XML converter, where every option is there to change.
Loading JSON to YAMLRuns on this device. Nothing is uploaded.
Questions
Is the key order kept?
Yes. Keys come out in the same order as in your JSON.
Are long strings folded?
No. Long strings stay on one line so the output matches your data exactly. Strings that YAML would misread, such as "yes" or "1.0", are quoted.
Is my data uploaded?
No. It is converted in this tab. Nothing leaves your device.
Related tools
All developer toolsDeveloperjson yaml ymlJSON, YAML, TOML and XML converterConvert between JSON, YAML, TOML and XML in any direction as you type, with clear line and column errors.Developerjson geojson plainJSON formatter and validatorFormat, validate and minify JSON, see the exact line and column of any error, and explore it as a collapsible tree.Developerjson geojson plainJSON minifierMinify JSON by removing all whitespace, after checking that it is valid, and see the size before and after.DeveloperjsonJSON to TypeScriptTurn a JSON sample into TypeScript interfaces or types, with nested types, unions and optional keys worked out for you.Developerjson geojson plainSort JSON keysSort the keys of every JSON object from A to Z, at every level, and get it back formatted or minified.Developerjson yaml ymlXML to JSONConvert XML to JSON as you type: attributes become @ keys and repeated elements become arrays.