Csv to xml converter
World's simplest csv tool
Free online CSV to XML converter. Just load your CSV and it will automatically get converted to XML. Load CSV, get XML. There are no ads, popups or nonsense, just an awesome CSV to XML converter. Created by programmers from team Browserling.
announcement heads up!
We just launched a new site – Online Fractal Tools – utilities for doing fractaly things. Check it out!
Csv to xml converter tool What is a csv to xml converter?
This tool transforms Comma Separated Values (CSV) to Extensible Markup Language (XML). It supports custom CSV column separators and it can skip CSV rows that start with a comment character. If you use headers, then the first CSV row will be used for XML element names. The output XML can be indented with spaces, tabs, or can minified.
Csv to xml converter examples Click to use
This example simply converts CSV to XML and uses CSV column names as XML element names.
id,title,data 00,crazy,buzz 01,fuzzy,fuzz 02,socks,quiz
<?xml version="1.0" encoding="UTF-8" ?> <root> <row-0> <id>00</id> <title>crazy</title> <data>buzz</data> </row-0> <row-1> <id>01</id> <title>fuzzy</title> <data>fuzz</data> </row-1> <row-2> <id>02</id> <title>socks</title> <data>quiz</data> </row-2> </root>
First row is treated as header
Here headers are skipped and XML has data rows only.
<?xml version="1.0" encoding="UTF-8" ?> <root> <row-0>fizzed</row-0> <row-0>razzed</row-0> <row-0>dazzle</row-0> <row-1>quacky</row-1> <row-1>quartz</row-1> <row-1>pizzas</row-1> </root>
First row is treated as header
Pro tips Master online csv tools
You can pass input to this tool via ?input query argument and it will automatically compute output. Here's how to type it in your browser's address bar. Click to try!
All csv tools
Quickly convert a CSV file to a JSON data structure.
Quickly convert a JSON data structure to a CSV file.
Quickly convert a CSV file to an XML file.
Quickly convert an XML file to a CSV file.
Quickly convert a CSV file to a YAML file.
Quickly convert a YAML file to a CSV file.
Quickly convert a CSV file to a TSV file.
Quickly convert a TSV file to a CSV file.
Quickly convert a CSV file to evenly aligned text columns.
Quickly convert text columns to a CSV file.
Quickly encode CSV to base64.
Quickly decode base64 to CSV.
Quickly convert CSV to URL-encoding.
Quickly decode CSV from URL-encoding.
Quickly change the CSV column delimiter to a new symbol.
Quickly prepend columns at the beginning of a CSV file.
Quickly append one or more new columns at the end of a CSV file.
Quickly insert one or more new columns anywhere in a CSV file.
Quickly export one or more columns from a CSV file.
Quickly replace one or more columns in a CSV file.
Quickly delete one or more columns from a CSV file.
Quickly swap two columns in a CSV file.
Quickly exchange columns with rows in a CSV file.
Quickly exchange rows with columns in a CSV file.
Quickly transpose a CSV file.
Quickly truncate columns in a CSV file.
Quickly left-trim and right-trim column values in a CSV file.
Coming soon These csv tools are on the way
Print CSV Statistics
Display detailed information about a CSV file.
Convert CSV to HTML
Convert CSV to an HTML table.
Convert CSV to an ASCII Table
Draw an ASCII table from CSV data.
Convert CSV to PDF
Convert CSV to a PDF document.
Convert CSV to an Image
Draw CSV file as table and output a PNG, JPG or GIF picture.
Convert CSV to Excel
Convert CSV to an Excel spreadsheet.
Preview CSV in the Browser
Show the contents of CSV in your browser.
Convert CSV to LaTeX
Convert CSV to a LaTeX table.
Convert CSV to SQL
Generate SQL queries from a CSV file.
Merge CSV Files
Merge together two CSV files.
Quote all CSV Fields
Wrap all CSV fields in double quotes.
Change CSV Quote Character
Change the character CSV fields are wrapped in.
Delete Empty CSV Columns
Delete columns that are completely empty.
Delete Empty CSV Rows
Delete rows that are completely empty.
Compress a CSV file. Remove unnecessary spaces.
Compare Two CSV Files
Diff CSV files and show differences visually.
Convert CSV Columns to an Array
Convert CSV columns to a flat array or a list.
Subscribe! Never miss an update
Notifications We'll let you know when we add this tool