How to Create CSV File from Excel (6 Easy Ways)

CSV, short for Comma Separated Values, is a widely used file format used to store delimited records in plain text. It is often used to transfer data between different applications due it’s small file size and simplicity, especially for large datasets. Let’s examine some easy ways to create CSV files from Excel.

Watch Video – Create CSV File from Excel

how to create csv file from excel

To illustrate, we’ll use the following source file as our dataset. It’s a daily Sales Report of a particular fast food store, and contains data about the Salesman, Item, and Qty in columns B, C, and D respectively. Here, we have used Microsoft Excel 365 version, however you may use any other version of Excel instead.

Method 1 – Using Save As Command

Using Save As Command

Selecting Browse Option

The Save As dialog box appears.

Working on Save As Dialog Box

Note: After pressing the Save button, you’ll get a warning dialog box reminding you that only the active worksheet will get converted to a CSV file. Perform the above steps for each additional worksheet you want to save.

A CSV file with the same name will be created in the specified location on your PC.

Opening Notepad App

The file opens in the Notepad app.

Opening CSV File in Notepad

You can also open the same file with Excel. But it won’t look like before. It’ll show the data without any type of formatting.

Using Save As Command to create csv file from excel

Method 2 – Utilizing CSV UTF-8 to Create CSV File Keeping Special Characters

The above method is simple, but it has a drawback. It can’t transform the special characters (Non-ASCII characters). However it is possible to create a CSV file without destroying special characters.

In the following dataset, we have two item names written in Japanese.

Utilizing CSV UTF-8 to Create CSV File Keeping Special Characters

Steps:

Working on Save As Dialog Box

A CSV file of the current sheet will be created. If you open the file in Excel, you can see that the special characters, which were displayed as . (question marks) in Method 1, now display correctly in the CSV file too.

Utilizing CSV UTF-8 to create csv file from excel

Method 3 – Applying UTF-16 Encoding

Here’s a different method to create a CSV file with special characters from Excel.

Steps:

Applying UTF-16 Encoding

A text file will be created with the .txt extension.

Opening CSV File in Notepad

Saving File Again in different format

The Save As dialog box of the Notepad app will open.

Save As Dialog Box of Notepad

A CSV file that contains the special characters correctly is created.

Applying UTF-16 Encoding to create csv file from excel

Method 4 – Employing Google Sheets

We can use Google Sheets for the creation of a CSV file from Excel.

Steps:

Employing Google Sheets

Importing Data from Excel Workbook

The file will open in the spreadsheet.

Data in Google Sheet

Downloading as CSV File

You’ll get a new CSV file as shown in the following picture:

Employing Google Sheets to create csv file from excel

Method 5 – Implementing VBA Code

You can automate the prior method entirely with the help of VBA.

Steps:

Implementing VBA Code

The Microsoft Visual Basic for Applications window appears.

Sub create_csv_from_excel() Dim wst As Worksheet Dim path_x As String Application.ScreenUpdating = False path_x = ActiveWorkbook.Path & " " & Left(ActiveWorkbook.Name, _ InStr(ActiveWorkbook.Name, ".") - 1) For Each wst In Worksheets wst.Copy ActiveWorkbook.SaveAs Filename:=path_x & "" & wst.Name & ".csv", _ FileFormat:=xlCSV, CreateBackup:=False ActiveWorkbook.Close False Next Application.ScreenUpdating = True End Sub

VBA Code to create csv file from excel

It’ll create a separate CSV file.

Implementing VBA Code to create csv file from excel

Method 6 – Using an Online Converter

We can also create a CSV file without even opening our Excel file, by means of an online file converter.

Steps:

Handling Online Converter Without Opening File

Conterting Excel workbook to CSV File

Downloading File

Handling Online Converter to create csv file from excel

How to Make a CSV File for Contacts

Here, we have a Contact List as an Excel workbook. Let’s make a CSV file from this dataset.

How to Make a CSV File in Excel for Contacts

Steps:

Opening CSV File for Contacts in Notepad

Download Practice Workbook