Nimble Toolbox

Excel to CSV converter

Drop an .xlsx workbook and its first sheet appears as CSV, ready to download or copy. Pick another sheet, or download every sheet at once as a ZIP of CSV files, one for each.

How to use it#

  1. Drop an .xlsx workbook onto the box above, or click it to choose one.
  2. Pick the sheet, and a comma, semicolon, or tab between the fields, or choose Custom and type another character.
  3. Tick "Mark as UTF-8 for Excel" if the CSV will be opened in Excel and holds accents.
  4. Download the CSV, copy it, or download all the sheets as a ZIP.

What comes across, and what stays in the workbook#

A CSV holds values and nothing else, so each cell is written as the value Excel last calculated for it. A formula comes across as its result, a date as an ISO date such as 2024-03-01, a date with a time as a UTC timestamp such as 2024-03-01T14:30:00.000Z, TRUE and FALSE as those words, and a number as its digits, rounded to the 15 significant digits Excel itself keeps. A cell stored as text keeps what it holds, so a postcode typed as text stays 02134, but one stored as a number and only shown with a leading zero is written 2134. Formatting does not survive: a price shown as £1,234.50 is written as 1234.5, a percentage shown as 12% as 0.12, and colours, bold, merged cells, and comments are gone.

Blank rows at the foot of a sheet, which a workbook often carries after someone has deleted data, are left out, and every row is given the same number of fields as the widest one, so an importer reading column five finds the same column on every line. Lines end in a carriage return and a line feed, the way RFC 4180 and Excel both write them.

Workbooks with several sheets#

A CSV file holds one table, so a workbook with several sheets becomes several files. Pick a sheet under "Sheet" to see it and download it on its own, named after the workbook and the sheet. "All sheets as a ZIP" saves every sheet as its own CSV, named after the sheet, in one ZIP file.

Hidden sheets are read like any other and appear in the list. A chart sheet holds no cells, so it is not listed and is left out of the ZIP.

Fields with commas, quotes, and line breaks#

A cell holding a comma, a double quote, or a line break is wrapped in double quotes, and any quote inside it is doubled, so a name written "Smith, John" stays one field rather than two. A spreadsheet or a database import reads that back as the same text. Splitting the lines on commas by hand would not, which is why a CSV that looks fine in a text editor can still import with its columns shifted.

To turn the CSV into JSON afterwards, for code or an API, use the CSV to JSON converter, or go straight from the workbook with Excel to JSON.

Frequently asked questions#

What happens with several sheets?

#

The CSV shows one sheet at a time, picked under "Sheet", and Download saves that sheet. "All sheets as a ZIP" saves every sheet as its own CSV file, named after the sheet, in one ZIP. A workbook with one sheet has no ZIP button, since the CSV is the whole of it.

Should I pick comma or semicolon?

#

Comma, unless the CSV is going to Excel set up for a country that writes a decimal comma, such as Germany, France, or Spain. There Excel splits a CSV on semicolons, and a comma-separated file opens with every row in one column. Tab suits pasting into a spreadsheet or a system that asks for TSV.

Why do accents look wrong when Excel opens the CSV?

#

The CSV is written in UTF-8, which nearly every program reads. Excel on Windows assumes an older encoding unless the file starts with a byte order mark, so "café" opens as "café". Tick "Mark as UTF-8 for Excel" to add the mark. Leave it off for a CSV going into code or a database, where the mark can end up stuck to the first column name.

Can it read an .xls file?

#

No, only .xlsx, the format Excel has saved since 2007. Open an older .xls in Excel, Google Sheets, or LibreOffice and save it as .xlsx, then drop that here. A workbook with a password to open needs the password taken off first, the same way.

Is my spreadsheet uploaded?

#

No. The workbook is read in this browser tab and the CSV is written here too, so a sheet of customer or payroll data is never sent anywhere.