How to use this developer tool
- Paste the XML input or load a local file.
- Choose the options that match the source format.
- Select Canonicalize XML or press Ctrl/Cmd + Enter.
- Review the summary and export the output you need.
Normalize XML into a deterministic browser-generated form by sorting attributes, removing optional comments, and standardizing empty elements and line endings. Parses XML, optionally removes comments and blank-only text nodes, sorts attributes, and serializes a deterministic result. Everything runs in the current browser tab, so you can examine the result before copying it into a script, test fixture, migration, or data pipeline.
This page parses XML, optionally removes comments and blank-only text nodes, sorts attributes, and serializes a deterministic result. The main output is ready to copy, while the structured exports retain the diagnostic fields used in the summary.
This is a practical deterministic normalizer, not a certified implementation of W3C C14N, Exclusive C14N, or XML Signature canonicalization.
<?xml version="1.0"?> <root z="2" a="1"> <!-- note --> <item b="x" a="y"></item> </root>
Running the sample produces a tool-specific report in the output panel, with counts that correspond to the parsed records or nodes.
Attributes sort first by namespace URI and then by local name. The browser serializer supplies consistent escaping and empty-element syntax. Processing time is measured in the browser and the original input is left unchanged.
This is a practical deterministic normalizer, not a certified implementation of W3C C14N, Exclusive C14N, or XML Signature canonicalization.
Paste well-formed XML. Files are processed locally in the browser.
No. The core processing runs in this page and does not send the pasted content to an API.
The tool stops and shows an error instead of silently returning a partial result.
Yes. Copy the main output or download it, and use CSV or JSON export when the structured report is available.
This is a practical deterministic normalizer, not a certified implementation of W3C C14N, Exclusive C14N, or XML Signature canonicalization.
| Area | Included result |
|---|---|
| Main output | Copy-ready XML or text |
| Summary | Counts and processing note |
| Exports | CSV and JSON when rows are available |
Browse parsers, converters, validators, and format inspection utilities.