CSV to Excel Converter
Drop one or more CSV files and get one .xlsx, with leading zeros, long numbers and dates left alone.
https://flxcode.com/csv-to-excel/
Stays in this page. Nothing is saved, shared or sent. Pasted text up to 1 MB. Files up to 50 MB each, one sheet per file.
Paste CSV or add files.
Settings
No ads. No account. Nothing you type or record is uploaded. We count page events with a daily code. Check it. What this tool keeps and sends.
Problem or idea? Email us
Quick start
- Drop CSV files on the panel, choose Add files, or paste text. A small sample is already there.
- Read the status line: it names the delimiter, the encoding and the columns that were kept as text.
- Check the preview. Click a column name to keep that column as text.
- Press Download .xlsx. The file is named after the first file.
If you want JSON instead of Excel, use CSV to JSON. The other way round is JSON to CSV.
What becomes a number, a date or text
Each column is decided as a whole. The results below were made by the same code as the tool when this page was built.
| Cell | Written as | Why |
|---|---|---|
00123 | text | A leading zero is part of the value |
0.5 | a number | A plain decimal |
12345678901234567890 | text | More than 15 digits would lose the last ones |
123456789012345 | a number | Exactly 15 digits fit |
1E5 | text | Looks like E notation, so it is kept |
+48 600 100 200 | text | A phone number |
1/2 | text | A fraction |
MARCH1 | text | A gene name |
2026-03-04 | a date | ISO date |
2026-03-04 13:45 | a date and time | ISO date and time |
03/04/2026 | text | Day or month first? Left alone until you choose |
03/04/2026 | a date | With "Day first" chosen |
3,5 | a number | Decimal comma, when no cell uses a point |
Dates become real date cells (shown as yyyy-mm-dd). Everything else is text. Text goes in as plain text and is never read as a formula.
Why Excel breaks a CSV, and the manual way
A CSV has no types, so Excel has to guess what each cell is. The guesses that hurt most are leading zeros (00123 becomes 123), numbers with more than 15 digits (Microsoft says the digits after the 15th are changed to zero), and values that look like dates (12/2 turns into 2-Dec).
By hand, in desktop Excel: use Data, From Text/CSV, pick Transform Data and set those columns to Text before loading. In Google Sheets the import dialog under File, Import has the settings for it. Menu names change between versions. This page does the same for you, for every column at once, and you see the result first.
Limits
- Files up to 50 MB each, pasted text up to 1 MB, 1,048,575 data rows plus the header row per sheet, 16,384 columns, 2,000,000 cells in all.
- A text cell is cut at 32,000 characters (Excel allows 32,767). The status line says how many cells that was.
- Numbers are stored as numbers, so
1.50shows as 1.5. If the trailing zero matters, click the column and keep it as text. - A column of dates needs yyyy-mm-dd, or a day or month first order that you choose. Times without a date, time zones and month names are left as text.
- No formulas, no colours, no number formats beyond dates. It is a clean copy of the values.
- The encoding guess can be wrong on a file that has no byte order mark and is not UTF-8. The status line says when it is a guess, and the list lets you correct it.
After the conversion
For a timesheet export, Time to Decimal Converter turns hours and minutes into decimal hours. For columns of numbers to compare, paste them into the ANOVA calculator.
How it works and privacy
The CSV is read with the same parser as the CSV to JSON page (quotes, line breaks inside cells, CRLF, LF and CR). The .xlsx is written by a small writer in this page, with no library. Files are handled in a background worker. Nothing you add is uploaded. We count events without cookies, like "download used" (details). File names, sizes, column names and your data are never part of them.
FAQ
Why does Excel drop the zeros in 00123?
Excel keeps a cell that looks like a number as a number, and a number has no leading zeros. This page writes 00123 as text, so the zeros stay. Zip codes, phone numbers and ids are the usual victims.
What happens to numbers with more than 15 digits?
Excel keeps 15 significant digits in a number and replaces the rest with zeros. A 20 digit id would come out changed. Here such a column is written as text, so every digit stays. Numbers up to 15 digits become real numbers.
Which cells become numbers and dates?
A column becomes numbers only when every filled cell is a plain number: optional minus, digits, an optional decimal part, no leading zero except 0 itself, no plus sign, no E notation, 15 digits or fewer. One cell that does not fit makes the whole column text. Dates are yyyy-mm-dd, with an optional time.
Can I make a column text myself?
Yes. Click a column name in the preview and it is kept as text. The chip under the status line has Undo. Switch the cell types to All text to keep every column as text.
It shows odd letters like ł or é wrong.
The file is probably not UTF-8. The page checks for a byte order mark, then for valid UTF-8, and otherwise guesses a Windows code page from your browser language, and says it is a guess. Pick the right encoding in the list (Windows-1250, Windows-1252, ISO 8859-2, Windows-1251, KOI8-R, Shift_JIS, GBK, Big5 and more) and the preview updates at once.
Can I convert several files into one workbook?
Yes. Drop or add several files and each becomes a sheet, named after the file (31 characters at most, with characters Excel does not allow replaced). The download is named after the first file.
More from FLXCode
- CSV to JSONTurn CSV into JSON with the delimiter found for you. Codes like 00123 and 20-digit ids stay text, nothing is uploaded.
- JSON to CSVTurn JSON into CSV for Excel or Sheets. Nested objects get dot paths, big numbers stay exact, nothing is uploaded.
- Time to Decimal ConverterTurn 7:45 into 7.75, or paste a column of timesheet times and get decimal hours, a total and payroll rounding.
- ANOVA CalculatorOne-way (classic and Welch), two-way, Levene and Tukey HSD from pasted columns, with effect sizes.