Convert CSV to XLSX in Excel: Step-by-Step Guide
In this article
Converting a CSV file to XLSX in Excel is straightforward: open the CSV in Excel, then use File > Save As and choose Excel Workbook (*.xlsx) as the file type. This preserves the data, lets you add formatting, formulas, and multiple sheets, and avoids the limitations of plain-text CSV. You will need Excel installed (desktop version recommended) and the CSV file saved on your computer. The steps below are for Excel on Windows and Mac; the exact menu labels may vary slightly by version and region.
What You'll Need
- A computer with Microsoft Excel installed (Excel for Microsoft 365, Excel 2019, 2021, or later; older versions work similarly).
- The CSV file you want to convert, saved locally (not just open in a browser).
- Basic familiarity with Excel's ribbon or menu bar.
- Optional: a text editor like Notepad (Windows) or TextEdit (Mac) to inspect the CSV if it has unusual delimiters or encoding.
Step-by-Step
- Open Excel first (recommended). Launch Excel and create a new blank workbook. This avoids Excel's automatic CSV handling, which can misinterpret certain data (like leading zeros or dates).
- Import the CSV using the Text Import Wizard (Windows) or Text Import (Mac). Go to the Data tab, then click From Text/CSV (Windows) or From Text (Mac). In the dialog, locate and select your CSV file, then click Import. A preview window appears.
- Check the delimiter and data format. In the preview, ensure the delimiter is set correctly (usually Comma). If your CSV uses semicolons or tabs, change the delimiter accordingly. Also verify the file origin (encoding) – UTF-8 is common; if you see strange characters, try a different encoding like Windows (ANSI) or Macintosh. Click Load (or Load To... to choose a specific worksheet and cell).
- Review the imported data. Excel places the data into a new worksheet. Check that columns are separated correctly and that numbers, dates, and text appear as expected. If something is off, you can undo (Ctrl+Z) and re-import with different settings.
- Save as XLSX. Go to File > Save As (or press F12). In the Save As dialog, choose a location, enter a file name, and from the Save as type dropdown, select Excel Workbook (*.xlsx). Click Save. If prompted about features not supported in CSV, confirm to keep the format.
- Verify the conversion. Close the file and reopen it to ensure it opens as an Excel workbook (the title bar should show the .xlsx extension). You can now add formatting, formulas, multiple sheets, and use Excel's full feature set.
Common Mistakes
- Double-clicking the CSV to open it. This opens it directly in Excel, which may auto-format dates, drop leading zeros, or interpret long numbers as scientific notation. Always use the import method above for control.
- Not checking the delimiter. If your CSV uses semicolons (common in some European locales), the default comma delimiter will put everything in one column. Adjust in the import preview.
- Ignoring encoding. Special characters (accents, symbols) may appear garbled if the wrong encoding is chosen. UTF-8 is a safe bet for most modern files.
- Saving as CSV again by accident. When saving, double-check the file type is Excel Workbook (*.xlsx), not CSV (Comma delimited) (*.csv). The latter keeps you in CSV format.
- Forgetting to remove the old CSV. After conversion, you can delete the original CSV if no longer needed, but keep a backup until you're sure the XLSX is correct.
Tips
- Use Power Query for large or recurring imports. Data > Get Data > From File > From Text/CSV lets you set up a repeatable query that cleans and transforms data automatically.
- Preserve leading zeros. During import, set the column format to Text for fields like ZIP codes or IDs to keep leading zeros.
- Convert multiple CSVs at once. You can import several files into separate sheets using Power Query or by repeating the import steps.
- Check for hidden characters. Sometimes CSVs contain non-printable characters; use Excel's CLEAN function or import with Power Query to remove them.
- Save a copy before editing. Once converted, keep the original CSV as a backup in case you need to revert.
Troubleshooting
- Data appears in one column: The delimiter is likely wrong. Re-import and select the correct delimiter (comma, semicolon, tab) in the preview.
- Numbers lose leading zeros or show as dates: Excel auto-formatted them. Re-import and set the column data type to Text for those columns.
- Special characters look wrong: Try a different encoding (e.g., UTF-8, Windows-1252, or Macintosh) in the import dialog.
- Excel crashes or hangs during import: The file may be very large or corrupted. Try opening it in a text editor to check for issues, or use Power Query which handles large files better.
- Cannot find From Text/CSV: In older Excel versions, use Data > From Text. In Excel for Mac, look under Data > From Text. If still missing, your version may not support it; use File > Open and select the CSV, then save as XLSX (but be aware of auto-formatting).
- File opens as read-only: The CSV might be marked read-only or in a protected folder. Copy it to your desktop and try again.
Frequently Asked Questions
Can I convert CSV to XLSX without Excel?
Yes, you can use free online converters or spreadsheet programs like Google Sheets (open CSV, then download as XLSX) or LibreOffice Calc. However, Excel offers the most control over import settings.
Will converting to XLSX change my data?
No, the data values remain the same, but Excel may apply formatting (like dates) if you don't use the import wizard. Using the import method preserves the original text exactly.
How do I keep leading zeros when converting?
During import, set the column format to Text for any columns that need leading zeros (e.g., ZIP codes, product IDs). Alternatively, prefix the value with an apostrophe (') before importing, but that adds a character.
Can I convert multiple CSV files to one XLSX?
Yes, import each CSV into a separate sheet in the same workbook, or use Power Query to combine them. Then save as XLSX.
What if my CSV uses a different delimiter like a semicolon?
In the import preview, change the delimiter setting to Semicolon (or Tab) instead of Comma. Excel will then split the columns correctly.
Is there a file size limit for CSV to XLSX conversion?
Excel workbooks can handle up to 1,048,576 rows and 16,384 columns. CSV files larger than that cannot be fully imported into a single sheet; you may need to split the file or use Power Query to load into the Data Model.