XML Anonymizer

: Replace names, emails, dates and numbers in XML with realistic fake values, markup kept as written
Limits: 50 MB · .xml or plain text · Fake emails and URLs use the reserved example.com / .org / .net domains, and IP addresses the documentation ranges.
Anonymized XML
The anonymized XML appears here as you type.

Turn a real XML export into a safe copy for a bug report, a test fixture or a vendor: every name, email, phone number, date, card number and free-text value is replaced with a random value of the same kind, while the tags, attributes, namespaces, comments and whitespace stay exactly as written. It runs in your browser, so the original never leaves your device.

  1. Paste the document into XML, press Open file, or drop an .xml file on the page. Example loads a sample order.
  2. In Quick mode there is nothing to set: every element text and attribute value is replaced as you type, and the info line under the result says how many values of each kind were changed.
  3. Switch to Custom to choose Replace with (realistic values, the same shape, or asterisks), what to Change, and field names or paths to Keep unchanged or Change only, such as status, @currency, /order/item.
  4. Press New values for another set of fakes, or type a Seed in Custom mode to get the same output every time.
  5. Press Copy or Download to save the anonymized XML.

A customer record in Quick mode (seed docs). Markup and indentation are untouched; each value is replaced by one of the same kind.

Input
<customer id="20417">
  <name>Margaret O'Connell</name>
  <email>maggie@gmail.com</email>
  <phone>+61 412 345 678</phone>
  <born>1984-02-29</born>
  <card>4111 1111 1111 1111</card>
</customer>
Output
<customer id="84456">
  <name>Sami Ingram</name>
  <email>isla.moreau88@example.com</email>
  <phone>+13 271 299 647</phone>
  <born>1982-07-02</born>
  <card>4893 4574 0416 8290</card>
</customer>

Is my XML uploaded anywhere?

No. The page parses and rewrites the document in your browser; there is no server step, and the text is not stored.

Will the anonymized file still validate against my XSD?

Usually yes: element and attribute names, order and namespaces are unchanged and values keep their format (dates stay dates, numbers stay numbers of the same length). An enumeration such as a status code can be replaced by a word outside the list, so add it to Keep unchanged or check the result with XML Validator.

How do I get the same fake values every time?

In Custom mode, type any text into Seed. The same seed and the same document always give the same output, and with Same value → same replacement on, a repeated value always gets the same fake.

Can I mask only some fields?

Yes. In Custom mode, list them in Change only (for example customer, @cardNumber), or leave everything in scope and list the fields to leave alone in Keep unchanged.

Can I anonymize JSON or CSV the same way?

Yes: JSON Anonymizer and CSV Anonymizer use the same detection and fake values.

Runs entirely in your browser. Nothing is uploaded.