Skip to content
cliplimeClipLime

Convert CSV to Excel (XLSX)

Paste a CSV or drop a file and download a clean .xlsx, with IDs, ZIP codes and long numbers kept exactly as they are.

Runs on your device, nothing is uploaded

Convert from

to

Paste, type, drop a file here or load one.

0 characters, 0 lines

Output (XLSX)

The workbook appears here, ready to download.

Options

When off, columns are called column1, column2 and so on.

A column becomes numbers only if every filled cell in it is a clean number. All types also reads true/false, and empty cells and the words null and NULL become null.

At a glance

Output
A real .xlsx workbook with one sheet, a bold header row that stays in view when you scroll, and columns wide enough for their content.
IDs and ZIP codes
Values such as 00123 and 02134 stay text, so they keep their leading zeros. Numbers with more than 15 digits, such as card numbers, stay text too, so Excel cannot round them.
Numbers
A column where every filled cell is a clean number is written as real numbers, and true or false as TRUE or FALSE. Choose Keep as text to leave everything as text.
Formulas
Text that starts with = + - or @ is written as plain text. It is never run as a formula when the file is opened.
Dates
Dates stay text. A CSV does not say whether 03/04/2024 is the 3rd of April or the 4th of March, so nothing is guessed.
Limits
One sheet of up to 1,048,576 rows (the header counts), 16,384 columns and 32,767 characters in a cell. Longer text is cut and a note says so.
Privacy
The file is converted in your browser tab and never uploaded. Free, with no sign-up.

How to do it

  1. 1

    Add your CSV

    Paste it into the box, drop a file on it, or press Load a file. Commas, semicolons, tabs and pipes are detected, and a file that Excel saved as Windows-1252 is read correctly. For tab separated text, switch the input format to TSV.

  2. 2

    Choose how cells are read

    Keep First row has the column names on if the first row is a header. Under Cell values, pick Keep as text if every cell should reach Excel as text.

  3. 3

    Name the sheet

    Type a Sheet name if you want something other than Sheet1. Excel allows 31 characters, and characters it does not allow, such as / and ?, are replaced with an underscore.

  4. 4

    Download the workbook

    Press Download to save the .xlsx file. The first rows are shown under the button, so you can check the columns before you open it in Excel.

Why a CSV opened in Excel loses data, and a workbook does not

A CSV file has no types and says nothing about its encoding. When Excel opens one it guesses, cell by cell, and if you save the file the guesses are written back. The usual casualties:

  • Leading zeros: 00123 becomes 123. That breaks ZIP codes, product codes and phone numbers.
  • Long numbers: Excel keeps 15 significant digits. A 16 digit card or tracking number is shown in scientific notation and its last digits are replaced by zeros.
  • Dates: values such as 1-2 or 3/4 turn into dates. The problem was big enough that in 2020 the committee that names human genes renamed genes such as SEPT1 and MARCH1, because spreadsheets kept turning them into dates.
  • Delimiter and accents: Excel splits a CSV at the list separator of your regional settings, which is a semicolon in many European countries, and it often reads UTF-8 text as Windows-1252 unless the file starts with a byte order mark.

An .xlsx workbook stores every cell with its type, so none of this guessing happens when it is opened. This converter does the typing once, up front, and in the open: the preview shows the result before you download it.

How each cell is typed

An Excel cell is text, a number, TRUE or FALSE, or empty. The converter decides which for a whole column at a time. A column becomes numbers only when every filled cell in it is a clean number: digits with an optional minus sign and decimal point, no leading zeros and at most 15 digits. One stray word keeps the whole column as text, so a column never mixes numbers and words.

  • 42, -3.5 and 3.50 become the numbers 42, -3.5 and 3.5.
  • 00123 and 02134 stay text and keep their zeros.
  • 1234567890123456 (16 digits) stays text.
  • 1,234.50, $12 and 25% stay text, because thousands separators, currency signs and percent signs mean different things in different countries. Convert them in Excel if you need numbers.
  • A column that holds only true and false becomes TRUE and FALSE.
  • Empty cells stay empty. The exact words null and NULL also become empty cells when every type is detected, which is the default, and a note says how many. Choose Detect numbers or Keep as text to keep the word.
  • =SUM(A1:A9), +1 and @name are text, not formulas.

Excel may mark cells that hold text which looks like a number, such as 00123, with a small green triangle. That is Excel pointing out the text, and it is what keeps your zeros. Pick Keep as text under Cell values if you want no number columns at all.

What is in the workbook, and what is not

  • One sheet, called Sheet1 unless you choose a name.
  • A bold header row, frozen so it stays visible when you scroll (when the header option is on).
  • Column widths set from the longest value in the first 200 rows, at least 8 and at most 60 characters wide.
  • Numbers as numbers, TRUE and FALSE as booleans, everything else as text.
  • No number formats, colors, filters, formulas or extra sheets. Add those in Excel.

Dates deserve a note. A date in a CSV is only text, so it arrives as text such as 2024-01-15, and Excel does not sort or calculate with it as a date. To convert a column in Excel, select it, open Data, choose Text to Columns, press Next twice and pick Date with the order your data uses. For dates written like 2024-01-15 a formula such as =DATEVALUE(A2) also works.

Large files and limits

An Excel sheet holds at most 1,048,576 rows including the header, 16,384 columns and 32,767 characters in one cell. A CSV with more rows or columns is refused with a message that says how many it needs, and a longer cell is cut at the limit with a note.

Speed depends on your device. In our tests on a laptop, 50,000 rows by 10 columns (4 MB of CSV) became a 2.9 MB workbook in about 1.2 seconds, and 200,000 rows took about 5 seconds. The largest sheet that fits, 1,048,575 rows by 3 columns, took about 8 seconds and roughly 1 GB of memory. Phones and older computers will manage less, and the page does not respond while it works.

Questions people ask

Why not just open the CSV in Excel and save it as .xlsx?

Excel converts the cells while it opens a CSV, so leading zeros, long numbers and some text are already changed before you save. Converting here types the cells first and keeps them as they were in the file.

Will my ZIP codes and IDs keep their leading zeros?

Yes. A value with a leading zero is kept as text, and so is any number with more than 15 digits. Excel may show a green triangle on those cells to say the text looks like a number. That is harmless, and it is what protects the zeros.

Why are my dates text in the workbook?

A CSV date has no format attached, and the same text means different days in different countries, so the converter does not guess. In Excel, select the column, choose Data, then Text to Columns, press Next twice and pick Date with the order that matches your data.

Can I make a workbook with more than one sheet?

One CSV becomes one sheet. Convert each CSV on its own, then in Excel right click a sheet tab, choose Move or Copy and send it to the other workbook.

What happens if my CSV has more than 1,048,576 rows?

It is refused, with a message that says how many rows it needs, because an Excel sheet cannot hold them. Split the CSV into smaller files and convert each one. A single cell with more than 32,767 characters is cut at that length, and a note tells you.

Is my CSV uploaded?

No. The file is read and written in your browser tab, so private data stays on your device.