OnlineTextLab
Esc

CSV to XLSX Converter

CSV to a real Excel file where zip codes keep their zeros and dates are actual dates.

Nothing here yet

Options

Runs on your device. Your files and text are not uploaded.

About CSV to Excel

Double-clicking a CSV in Excel is a known way to damage data. Zip code 02139 becomes 2139, a long order number turns into 1.23457E+19 with its final digits gone for good, and gene names and part numbers can become dates. People have lost real work this way, and once the file is saved, the original values are gone.

This builds the workbook with care about what is a number and what only looks like one. It reads the result back from the finished file to show you a preview, so you can see the values Excel will get. The header row comes frozen and with filter buttons, ready to work with.

How it works

Each value is judged separately. It becomes a number only if Excel can hold all of it: no leading zero, no plus sign, and at most 15 significant digits, which is Excel's precision limit. So 91.5 is a number, while 02139, +44 and 12345678901234567890 stay text with every digit intact. true and false become boolean cells. Dates become real date cells only in the unambiguous ISO form (2026-01-15, with or without a time), while 03/04/2026 stays text, because it means different days in different countries.

The CSV parser handles quoted fields, doubled quotes and line breaks inside quotes, and it only treats a quote as special at the start of a field, so 5" screen stays as written. The delimiter is detected by looking for the character that appears a steady number of times per line, ignoring quoted sections, so a comma inside a quoted note does not fool it. The file itself includes a style sheet, column widths sized to the data and a frozen, filterable header.

How to use CSV to Excel

  1. Paste into Your CSV, press Open a .csv file, or use Try an example. The line beneath shows the rows, columns and delimiter it found.
  2. Open Options to set the delimiter or sheet name, or to change the header and type detection settings.
  3. Press Create Excel file and check the preview, which is read back from the finished workbook.
  4. Press Download .xlsx.

What each value becomes

Input
name,joined,zip,active,score
Alex,2026-01-15,02139,true,91.5
Mina,2026-03-02,10001,false,88
Output
Alex: text | date cell 2026-01-15 | text 02139 | TRUE | number 91.5
Mina: text | date cell 2026-03-02 | number 10001 | FALSE | number 88

This was read from the generated file with a separate spreadsheet library. Look at the zip column: 02139 stays text with its zero, and 10001 is a number. If a column must be consistent, turn off Detect numbers, dates and booleans so every value stays text.

When it helps

  • Sending an export to someone who will open it in Excel and must not see mangled IDs
  • Turning a database dump into a sheet with sortable dates and numbers
  • Preparing a file for a system whose import only takes .xlsx
  • Giving a CSV filters and a frozen header without opening Excel

Tips for a better result

  • For a column of codes or phone numbers where all values must remain text, turn off type detection. The whole sheet is then stored exactly as written.
  • Convert dates to YYYY-MM-DD first if you want date cells. A format like 15/01/2026 is left as text on purpose, since guessing wrong is worse.
  • Tab-separated data pasted from a web page or another spreadsheet works too. The delimiter is detected automatically.
  • If the preview shows everything in one column, set the delimiter by hand under Options.

Good to know

  • It makes one sheet per file, with no formulas, charts or merged cells.
  • Blank lines in the CSV are dropped rather than kept as empty rows.
  • Dates in any form other than ISO stay text, and numbers with thousands separators such as 1,234 stay text.
  • Excel's own limits apply: 1,048,576 rows, 16,384 columns and 32,767 characters per cell. Going over any of them gives you a clear error instead of a broken file.
  • A value starting with = is stored as text and does not become a formula, which also protects you from formula injection in untrusted data.

Questions people ask

Why did some of my numbers stay as text?

They would lose information as numbers: leading zeros, a plus sign, a thousands separator, or more than 15 digits. Excel marks these with a small green triangle, and you can convert them if you do not need the exact text.

Is it safe to open a CSV of unknown origin this way?

It is safer than opening it directly, because cells starting with =, +, - or @ are stored as text and never run as formulas in the workbook.

What if a quote is missing in my file?

An unclosed quote would swallow the rest of the file into one cell. The tool detects this and tells you which line it starts on, so you can fix it.

Can it make several sheets from several files?

No, each conversion makes one sheet. To work with an existing multi-sheet workbook going the other way, see XLSX to CSV.

What to use next

Learn more

Last reviewed . Read our editorial policy.