Format & compact
Beautify nested XML, minify whitespace, and control indentation before comparing payloads.
Format XML, validate parser errors, run XPath, and convert XML documents to JSON or CSV without uploading payloads.
Beautify nested XML, minify whitespace, and control indentation before comparing payloads.
Switch between XML and JSON locally. Output highlighting follows the selected conversion.
Run XPath against the input document and send matched nodes to the output panel.
Load a safe sample, clear the workspace, or export the current output.
Paste or type XML to format or convert
Formatted XML, CSV, or converted JSON
Use the guide as a quick checklist when formatting, converting, or debugging XML payloads.
Paste XML for formatting, minification, XPath, or XML to JSON. Paste JSON when using JSON to XML.
Format XML adds readable indentation. Minify XML removes formatting whitespace for compact transport.
Attributes become @ properties, text nodes are preserved, and repeated sibling tags become arrays.
Repeated child elements become rows. Attributes and direct child text values become CSV columns with quoted cells.
Try //ship for elements or //@id for attributes. Matching nodes render in the output editor.
Malformed XML appears in the Issues pane. Use Go to error to focus the exact line and column in the input editor.
Paste XML into the input panel, then choose Format XML for indentation, Convert to JSON for object data, or XML to CSV for repeated child records.
The output editor switches syntax mode between XML, JSON, and CSV-oriented plain text depending on the action.
@, such as @id.#text when an element also has attributes or child elements.DOMParser parser error.The toolkit uses new DOMParser().parseFromString(input, "application/xml") in the browser. PayloadHarbor does not send XML or converted JSON to a server.
Use the XML Toolkit as an XML formatter, validator, converter, minifier, XPath tester, and XML to CSV helper. It is designed for API XML, SOAP-style payloads, data exchange files, and config snippets.
XML parsing and conversion use browser-side APIs and local TypeScript helpers. PayloadHarbor does not upload XML documents.
Paste XML or compatible JSON depending on the action. The output editor switches between XML, JSON, or CSV highlighting based on the selected transformation.