Skip to the tool
GigaJSON Sample XML Files
All tools
Format and check
View and query
Convert
JSON to code
Encode and decode
Sample files
Guides Open GigaJSON

Download a sample XML file of any size

Choose the data and the size, then download. Every file is well-formed XML with realistic records, made on your device.

Download a well-formed sample XML file in the size you need, from 100 KB to 1 GB, to test a parser, an XSLT, an import or an upload limit. Each file has one root element holding one element per record of realistic data: orders, customers, products, blog posts, users or log events, with nested elements and repeated lists. To turn an XML file into JSON, use XML to JSON.

What people use these files for

Need JSON instead? Convert any file with XML to JSON.

How to use it

  1. Choose what the file holds: orders, customers, products, blog posts, users, log events, nested data or Unicode text.
  2. Choose a size from 100 KB to 1 GB, or type a custom size. The file holds whole records and stays within it.
  3. Click Generate and download, or Open in GigaJSON instead to look inside it.

Private, and made for big files

This tool runs in your browser, in a background worker: the file is made on your computer and never uploaded, and nothing is kept after you leave. Files up to 1 GB are written in pieces, so the page keeps responding. Already loaded features keep working if your connection drops. Loading another tool or jq for the first time needs a connection. When one tool isn't enough, GigaJSON opens your data with a tree, a table, JSONPath/JMESPath/jq queries, transforms, diff and history.

Questions

What does the XML look like?

An XML declaration, then a root such as <orders> with one <order> element per record. Fields are child elements, and a list is the same element repeated (<items> once per item). The preview above shows the first record of the file you are about to make. It is the mapping GigaJSON uses when it opens XML as JSON, so the file opens back into the same data.

Is it well-formed?

Yes. Every file has an XML declaration and one root element, text is escaped and every element is closed. There is no DTD and no namespace, so any standard XML parser can read it.

Is the file the same every time?

Yes. The same size and data always give the same file.

Is anything uploaded?

No. The file is made in your browser in a background worker and is never uploaded. Nothing is kept after you leave.

All tools