A free edge API by formatho.com, privacy-first developer tools.
Free, no signup, runs entirely in your browser — your data never leaves your device.
# XML → JSON
curl "https://xml-json-formatho.filesformatho.workers.dev/api?xml=%3Croot%3E%3Citem%3Ehello%3C/item%3E%3C/root%3E"
# JSON → XML
curl "https://xml-json-formatho.filesformatho.workers.dev/api?json=%7B%22item%22%3A%5B1%2C2%5D%7D"
curl -X POST "https://xml-json-formatho.filesformatho.workers.dev/api" \
-H 'Content-Type: application/json' \
-d '{"json":{"item":[1,2],"@lang":"en"},"root":"catalog","indent":2}'
Direction is auto-detected: pass xml to convert to JSON, json to convert to XML. JSON→XML params: root (root element name, default root), indent (0–8, default 2; 0 = minified). Convention: attributes ⇄ @keys, mixed content ⇄ #text, repeated elements ⇄ arrays; true/false/round-trip-safe numbers auto-typed (zip codes & big IDs stay strings). GET query limit 8 KB — POST for larger documents (max 256 KB).
Full parameter reference: /api endpoint.
Convert XML ⇄ JSON entirely client-side: XML ⇄ JSON Converter on formatho.com.
Browse every free Formatho Worker tool on the Formatho Tools index.