How to use the XML to TOON
- Paste your XML into the input box, or open a file.
- The output updates automatically as you type.
- Copy the TOON or download it as a file.
About XML
XML is a markup format for structured documents and data, still common in SOAP APIs, RSS feeds, Android resources, Maven builds and enterprise integrations. Elements can carry attributes as well as child elements.
About TOON
TOON (Token-Oriented Object Notation) is a compact encoding of JSON designed for LLM prompts. It uses YAML-style nesting and CSV-style rows for uniform arrays, typically cutting token counts substantially compared with JSON.
How it works
XML attributes become keys prefixed with @, repeated elements become arrays, and text next to child elements is stored under #text. Numbers and booleans are detected automatically.
Private by design
Developer data is often sensitive: API responses, tokens, customer records, internal configs. This XML to TOON processes everything locally in your browser tab. There is no server round-trip, no logging and no storage of your input.
Frequently asked questions
Is this XML to TOON free?
Yes. This XML to TOON is completely free to use with no sign-up, no limits and no ads inside the tool.
Is my data uploaded to a server?
No. The XML to TOON runs entirely in your browser using JavaScript. Nothing you paste is sent to DevT Pro or any other server.
Does the XML to TOON conversion lose data?
XML attributes become keys prefixed with @, repeated elements become arrays, and text next to child elements is stored under #text. Numbers and booleans are detected automatically.
Can I use the XML to TOON offline?
Yes. XML to TOON is also built into DevT Pro, a native app for Mac, Windows, iPad and Linux with 120+ developer tools that work fully offline. It is a $5.99 one-time purchase with no subscription.