Data tools
XML / JSON Converter
Convert XML (Extensible Markup Language) to an ordered document representation and back.
Runs locallyRuns locally in your browser
Guide
Convert between XML (Extensible Markup Language) and JSON (JavaScript Object Notation). The ordered representation lets you inspect and preserve the sequence of elements and text when converting back.
- Add your documents
Paste into Input, choose an example or use Open file. Files stay in your browser.
- Choose and run
Choose the format options above the fields. The result updates automatically. Changing conversion direction clears the input to avoid interpreting it in the wrong format.
- Read and keep the result
Read Output. Copy output or Download keeps the result; errors explain what needs changing.
On mobile, choose Output to read the result. Clear removes both fields.
Direction
- XML to JSON: convert Extensible Markup Language to JavaScript Object Notation using ordered element, attribute and text nodes. Mixed text and namespaces remain in order.
- JSON to XML: accept only the ordered document shape produced by this tool. Arbitrary objects are not mapped automatically. Document type and entity declarations are rejected; processing instructions other than the XML declaration are not supported.
Shortcuts
- Ctrl / Cmd + Enter — Run selected action
- Ctrl / Cmd + Shift + C — Copy output
- Ctrl / Cmd + S — Download output
- ? — Show shortcuts outside text fields
Shortcuts work while focus is in the workspace. Copy and download need valid output.
Common questions
- Does this preserve every detail?
- Conversion preserves the supported values, not original formatting. JSON object order is irrelevant to comparison. Ordered XML keeps mixed content; table cells stay text. Read Guide for the exact rules before converting.
- Is my document uploaded or remembered?
- No. Documents, schemas, paths and results stay in this tab and are not saved between visits. Only safe conversion and table settings may be remembered on this device.
- What limits apply?
- Combined input is limited to 1 MB, output to 2 MB and nesting to 100 levels. Processing stops after five seconds. Large results show a shortened preview; Download retains the complete successful output. Tool-specific limits and supported options are listed in Guide.
Was this tool helpful?
Only your rating and optional feedback are sent. Your tool input and output are never included.