XML Tools
A complete set of browser-based XML utilities for prettifying, minifying, validating well-formedness, syntax-highlighting, and rendering XML as a shareable image. Everything runs locally in your browser, so nothing you paste is ever sent to a server.
XML Prettifier
Prettify minified or messy XML into clean, indented markup.
Open toolXML Minifier
Strip whitespace from XML to shrink it down to the smallest valid form.
Open toolXML Validator
Check whether XML is well-formed and see its element, attribute, and depth stats.
Open toolXML Syntax Highlighter
Highlight XML syntax and export it as portable, self-contained HTML.
Open toolXML to Image Converter
Render syntax-highlighted XML as a downloadable PNG image.
Open toolXML to JSON Converter
Convert XML into equivalent, pretty-printed JSON.
Open toolJSON to XML Converter
Convert JSON into indented, well-formed XML with a custom root element.
Open toolXML to CSV Converter
Flatten XML records into comma-separated CSV rows.
Open toolCSV to XML Converter
Convert CSV rows into a well-formed XML document.
Open toolXML to YAML Converter
Convert XML into clean, indented YAML.
Open toolYAML to XML Converter
Convert YAML into indented, well-formed XML with a custom root element.
Open toolXML to TSV Converter
Flatten XML records into tab-separated TSV rows.
Open toolTSV to XML Converter
Convert tab-separated TSV rows into a well-formed XML document.
Open toolXML to Base64 Converter
Validate XML, then Base64-encode its raw bytes.
Open toolBase64 to XML Converter
Decode Base64 back to UTF-8 text and pretty-print it as XML.
Open toolXML URL Encoder
Validate XML, then percent-encode it for safe use in a URL.
Open toolXML URL Decoder
Percent-decode a URL-encoded value, then pretty-print it as XML.
Open toolXML to Text Converter
Extract plain text from XML, stripping all tags, attributes, and comments.
Open toolXML Editor
Edit XML in place with live well-formedness feedback and one-click formatting.
Open toolXML Statistics Generator
See element, attribute, text, and comment counts, nesting depth, and a tag-frequency breakdown for any XML document.
Open toolXML Visualizer
See an XML document rendered as a color-coded, indented tree instead of raw markup.
Open toolXML Diff Checker
Structurally compare two XML documents and see exactly what was added, removed, or changed.
Open toolXML Truncator
Cut an XML document down to its first N elements while keeping it well-formed.
Open toolXML to Table Converter
Render XML's repeated elements as an actual HTML table, columns and rows, not just text.
Open toolXML Nesting Depth Finder
See the maximum nesting depth of an XML document at a glance.
Open toolXML Flattener
Collapse a nested XML document into a flat list of dot/bracket-path keys and values.
Open toolXML Filter
Keep only the elements whose tag name matches a search term, wherever they appear in the document.
Open toolXML Key Finder
Search every element tag name in a document for ones matching a query, including repeats.
Open toolXML Value Finder
Search every leaf text value in a document for ones matching a query, labeled with their element path.
Open toolXML Key Extractor
List every unique element tag name in a document, once each, in first-seen order.
Open toolXML Value Extractor
List every leaf text value in a document, labeled with its element path, in document order.
Open toolXML Comment Extractor
List the text of every XML comment in a document, in document order.
Open toolXML Comment Remover
Strip every <!-- --> comment from an XML document and re-format the rest.
Open toolXML Key Replacer
Rename every element with a given tag name to a new one, everywhere it appears.
Open toolXML Value Replacer
Replace every occurrence of a substring inside element text content, everywhere in a document.
Open toolXML Comment Replacer
Replace every occurrence of a substring inside XML comment text, everywhere in a document.
Open toolXML to Properties Converter
Convert XML into Java-style .properties key=value lines.
Open toolProperties to XML Converter
Convert Java-style .properties key=value lines into a well-formed XML document.
Open toolXML to INI Converter
Convert XML into classic INI format: [section] headers and key=value lines.
Open toolINI to XML Converter
Convert classic INI text ([section] headers, key=value lines) into a well-formed XML document.
Open toolXML to TOML Converter
Convert XML into TOML: key = value lines, [section] tables, and [[section]] array-of-tables.
Open toolTOML to XML Converter
Convert TOML (key = value, [section] tables, [[section]] array-of-tables) into a well-formed XML document.
Open toolXML to Data URI Converter
Wrap an XML document as a data: URI you can embed directly in HTML, CSS, or a config value.
Open toolData URI to XML Converter
Decode a data:application/xml;base64,... URI (or a bare Base64 string) back into readable XML.
Open toolXML to PHP Array Converter
Convert XML into a ready-to-paste PHP array literal using modern short-array syntax.
Open toolXML to SQL Converter
Turn repeated XML elements into one INSERT INTO statement per row.
Open toolSQL to XML Converter
Turn INSERT INTO ... VALUES (...) statements into XML rows.
Open toolXML to Bencode Converter
Convert XML into Bencode, the encoding BitTorrent .torrent files use.
Open toolBencode to XML Converter
Decode Bencode (the BitTorrent encoding) into readable, well-formed XML.
Open toolXML to BXML Converter
Encode XML as this site's own compact binary tree format, shown as hex.
Open toolBXML to XML Converter
Decode this site's compact binary XML (hex) format back into readable, well-formed XML.
Open toolXML to BSON Converter
Convert XML into BSON, the binary document format MongoDB uses, shown as hex.
Open toolBSON to XML Converter
Decode hex-encoded BSON (MongoDB's binary document format) into readable XML.
Open toolXML to XLS Converter
Turn repeated XML elements into an Excel-openable spreadsheet file.
Open toolXLS to XML Converter
Convert spreadsheet text (pasted cells, or CSV exported from Excel) into a well-formed XML document.
Open toolXML to PDF Converter
Render pretty-printed XML and save it as a PDF using your browser's print dialog.
Open toolXML Error Injector
Deliberately break well-formed XML in one random way, for building parser test fixtures.
Open toolXML Syntax Changer
Switch every empty element between self-closing (<a />) and explicit open/close (<a></a>) style.
Open toolXML Double Quote Converter
Re-write every XML attribute value using double quotes, the more common XML convention.
Open toolXML Single Quote Converter
Re-write every XML attribute value using single quotes.
Open toolXML Art Generator
Turn a short word or phrase into a deeply nested XML 'tree' where tag depth mirrors its length.
Open toolXML to Compressed JSON
Convert XML into minified, single-line JSON.
Open toolPHP Array to XML Converter
Parse a PHP array literal ([...] or array(...)) and convert it into well-formed XML.
Open toolHTML to XML Converter
Convert HTML into well-formed XML: void elements self-close, attributes get quoted, text gets escaped.
Open tool