Random XML Data Generator

Generate custom XML data for testing and development instantly.

What is the Random XML Generator?

The random XML generator produces a well-formed XML document filled with fake person records. Each <person> element holds an <id>, <name>, <email>, <phone> and <description>, all wrapped in a root <people> element with an XML declaration at the top.

Pick how many records you need, from 1 to 100, and copy the result. Everything is built in your browser with JavaScript, so none of the generated data leaves your machine.

How to use the random XML generator

  • 1. Choose the number of records (1-100).
  • 2. Click Generate Random XML.
  • 3. Copy the XML from the output box into your test, feed or fixture.

Features

  • Well-formed XML with a declaration and a single people root.
  • Each person has id, name, email, phone and description.
  • Generates 1 to 100 records per run.
  • Runs entirely in your browser - nothing is uploaded.
  • Free, no sign-up.

Common uses

Testing an XML parser or importer, mocking a SOAP or RSS-style payload, filling a sample feed, or producing fixtures for code that consumes XML. The output is plain, predictable XML, so it is easy to tweak by hand if your schema differs.

Open the result in the XML Formatter if you want it re-indented, or run a quick well-formedness check before using it. Each run reshuffles the names, roles and phone numbers, so no two batches look the same, which helps when you need several distinct sample files.

FAQ

Is the XML well-formed?

Yes. It includes an XML declaration, a single people root and properly closed person elements, so it parses cleanly.

Can I customise the elements?

Not here - every record uses the same fixed elements: id, name, email, phone and description. You control the count and can edit the output for other shapes.

Is the data real?

No. Names, emails and phone numbers are randomly assembled from sample lists and do not refer to real people.

Is my data uploaded?

No. The XML is generated in your browser with JavaScript and is never sent to our server.

Related tools