It depends on the software you are using to create the CSV file. You may need to consult your software provider or support resource for your specific software.
Microsoft Excel
We do not recommend using Excel to save a CSV file because Excel removes leading zeros and reformats dates and other data. If your data source is Excel, then follow these steps to save a UTF-8-encoded CSV file.
- Open your file in Microsoft Excel.
- Go to File > Save As.
- Select CSV UTF-8 (Comma delimited) (*.csv) as your file format.
- Click Save.
Notepad (Windows)
If you have a CSV file from another source, or you are starting with Notepad:
- Open the CSV file in Notepad.
- Go to File > Save As.
- Select UTF-8 as the encoding option (use "UTF-8 no BOM" if available).
- Click Save.
TextEdit (Mac)
If your file is not yet in CSV format, ensure it is in Plain Text.
- Select Edit > Make Plain Text.
- Go to File > Save.
- Specify a file name and use .CSV as the extension.
- Select Unicode (UTF-8) as the encoding option.
- Click Save.
Google Sheets
- Create a new Google Sheet.
- From the new Google Sheet, go to File > Import.
- Select the applicable CSV file from your local drive or drag it into the dialog box.
Note: Deselect Convert text to numbers, dates, and formulas. - Click Import data. Google Sheets automatically converts the file to UTF-8 upon opening it.
- To save the encoded file, go to File > Download.
- Select Comma Separated Values (CSV). The file downloads as UTF-8.
Note: Once downloaded, do not open the file in another program because it may be converted to another character encoding and the above workflow may have to be repeated.
Related articles