XML to TSV Converter
Paste XML with repeating child elements and get tab-separated values — column names come from element names, nested elements are flattened with dot notation, and you can download the result as a .tsv file.
Last updated: May 27, 2026
Find this tool useful? Support the project to keep it free!
Buy me a coffeeWhat is XML to TSV Converter?
TSV (Tab-Separated Values) is a simple tabular format used by spreadsheets, data pipelines, and Unix text tools. Converting an XML document to TSV requires detecting the repeating record element, mapping child tag names to column headers, and handling nested structures.
This tool uses the browser DOMParser to parse the XML, detects the repeating record elements, and produces a TSV with one row per record. Nested elements are flattened with dot-notation keys (`address.city`), and any literal tabs or newlines in values are replaced with spaces so the output remains valid TSV.
How to Use XML to TSV Converter
Paste XML into the left panel.
Toggle the header row on or off.
Copy or download the TSV output.
Common Use Cases
- Exporting an XML data feed to TSV for import into Excel or Google Sheets.
- Converting an XML API response to a tab-separated file for data analysis.
- Preparing TSV fixtures from XML data for a spreadsheet-based test suite.
- Piping XML data through Unix text tools that expect tab-separated input.
Example Input and Output
An XML list of products becomes a TSV file with a header row.
<products><product><id>1</id><name>Widget A</name></product><product><id>2</id><name>Widget B</name></product></products>id name
1 Widget A
2 Widget BPrivacy
All XML parsing and TSV generation happen in your browser. No content is sent to a server.
Pasting into spreadsheets
TSV is the default clipboard format when copying cells in Excel and Google Sheets. Paste the TSV output directly into a spreadsheet to populate rows and columns.

