- How do I convert an XML file to CSV?
- Upload your .xml file or paste XML records into the editor. The tool automatically detects repeating elements (such as <item>, <product>, or <record>), flattens nested tags and attributes into tabular headers, and renders an interactive preview table. Click "Download .csv" to save the file.
- Can I choose which XML tag becomes a CSV row?
- Yes. If your XML contains multiple levels of repeating elements, a "Record Tag" dropdown will appear at the top, allowing you to select which tag level you wish to extract as rows.
- How are nested XML tags flattened into columns?
- Nested tags use dot-notation (for example, <pricing><retail> becomes pricing.retail), XML attributes are prefixed with @ (such as @id), and repeated items within a record are indexed as tag[0], tag[1], etc.
- What is CSV formula injection protection?
- When spreadsheets like Microsoft Excel or Google Sheets open a CSV, cells starting with =, +, -, or @ can be executed as formulas or macros. Our tool automatically prepends a single quote to neutralize formula injection attacks safely.
- Does this tool support commas, quotation marks, and line breaks inside XML values?
- Yes. The CSV exporter strictly conforms to RFC 4180: any cell containing commas, quotes, or newlines is wrapped in double quotes, and internal quotes are properly escaped.