XML Formatter
Format, minify, and validate XML with readable indentation.
- On your device
- No signup
Private on your device
Your information stays on your device and is not uploaded.
Format, minify, and validate XML with readable indentation.
Compare two JSON documents and instantly see added, removed, and changed values. JSON mode highlights changed keys with path hints.
Compare source files such as JavaScript, TypeScript, Java, Python, HTML, CSS, and SQL.
Compare CSV or TSV files, match rows with an optional key column, and highlight changed cells.
Compare two pieces of text and instantly see added, removed, and changed lines.
Compare two web pages by visible content, HTML source, or SEO metadata.
Format, minify, and validate JSON with optional key sorting.
Encode and decode text with Base64.
Paste or drop two XML documents in the shared Compare workspace. XML mode runs a line-level diff so tag, attribute, and text edits are easy to scan. Whitespace and attribute order on different lines can show as changes. Comparison stays on your device.
XML Compare is an XML-aware difference checker. Paste two documents and review added, removed, and changed lines in the shared Compare workspace.
Elements, attributes, and text nodes show up as the lines they occupy. A renamed tag or a changed attribute value is usually a changed line. Nested trees are not matched as independent XML nodes.
Insignificant whitespace is not ignored unless you turn on the workspace whitespace option. Indentation-only edits can still appear as diffs.
A plain text diff treats XML like any other string. XML mode starts with the XML document type selected and still uses the same side-by-side and unified views.
Comparison stays on your device. Nothing you paste is uploaded. Use URL Compare when you need to fetch HTML from live pages instead of pasting XML.
1. XML Compare opens with document type set to XML. 2. Paste or drop the original markup on the left and the updated markup on the right. 3. Click Compare. 4. Review tag, attribute, and text line changes. 5. Optionally ignore whitespace if the documents were reformatted. Comparison runs in your browser.
Example: compare <book id="1" lang="en"><title>Old</title></book> with a copy that changes the title and adds a second book. Compare highlights the title line and the extra element lines. Attribute order on the same line may stay unchanged; attributes split across lines can appear as edits.
Paste or drop two XML documents. XML mode runs a line-level diff in your browser so tag, attribute, and text line changes are easy to scan. Whitespace and attribute order on different lines can show as changes. Comparison stays on your device.
Results are based on the inputs you provide and may not cover every edge case. This tool is for general use and is not professional advice.
Your data stays on your device and is not uploaded.
FAQ
Attribute order on the same line may not change the diff. Attributes rewritten onto new lines, or whitespace-only reformatting, can still appear as line changes.
Yes, if they are in the text you paste. This workspace diffs the XML as text; comments are not stripped first.
No. Comparison stays on your device.
Page last reviewed: