Batch convert XML files to JSON files

Want to batch convert XML files to JSON files?

Try Withdata Data File Converter, a desktop XML to JSON converter for Windows, MacOS, and Linux, Batch convert XML to JSON, Easy and Fast.

Download DataFileConverter Download DataFileConverter

Batch convert XML files to JSON files

Select source XML files -> Set JSON files -> Convert XML files to JSON files

Click “Start a New Convert” at task dialog.

bulk convert XML files to JSON files - task window

then show the wizard.

Select From “Files” “XML” To “Files” “JSON”.

batch transform XML files to JSON files - select type

1. Select source XML files.

batch create  JSON files from XML files- select XML file folder

And config the first source XML file.

batch create  JSON files from XML files- config XML file

2. Config target JSON files.

batch generate Json files by XML files - config JSON files

3. Summary.

List source XML files.

batch convert XML files to JSON files - list XML files

batch convert XML files to JSON files - summary

4. Convert XML files to JSON files, 1 XML to 1 JSON.

batch convert XML files to JSON files - convert files

After converting, you can view output JSON files.

Convert XML file to JSON file - view JSON file


More about XML to JSON converter

See Video: Bulk convert XML files to JSON files without coding

See also:

XML → JSON reference

Type mapping

Value kindin XMLin JSON
Int<int>1234</int>1234 (number)
Bigint<bigint>9007199254740993</bigint>9007199254740993
Decimal<decimal>1234.56</decimal>1234.56 (number)
Float<float>1.234e10</float>1.234e10 (number)
Text<char>text</char>"text" (string)
Long text<text>multi-line text</text> (entities for &amp; &lt;)"multi-line\ntext" (escaped newline inside a string)
Date<date>2026-09-18</date> (xs:date with an XSD)"2026-09-18" (string)
Datetime<datetime>2026-09-18T14:30:00Z</datetime> (xs:dateTime)"2026-09-18T14:30:00Z" (string)
Binary<blob>base64...</blob> (xs:base64Binary)"base64:..." (string)
Boolean<bool>true</bool>true / false (boolean)
JSONescaped inside an element, or its own sub-treenested object or array, kept as structure

Dialect differences

Both XML and JSON are file formats, so what differs below is how each one chooses to represent a value.

Propertyin XMLin JSON
identifiersAttribute values in quotes; entities (&amp; &lt; &gt;) for ...Double quotes; backslash escapes
datesText (xs:date / xs:dateTime when an XSD is in play)No date type: dates arrive as strings and the reader must p...
binarybase64Binary / hexBinary inside textNot supported natively - base64 inside a string
separatorTags, not delimitersBraces and commas
encodingDeclared in the XML declarationUTF-8 by definition
typingNone in the markup itselfstring, number, boolean, null, object, array - no date type
shapeArbitrary treeNested objects and arrays

Data File Converter without the manual work

For batch jobs, large files and scheduling use the Data File Converter converter — an offline desktop app for Windows, Linux and macOS. Free trial.


Posted

in

by