Encode text to Base64, with correct Unicode handling.
Open toolJSON to YAML
Convert JSON into readable YAML, with block or compact flow style.
YAML output will appear hereWhat is a json to yaml?
This tool converts JSON into YAML - handy when a tool or config format expects YAML but you're working with JSON data. It supports both YAML's readable block style (the default, one key per line) and a compact flow style closer to JSON's own bracket syntax.
How to use this tool
- 1Paste your JSON, or upload a .json file.
- 2Toggle Compact (flow) style if you want a denser, single-line-per-object output instead of the default multi-line block style.
- 3Click Convert.
- 4Copy the YAML or download it as a .yaml file.
Common use cases
Frequently asked questions
What's the difference between block and flow style?
Block style (the default) spreads keys and list items across multiple lines with indentation - the style most people associate with YAML. Flow style packs everything into brackets and braces on fewer lines, closer to JSON's own syntax.
Does it preserve number and boolean types?
Yes - numbers, booleans, and null in the JSON are written as their native YAML equivalents, not quoted strings.
Why are some string values quoted in the output?
YAML quotes strings that could otherwise be misread as another type - for example a key or value like "y" or "true" gets quoted so it stays a string rather than being interpreted as a boolean.
Is my JSON uploaded anywhere?
No - conversion happens entirely in your browser, whether you paste the JSON or upload a file.
{
"runs_in_browser": true,
"data_sent_to_server": false,
"signup_required": false,
"price": "free",
"category": "Encoding"
}