ComparLab
XML

Processed locally in your browser

Compare XML Online

Compare XML documents while filtering harmless indentation and attribute-order noise. Element order and actual values remain significant.

Live

Original

Paste or drop a file

Changed

Paste or drop a file

Your differences will appear here

Paste or upload two versions, then compare.

How it works

  1. Paste, type, or open both versions from your device.
  2. Choose the precision and cleanup options that fit your content.
  3. Review additions and removals side-by-side or as a unified diff.

Useful features

  • Safe XML validation with line and column errors
  • Attribute-order normalization
  • Optional formatting-whitespace cleanup
  • Element order and content preservation

Common uses

  • Checking configuration files across environments
  • Comparing SOAP or integration payloads
  • Reviewing data exports and application configuration

Tips for a cleaner comparison

  • Keep formatting whitespace ignored for minified-versus-pretty XML.
  • Review element-order changes carefully because order is preserved.
  • External entities and referenced resources are never fetched.

Related comparison tools

Frequently asked questions

Does XML indentation count as a change?

Not when Ignore formatting whitespace is on, which is the default.

Does attribute order count?

No. Attributes are normalized so equivalent orderings do not create false changes.

Can XML load external entities?

No. ComparLab does not resolve external resources or execute XML content.

More comparison tools are coming

PDF, Word, Excel, and image comparison are planned for a future release. They are not part of this version, and there are no inactive buttons pretending otherwise.