All Tools
Categories
XML Tools 64 Email Marketing Tools 55 Import-Export Tools 50 Text Tools 12 JSON Tools 10 Shipping Freight Tools 5 Calculator 4 Marketing Tools 3
About Contact Privacy

Flatten an XML

Extract all keys and values of an XML document as a flat key=value list with dot paths, array indices and attribute keys.

Input
Output

About Flatten an XML

Flatten an XML walks the whole document and produces a flat list of key=value pairs. Nested elements become dot-separated paths, repeated elements get index suffixes, and attributes are prefixed.

Features

  • Dot-path keys for nested elements
  • Array indices for repeated elements
  • Attributes included with a prefix
  • Optional value quoting
  • Copy or download as text/CSV
  • How to Use

  • Paste your XML.
  • Choose separator, index and quote options.
  • Review the flat list.
  • Copy or download.
  • Examples

    The sample flattens to catalog.product[0].name=Wireless Mouse, etc.

    Benefits

  • Load XML into spreadsheets and databases
  • Compare documents pair by pair
  • Index content for search
  • Frequently Asked Questions

    Is my XML sent to a server?
    No. Everything runs locally in your browser. Your data is never uploaded, stored or logged.
    Can I download the result?
    Yes — use the Download button below the output area, or Print / Save PDF for a printable copy.