Format & compact
Beautify nested XML, minify whitespace, and control indentation before comparing payloads.
Format XML, validate parser errors, and convert XML documents to JSON 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 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.
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 two-space indentation or Convert to JSON for a structured JavaScript object representation.
The output editor switches syntax mode between XML and JSON depending on the action so folding, bracket matching, and highlighting stay useful.
@, 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.