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 tool

XML Minifier

Strip whitespace from XML to shrink it down to the smallest valid form.

Open tool

XML Validator

Check whether XML is well-formed and see its element, attribute, and depth stats.

Open tool

XML Syntax Highlighter

Highlight XML syntax and export it as portable, self-contained HTML.

Open tool

XML to Image Converter

Render syntax-highlighted XML as a downloadable PNG image.

Open tool

XML to JSON Converter

Convert XML into equivalent, pretty-printed JSON.

Open tool

JSON to XML Converter

Convert JSON into indented, well-formed XML with a custom root element.

Open tool

XML to CSV Converter

Flatten XML records into comma-separated CSV rows.

Open tool

CSV to XML Converter

Convert CSV rows into a well-formed XML document.

Open tool

XML to YAML Converter

Convert XML into clean, indented YAML.

Open tool

YAML to XML Converter

Convert YAML into indented, well-formed XML with a custom root element.

Open tool

XML to TSV Converter

Flatten XML records into tab-separated TSV rows.

Open tool

TSV to XML Converter

Convert tab-separated TSV rows into a well-formed XML document.

Open tool

XML to Base64 Converter

Validate XML, then Base64-encode its raw bytes.

Open tool

Base64 to XML Converter

Decode Base64 back to UTF-8 text and pretty-print it as XML.

Open tool

XML URL Encoder

Validate XML, then percent-encode it for safe use in a URL.

Open tool

XML URL Decoder

Percent-decode a URL-encoded value, then pretty-print it as XML.

Open tool

XML to Text Converter

Extract plain text from XML, stripping all tags, attributes, and comments.

Open tool

XML Editor

Edit XML in place with live well-formedness feedback and one-click formatting.

Open tool

XML Statistics Generator

See element, attribute, text, and comment counts, nesting depth, and a tag-frequency breakdown for any XML document.

Open tool

XML Visualizer

See an XML document rendered as a color-coded, indented tree instead of raw markup.

Open tool

XML Diff Checker

Structurally compare two XML documents and see exactly what was added, removed, or changed.

Open tool

XML Truncator

Cut an XML document down to its first N elements while keeping it well-formed.

Open tool

XML to Table Converter

Render XML's repeated elements as an actual HTML table, columns and rows, not just text.

Open tool

XML Nesting Depth Finder

See the maximum nesting depth of an XML document at a glance.

Open tool

XML Flattener

Collapse a nested XML document into a flat list of dot/bracket-path keys and values.

Open tool

XML Filter

Keep only the elements whose tag name matches a search term, wherever they appear in the document.

Open tool

XML Key Finder

Search every element tag name in a document for ones matching a query, including repeats.

Open tool

XML Value Finder

Search every leaf text value in a document for ones matching a query, labeled with their element path.

Open tool

XML Key Extractor

List every unique element tag name in a document, once each, in first-seen order.

Open tool

XML Value Extractor

List every leaf text value in a document, labeled with its element path, in document order.

Open tool

XML Comment Extractor

List the text of every XML comment in a document, in document order.

Open tool

XML Comment Remover

Strip every <!-- --> comment from an XML document and re-format the rest.

Open tool

XML Key Replacer

Rename every element with a given tag name to a new one, everywhere it appears.

Open tool

XML Value Replacer

Replace every occurrence of a substring inside element text content, everywhere in a document.

Open tool

XML Comment Replacer

Replace every occurrence of a substring inside XML comment text, everywhere in a document.

Open tool

XML to Properties Converter

Convert XML into Java-style .properties key=value lines.

Open tool

Properties to XML Converter

Convert Java-style .properties key=value lines into a well-formed XML document.

Open tool

XML to INI Converter

Convert XML into classic INI format: [section] headers and key=value lines.

Open tool

INI to XML Converter

Convert classic INI text ([section] headers, key=value lines) into a well-formed XML document.

Open tool

XML to TOML Converter

Convert XML into TOML: key = value lines, [section] tables, and [[section]] array-of-tables.

Open tool

TOML to XML Converter

Convert TOML (key = value, [section] tables, [[section]] array-of-tables) into a well-formed XML document.

Open tool

XML to Data URI Converter

Wrap an XML document as a data: URI you can embed directly in HTML, CSS, or a config value.

Open tool

Data URI to XML Converter

Decode a data:application/xml;base64,... URI (or a bare Base64 string) back into readable XML.

Open tool

XML to PHP Array Converter

Convert XML into a ready-to-paste PHP array literal using modern short-array syntax.

Open tool

XML to SQL Converter

Turn repeated XML elements into one INSERT INTO statement per row.

Open tool

SQL to XML Converter

Turn INSERT INTO ... VALUES (...) statements into XML rows.

Open tool

XML to Bencode Converter

Convert XML into Bencode, the encoding BitTorrent .torrent files use.

Open tool

Bencode to XML Converter

Decode Bencode (the BitTorrent encoding) into readable, well-formed XML.

Open tool

XML to BXML Converter

Encode XML as this site's own compact binary tree format, shown as hex.

Open tool

BXML to XML Converter

Decode this site's compact binary XML (hex) format back into readable, well-formed XML.

Open tool

XML to BSON Converter

Convert XML into BSON, the binary document format MongoDB uses, shown as hex.

Open tool

BSON to XML Converter

Decode hex-encoded BSON (MongoDB's binary document format) into readable XML.

Open tool

XML to XLS Converter

Turn repeated XML elements into an Excel-openable spreadsheet file.

Open tool

XLS to XML Converter

Convert spreadsheet text (pasted cells, or CSV exported from Excel) into a well-formed XML document.

Open tool

XML to PDF Converter

Render pretty-printed XML and save it as a PDF using your browser's print dialog.

Open tool

XML Error Injector

Deliberately break well-formed XML in one random way, for building parser test fixtures.

Open tool

XML Syntax Changer

Switch every empty element between self-closing (<a />) and explicit open/close (<a></a>) style.

Open tool

XML Double Quote Converter

Re-write every XML attribute value using double quotes, the more common XML convention.

Open tool

XML Single Quote Converter

Re-write every XML attribute value using single quotes.

Open tool

XML Art Generator

Turn a short word or phrase into a deeply nested XML 'tree' where tag depth mirrors its length.

Open tool

XML to Compressed JSON

Convert XML into minified, single-line JSON.

Open tool

PHP Array to XML Converter

Parse a PHP array literal ([...] or array(...)) and convert it into well-formed XML.

Open tool

HTML to XML Converter

Convert HTML into well-formed XML: void elements self-close, attributes get quoted, text gets escaped.

Open tool