JSON to XML
Use this when a system, feed or legacy integration needs XML and your data is JSON.
- Processing
- In your browser, in a background worker
- Engine
- fast-xml-parser (entity declarations refused)
- Quality
- Changes structure
- Batch
- Up to 20 files at once
- Status
- Tested with sample files
How to convert JSON to XML
- Open the converter and add your JSON files — drop, paste or choose from your device.
- Check the options: root element.
- Convert and download the XML file. It is checked before it is offered.
What to expect
- Objects become elements, arrays become repeated elements, and keys starting with @ become attributes.
- Keys that are not valid XML names (such as "first name" or "1st") are adjusted, and FileLynx tells you which.
- If the JSON has one top-level key, it becomes the root element; otherwise the root is called root (you can change it).
What carries over
Kept
- Objects as elements, @-prefixed keys as attributes, arrays as repeated elements
Changed or removed
- JSON types (XML text has no number or boolean type)
Options
- Root element
- Name of the outer element when the JSON has no single top-level key (default: root).
Limits
- Desktop: 25 MB per file, 500,000 rows.
- Phones and tablets: 8 MB per file, 150,000 rows.
Limits protect your device’s memory. They are conservative engineering defaults, not guarantees for every device.
Common problems
- “The JSON is not valid”
- FileLynx reports the position of the syntax error. A common cause is a trailing comma or a single-quoted string.
- Accented characters look wrong in Excel
- Turn on the Excel BOM option when exporting CSV, or import the file with UTF-8 encoding.
- Large numbers changed
- Integers above 9,007,199,254,740,991 cannot be represented exactly; FileLynx warns you when it detects them.
About the formats
JSON
JSON is the data format of web APIs and configuration: nested objects, arrays, strings, numbers, booleans and null.
Good for: APIs, configuration and nested data.
Watch out: JSON numbers lose precision beyond about 15–17 significant digits in JavaScript-based tools.
XML
XML is a markup format for structured data, used by feeds, office files, configuration and many business systems.
Good for: Data exchange with systems that expect XML, documents with attributes and nested elements.
Watch out: XML text has no number or boolean type, and DOCTYPE declarations can be abused, so FileLynx refuses entity declarations.
Questions
Is the XML valid?
It is checked to be well-formed before you can download it. Validation against a specific schema is up to the receiving system.
Is the file uploaded?
No. The conversion runs inside your browser tab, on your device. Nothing is sent to a server.