XML ↔ JSON Converter

XML Input594 chars
JSON Output

XML attributes are mapped with @_ prefix (e.g. @_id). Text content is stored as #text.

All processing is done locally in your browser. No data is uploaded.

Privacy First: Your files are processed securely. Whenever possible, processing happens in your browser and files are never stored on our servers.

Bidirectionally convert between XML and JSON using fast-xml-parser. Paste or upload .xml/.json files. Options: parse attributes (mapped with @_ prefix), parse numbers and booleans automatically, minify output or set 2/4 space indent. XML text nodes are stored as #text. Errors are displayed inline. Includes a sample catalog XML and equivalent JSON for quick testing. Download output or copy to clipboard. All processing is 100% browser-side - no uploads.

How to Use

  1. 1Choose XML → JSON or JSON → XML mode
  2. 2Paste your XML or JSON into the left panel (or upload a file)
  3. 3Toggle attribute parsing and number parsing options as needed
  4. 4Click Convert to see the result in the right panel
  5. 5Copy or download the converted output

Features

  • Bidirectional XML ↔ JSON conversion via fast-xml-parser
  • Attribute parsing with @_ prefix convention
  • Number and boolean auto-parsing toggle
  • Minify mode and indentation control
  • File upload (.xml or .json)
  • Error messages displayed inline
  • One-click copy and download output
  • XML declaration header auto-added on JSON → XML
  • Sample catalog XML and JSON provided
  • 100% browser-based - no uploads

Frequently Asked Questions

Guest PlanUpgrade
Operations today0 / 3
5 MB max fileNo batch
Upgrade for more

Community Feedback

Like

00

Total Rating

No ratings yet

Reviews

No reviews yet. Be the first!

Rate & Review

Was this tool helpful?

Rate this tool:

Write a Review

0/500

/ share this tool