Skip to the tool
ViewCSV
Files stay on your device

Convert CSV to Excel

excel-risk-sample.csv· SAMPLE DATA4 rows · 8 columns
Value types
Text keeps leading zeros and long IDs, and formulas stay as text. With number detection, values with more than 15 significant digits are still written as text, because Excel would round them.
excel-risk-sample.csv
#customer_idorder_refphonepart_codelot_codequantityunit_pricenote
10041240217730091152400016+155501002343-1212E3219.90=SUM(F2:F3)
20773040217730091152400017+155501002351/24E10154.25@supplier review
30003198765432109876543210+1555010023610-41E0211250.00-5% promo
41200810000000000000000001+15550100237MAR-127E540.99Zoë Łukasz, 東京 office

4 rows · 1 file Built in your browser; open it in Excel, LibreOffice or Google Sheets.

Open or paste a CSV file and select Download XLSX. By default every cell is written as text, so 00731, 20-digit order numbers and values such as =SUM(A1:A2) arrive in Excel exactly as they were instead of being trimmed, rounded or evaluated. Choose Detect numbers and true/false for columns you want to calculate with. The workbook is built in your browser and the CSV is never uploaded.

How to convert CSV to Excel

  1. Open a .csv, .tsv or .txt file, drop it on the tool, or paste rows. Check the table under Input; if everything is in one column or accents look wrong, set the delimiter or encoding under Import settings.
  2. Set the Sheet name (it starts as the file name) and choose Value types.
  3. Keep or change the header and layout options, then select Download XLSX and open the file in Excel, LibreOffice Calc or Google Sheets.

For several files, open Batch CSV to Excel. Keep each CSV on its own sheet, append all rows to one sheet, arrange mixed groups of sheets, or download separate workbooks in a ZIP. The batch accepts up to 20 files with a combined size of 25 MiB; preview the result before downloading.

Need an .xlsx file for a system that requires that extension? CSV to XLSX uses the same converter and explains the workbook format and export settings.

Workbook options

Sheet nameUp to 31 characters. The characters : \ / ? * [ ], which Excel does not allow in sheet names, are replaced by spaces; an empty name becomes Sheet1.
Keep every value as textThe default. Every non-empty cell is an Excel text cell holding exactly the CSV value. Excel may flag number-like text with a small green triangle (“Number Stored as Text”); the value itself is unchanged.
Detect numbers and true/falseDetection examines each column. Leading zeros, thousands separators, decimal commas or mixed text keep a column as text. In a numeric column, each value is also checked against Excel’s 15-significant-digit precision limit; unsafe values remain text. Columns containing only true/false (case-insensitive) become booleans. Dates stay text.
Bold header rowOn by default. The first row is written in bold. It always holds the CSV column names as text.
Freeze the header rowOn by default. The header stays visible while you scroll.
Fit column widths to the contentOn by default. Widths follow the longest value in the first 2,000 rows (East Asian characters count double), between 8 and 60 characters.
Right-to-left sheetDisplays the sheet from right to left, with column A on the right, for Arabic, Hebrew or Persian data. Cell values are not changed.

Leading zeros, long numbers and formulas

Opening a CSV directly in Excel lets Excel guess each value: 00731 becomes 731, a 20-digit order number is rounded, and 1-2 may turn into a date. This converter writes the cells itself, so Excel doesn't guess.

  • Values with leading zeros stay text in both modes. For phone numbers, postal codes or identifiers that contain only digits without a leading zero, keep the default text mode: numeric detection cannot know what those digits represent.
  • Excel stores at most 15 significant digits in a number. The converter also checks this limit when detection is enabled: values needing more than 15 significant digits stay text instead of being rounded. Default text mode additionally preserves the original spelling of every identifier.
  • CSV content is never written as an Excel formula. Formula-like text such as =SUM(A1:A2) stays literal text. With numeric detection, a valid signed number such as -12 can become a numeric cell; it is still not a formula.
  • Commas, quotes and line breaks inside quoted CSV values stay inside one cell. Leading and trailing spaces are kept.
  • Empty CSV values become empty cells, not empty strings.
  • Column names are used exactly as written. A blank header becomes Column 3, and a repeated one becomes name (2).

Problems when opening the file in Excel

  • A SUM in Excel returns 0. The column is text. Convert again with Detect numbers and true/false, or, if it still stays text, look for a value such as 1,5, $12 or n/a in that column with the CSV viewer.
  • Everything is in column A. The delimiter was guessed wrong. Choose Comma, Semicolon, Tab or Pipe under Import settings.
  • Accented letters look like é. The file is not UTF-8. Choose its encoding (often Windows-1252 for older Excel exports) under Import settings.
  • A cell is longer than Excel allows. Excel cells hold at most 32,767 characters; the tool says how many cells are longer and creates no file. Shorten them in the CSV editor, or export to JSON instead.
  • The file is too large for this tool. Excel conversion works on files up to 25 MB, 100,000 rows, 250 columns and 2 million cells. Split the CSV and convert the parts.

Limits and privacy

The CSV must open in the browser workspace: up to 25 MB, 100,000 rows, 250 columns and 2 million cells. That is well inside Excel's own sheet limit of 1,048,576 rows by 16,384 columns. Each conversion produces one workbook with one sheet.

The workbook is built in a background worker in this tab with the open-source write-excel-file library, so the page stays responsive and Cancel stops it. The CSV is never sent to a server. For a printable table instead, use CSV to PDF.

Example: an inventory file with leading zeros and a barcode

An inventory file with leading-zero SKUs, a 20-digit barcode, a quoted comma and a formula-like value, converted with Detect numbers and true/false, sheet name inventory, and the cells read back from the downloaded file. qty and unit_price became numbers and in_stock became TRUE/FALSE. barcode stayed text because one value has 20 digits, and the =SUM value stayed text. With the default Keep every value as text, every cell is text, including 12 and 34.90.

CSV
sku,barcode,description,qty,unit_price,in_stock,formula_like
00731,4006381333931,"Desk lamp, brass",12,34.90,true,=SUM(A1:A2)
00732,12345678901234567890,Cable tidy,,4.50,false,+44 20 7946 0958
XLSX cells
Sheet "inventory" — row 1 bold and frozen

Row 1: sku | barcode | description | qty | unit_price | in_stock | formula_like   (text)
Row 2: "00731" text | "4006381333931" text | "Desk lamp, brass" text | 12 number | 34.9 number | TRUE boolean | "=SUM(A1:A2)" text
Row 3: "00732" text | "12345678901234567890" text | "Cable tidy" text | (empty) | 4.5 number | FALSE boolean | "+44 20 7946 0958" text

Questions and answers

With the default Keep every value as text, number-like values are text cells, and Excel marks them as “Number Stored as Text”. That keeps IDs exact. For quantities and prices you want to add up, convert with Detect numbers and true/false instead.

Standards and references