Local StudioDEVELOPER TOOLS

XML Diff

Compare a before file with an after file. See ordered structural differences, inspect exact values, and save the report.

  • Free
  • Works Offline
  • No Uploads
Works with:
  • Microsoft Edge
  • Google Chrome
  • Mozilla Firefox
  • Safari
XML Diff showing two sample changes and their exact before and after paths and values.
Two true changes remain after equivalent namespace prefixes and attribute order are ignored.

How to Compare XML Documents

  1. Open the HTML, review Security Check, then select Continue.
  2. Choose a UTF-8 XML file for Before and another for After, or select Open Sample.
  3. Select Compare XML. Filter the result or select a change number to inspect both paths and exact values.
  4. Select Copy Report or Download JSON to take the comparison with you.

Find Exact Structural Differences

  • Choose the Before XML and After XML files, then select Compare XML.
  • Filter added, removed or changed records and select a row for exact values and source paths.
  • Copy or download the JSON report with its locations and completeness status.

Formats and Compatibility

InputTwo UTF-8 XML files, each up to 2,097,152 UTF-16 code units and 100,000 nodes plus attributes. DTDs, known external XML attachments and XML Digital Signature elements are outside the supported profile.
OutputA paged comparison and exact JSON report. The report can hold up to 5,000 rows or 1 Mi UTF-16 code units of compact changes. A partial result is labeled on screen and in the JSON.
BrowserA modern browser with local file support.
ScopeCompares two UTF-8 XML documents by expanded name and ordered content. Signed XML and formats that need external resources are outside the supported profile.
Operating Systems
  • Windows
  • macOS
  • Linux
  • ChromeOS

Local Processing Without Uploads

Compare XML without uploading files. This browser-based workbench keeps parsed XML as local data and never follows linked resources.

Select Open Sample to see the workflow with the included example.

XML Namespaces and Position Matching

Element and attribute names use namespace URI and local name. Prefix spelling, attribute order and XML declarations are ignored. Whitespace inside elements, comments, processing instructions and child order count. Text and adjacent CDATA are compared together.

Trace Each Change to Both Files

This compare XML browser tool matches children by position. Inserts or reorders can affect several positions. It does not guess which sibling moved. The report records the region and logical indices, and the details show each available source path.

Frequently Asked Questions

How do I compare XML offline?

Extract the Tool ZIP and open XMLDiff.html to use this local compare XML workbench.

Is there a free compare XML tool?

Yes. The workbench and offline Tool ZIP are free.

Where is the compare XML download?

Download Tool ZIP saves the standalone workbench. Download JSON saves the comparison.

Can I compare XML in browser mode?

Yes. Use the workbench to compare XML online or open the downloaded HTML. Both process the files locally.

What if siblings are inserted or moved?

The compare XML tool pairs logical child positions. It shows the differences at those positions and does not infer moves, IDs or schema-based identity.

What do the report locations mean?

The root uses an empty indices array. Child indices are zero-based positions among elements, text runs, comments and processing instructions. The visual paths use one-based positions.

Does it validate XML signatures?

XML Digital Signature elements are outside the supported profile. Choose unsigned copies to compare their content.

Does this tool work offline on Windows, macOS, Linux, and ChromeOS?

Yes. Local Studio tools run offline on Windows, macOS, Linux, and ChromeOS. Download the tool ZIP, extract it, and open the included HTML file in a supported browser. Your files are processed on your device without uploads.

Which browsers can I use with this offline tool?

Use a current version of Google Chrome, Microsoft Edge, Mozilla Firefox, or Safari where that browser is available for your operating system. Chrome is built into ChromeOS, and Safari is available on macOS.