Format Converter — convert JSON, YAML, TOON and XML in your browser
This format converter turns structured data between JSON, YAML, TOON and XML with two synchronized panes: pick a format for each pane, paste data into one side, and the other side re-serializes instantly. It is the quick way to convert JSON to YAML, YAML to JSON, JSON to XML or XML to JSON — and to and from TOON — without installing anything or pasting your data into a server you do not control.
Both panes pivot through one common value, so whatever you type in one format is re-emitted in the other the moment it parses; switch either dropdown and the same data is shown in the new format. A structure tree and a path/type/summary inspector below the panes let you see the shape of the data you are converting. Everything runs 100% client-side in your browser — nothing you paste is uploaded, so it is safe for private config and API payloads.
Usage
- Choose a format for the left pane and a format for the right pane using the two dropdowns (JSON · YAML · TOON · XML). For example set the left to JSON and the right to YAML to convert JSON to YAML.
- Paste or type your data into either "source" pane. As soon as it parses, the other pane is re-serialized into its format — edit either side and the two stay in sync.
- Flip a dropdown at any time to re-emit the same data in a different format; the parsed value is reused, so no re-typing is needed.
- Use the "copy" button in a pane's header to copy that pane's text to your clipboard once the conversion looks right.
- Read the "structure tree" and the path/type/summary "structure inspector" below the panes to inspect the shape of your data — keys, array lengths and value types at each path.
- If a pane's text is not valid for its format, the inspector area shows the parse error (e.g. "JSON input is empty" or a syntax message) so you can fix it; the other pane keeps the last good result.
Examples
- Convert JSON to YAML:
left: JSON · right: YAML - Set the left pane to JSON and the right pane to YAML, then paste your JSON object. The right pane shows the equivalent YAML immediately — indentation-based, ready to drop into a config file. Switch the panes around to do YAML to JSON instead.
- Convert JSON to XML (and back):
left: JSON · right: XML - Pick JSON on the left and XML on the right to convert JSON to XML; the XML is built from the JSON value with formatted indentation. Paste XML into the XML pane to go the other way — XML to JSON — and read the result as JSON.
- Try the TOON format:
right: TOON - Set one pane to TOON to convert your JSON, YAML or XML into TOON — a compact, token-efficient encoding — and back again. Useful for seeing the same data in a denser shape; the conversion round-trips through the same common value as every other format.
FAQ
- How do I convert JSON to YAML online?
- Set the left pane to JSON and the right pane to YAML, then paste your JSON. The YAML appears in the right pane instantly, and you can click "copy" to grab it. To convert YAML to JSON, just swap the two dropdowns — the panes are symmetric.
- Can I convert between XML and JSON?
- Yes. Choose XML for one pane and JSON for the other: paste JSON to get XML (json to xml) or paste XML to get JSON (xml to json). The XML is parsed and rebuilt locally, so nested elements round-trip through the shared value the same way every other format does.
- What is the TOON format this converter supports?
- TOON is a compact, token-efficient text encoding of the same data. Pick TOON for a pane to convert any of the other formats to or from it; it is handy when you want a denser representation than JSON or YAML while keeping the structure intact.
- Is my data uploaded anywhere?
- No. Parsing and re-serializing JSON, YAML, TOON and XML all happen entirely client-side in your browser — nothing is sent to a server. That makes it safe to convert private config files or API payloads; 0 bytes leave your browser.
zahubtech@local $ ▋