Convert XML to TSV
Convert XML data to tab-separated values. Extracts repeating elements into rows with attributes/children as columns. 100% client-side.
Paste XML, get tab-separated rows — attributes and child elements turn into columns automatically. No fiddling with XSLT or writing scripts to flatten nested tags by hand. And everything runs in your browser. Nothing gets uploaded.
How It Works
The browser's built-in DOMParser reads your XML into a tree. The tool scans the root element's children, finds the tag name that repeats, and treats each matching element as a row. Attribute names and child element names become column headers. Values get tab-separated and lined up — ready for Excel, Google Sheets, or any TSV-compatible tool.
Examples
Product Catalog Export
Your e-commerce platform spits out product data in XML. You need it in a spreadsheet for a pricing review.
<products>
<product sku="A100">
<name>Widget</name>
<price>9.99</price>
</product>
<product sku="B200">
<name>Gadget</name>
<price>24.50</price>
</product>
</products>sku name price
A100 Widget 9.99
B200 Gadget 24.50Employee Directory from HR System
HR exported staff records as XML. Finance needs a flat file to reconcile payroll.
<staff>
<employee id="301">
<name>Sara Chen</name>
<dept>Engineering</dept>
<salary>95000</salary>
</employee>
<employee id="302">
<name>James Obi</name>
<dept>Marketing</dept>
<salary>72000</salary>
</employee>
</staff>id name dept salary
301 Sara Chen Engineering 95000
302 James Obi Marketing 72000RSS Feed Items to a Spreadsheet
Pulling article metadata from an RSS feed to track competitors' publishing schedule.
<channel>
<item>
<title>Launch Day</title>
<pubDate>2025-03-10</pubDate>
</item>
<item>
<title>Q1 Wrap-Up</title>
<pubDate>2025-03-28</pubDate>
</item>
</channel>title pubDate
Launch Day 2025-03-10
Q1 Wrap-Up 2025-03-28Who Uses This
Flattening SOAP responses or config files into tabular data for debugging or migration scripts.
Pulling XML exports from legacy databases into spreadsheets for quick pivot tables and filtering.
Converting product feed XML into TSV for bulk upload to marketplaces like Amazon or Shopify.
Turning HR or finance XML exports into tab-delimited files that accounting software can import.
Common Mistakes
A missing closing tag or unescaped ampersand will break the parser. If you get an error, run your XML through a validator first — even one stray & instead of & can cause it.
TSV is flat — one header row, one value per cell. If your XML has three levels of nesting, the tool flattens to the repeating element's direct children. Deeply nested grandchild elements may get concatenated or dropped. For those cases, convert to JSON first, then shape the data.
TSV uses tabs, not commas. When you open the file in Excel, pick "Tab" as the delimiter. Google Sheets usually auto-detects it, but double-check if your columns look merged.
Technical Details
- Processing: 100% client-side — your XML never leaves the browser
- Parser: Uses the native DOMParser API (no external libraries)
- Browser Support: Chrome, Firefox, Safari, Edge
- Output Format: Tab-separated values (.tsv), UTF-8 encoded
Frequently Asked Questions
Can I convert XML to TSV without installing software?
Yes. This tool runs entirely in your browser — no downloads, no plugins. Paste your XML, hit Convert, and copy or download the TSV file. Works on any OS.
How does the tool decide which XML elements become rows?
It looks at the root element's direct children. When multiple children share the same tag name, those repeating elements become your rows. Each one gets its own line in the TSV output.
What happens to XML attributes in the TSV output?
Attributes become their own columns, just like child elements do. So if your element has id="5", you'll see an "id" column with the value 5 in that row. No data gets lost.
Is my XML data sent to a server?
No. The conversion happens locally in your browser using JavaScript. Nothing is uploaded — your data stays on your machine. You can even disconnect from the internet after the page loads and it will still work.
Can I open TSV files in Excel or Google Sheets?
Absolutely. In Excel, use File → Open and select "Tab" as the delimiter. Google Sheets handles TSV automatically when you import or paste. Both will split your data into neat columns right away.