Skip to content

Free · Reliable output · No signup

Convert CSV to Excel

Create a real .xlsx workbook from CSV while keeping every source cell as text.

Add as many files as you need. Up to 50 MiB per file. Keep this tab open until your downloads finish.

Batch conversion uses the standard settings. Open Customize a file below to change them.

Conversion starts as soon as you choose files. Files download automatically when ready. Your browser may ask to allow multiple downloads.

Customize a file · settings, paste and edit

CSV → Excel (.xlsx)

Free conversion in your browser. Your file stays on this device.

Local processing
8 fictional sales rows · CC0
  1. Choose your CSV

    Open a file, paste CSV text, or try the sample.

  2. Review the preview

    Check the source rows; every cell is exported as text.

  3. Download

    Save your .xlsx file with the current settings.

Source table preview

Example source

example.csv

45 B · 2 rows · 2 columns

ProjectStatus
WebsiteReady
DocsIn progress

The downloaded XLSX contains the complete table. This preview shows the source values.

Three simple steps

How to convert CSV to Excel (.xlsx)

  1. 1. Open your CSV

    Choose several CSV files and convert them together. For column settings, pasted text or editing, open Customize a file. The first row supplies column headers.

  2. 2. Review the output

    Follow each file’s progress. View opens a short preview without leaving the page; use Customize a file when you need different format settings.

  3. 3. Save your result

    Download the generated .xlsx file. Downloads start when files are ready, with a Download button for every result. No signup or payment is required.

Output contract

What the Excel (.xlsx) converter writes

The workbook contains one sheet with the CSV header and rows. Values are written as strings, preserving leading zeroes, identifiers, date text, and formula-like text instead of guessing cell types.

The preview is bounded so larger files stay manageable. Downloads use the complete parsed document within the format limits, including changes made in the editor.

Parsing and conversion happen on your device. Your CSV is not uploaded to a conversion server. An error preserves the current input so you can adjust settings or edit the source and try again.

Other ways to convert CSV to Excel (.xlsx)

Prefer a script or command line? These examples run on your computer. They create separate files; review their output rules because external tools can handle types and empty values differently from this page.

Convert CSV to Excel with Python and openpyxl

Run this on your own computer using Python 3. Save a UTF-8, comma-delimited input.csv in the same folder as the script. The first record must contain unique, nonempty headers; quoted commas and line breaks are parsed as fields.

Before you start

  • Python 3 installed. Package commands below use a local virtual environment on macOS/Linux; on Windows use .venv\Scripts\python.exe in place of .venv/bin/python.
  • Keep the original CSV. These examples read the complete table into memory and create separate output files.
  1. Save the Python code as convert_csv.py beside input.csv.
  2. Install the listed package when required, then run the script. Check the generated output before using it elsewhere.
Install the Python package
python3 -m venv .venv
.venv/bin/python -m pip install openpyxl

Save as convert_csv.py
import csv
from pathlib import Path

with open("input.csv", encoding="utf-8-sig", newline="") as source:
    reader = csv.reader(source, strict=True)
    headers = next(reader)
    rows = list(reader)
if not headers or any(not h for h in headers) or len(set(headers)) != len(headers):
    raise ValueError("Use unique, nonempty column headers")
if any(len(row) != len(headers) for row in rows):
    raise ValueError("Every record must have the same number of fields as the header")

from openpyxl import Workbook
if len(rows) + 1 > 1048576 or len(headers) > 16384:
    raise ValueError("The data exceeds Excel worksheet dimensions")
workbook = Workbook()
sheet = workbook.active
sheet.title = "Data"
for row_number, row in enumerate([headers, *rows], start=1):
    for column_number, value in enumerate(row, start=1):
        if len(value) > 32767:
            raise ValueError("A cell exceeds Excel's text length limit")
        cell = sheet.cell(row_number, column_number, value)
        cell.data_type = "s"  # Keep =1+1 and identifiers as text, not formulas.
workbook.save("output.xlsx")

Run the conversion
.venv/bin/python convert_csv.py

Limits and output

  • Creates one worksheet with text cells. Formula-looking text is stored as text. Excel may display saved empty strings as blank cells; CSV quoting and line endings are not retained. Unsupported XML control characters cause an error.

Documentation: Python CSV reader and writer; openpyxl workbook tutorial

Plain answers

Excel (.xlsx) conversion questions

Is this a real Excel (.xlsx) file?

Yes. A format-native writer creates a valid .xlsx file, not a renamed CSV.

When is the download created?

The output preview appears after parsing. Copy and download generate the complete output with your current settings; the preview can show fewer rows than the exported file.

What happens to data types?

Cells stay as text by default, preserving identifiers and leading zeroes. SQL and SQLite allow explicit column types; invalid values are reported before download.

Choose a workbook or a printable table

Choose Excel when the recipient needs to sort or edit cells. For a fixed-layout table to print or share, convert the source CSV to PDF. You can choose which columns to include and set the page orientation.