Open CSV files — Encoding and leading zeros

Last content update 11/2/2026
QUICK ANSWER
A CSV is a text file containing values separated by delimiters. Keep the original and use Data → From Text/CSV in Excel or Text Import in LibreOffice Calc. Set the encoding and delimiter in the preview, and read columns such as codes and phone numbers as text when you do not need to calculate with them. Compare Korean characters, leading zeros, long numbers and date strings with the original before saving a separate editing copy as XLSX or another workbook format.

Keep the original and choose how to open it

A CSV is a text file with cell values separated by delimiters. It differs from an Excel workbook, which can also preserve multiple sheets, cell colors, merged cells and formatting. Even when the extension is .csv, check the actual character encoding and delimiter used by the program that created it.

Keep the downloaded file unchanged and make a copy, such as list-check.csv. If the imported result is unexpected, you can return to the original without overwriting it.

MethodSuitable purposeWhat to check
Windows desktop ExcelRead a table and organize the values you needUse data import and data type settings
Free LibreOffice CalcCheck a table locally without ExcelSet the character set and column types in Text Import
Notepad or a text editorInspect original characters, delimiters and numbersUse it to compare source text rather than calculate a table

The Excel steps below use Text/CSV import in the Windows desktop app. Do not assume that free Excel for the web or Excel for Mac has identical menus. For installation and access conditions, see the Excel guide (Korean). For a free local application, start with the LibreOffice guide.

Set encoding, delimiters and data types in Excel

These menu paths follow Microsoft’s current official documentation. Names can vary by version and display language.

  1. In a blank workbook, open Data → From Text/CSV. If the option is inside Get Data, look for the route for importing from a file.
  2. Select your working copy of the CSV.
  3. In the preview, set File Origin to the file’s actual character encoding. For a UTF-8 file, select UTF-8 and compare a sample of the Korean text.
  4. Set Delimiter to match the file. Check whether it uses commas, semicolons or tabs, and whether the preview has the expected columns.
  5. If you want to read the values unchanged, use Data Type Detection → Do not detect data types. This turns off automatic type detection and reads all columns as text.
  6. Check the preview and column types, then choose Load. If necessary, use Transform Data to inspect columns and assign suitable types only to columns you intend to calculate with.
  7. Compare codes, long numbers and dates in the imported table with the original, as in the example below.

Changing a value to text after automatic detection has made it a number can give a different result from reading it as text from the start. If values have already changed, import the original again with detection turned off instead of overwriting it while trying to fix the result.

If your version has no Data Type Detection option, check whether its import wizard lets you select Column data format → Text before loading. If the menus do not match, the Calc route below is another option.

When Korean text is garbled

First check whether the file uses UTF-8. Microsoft says that a UTF-8 CSV saved with a BOM can normally be opened directly, and recommends data import routes otherwise. Being a UTF-8 file does not guarantee the same double-click result in every Excel environment.

For a file saved with another character set, check the provider’s encoding instructions and adjust the preview. Saving the garbled text again as UTF-8 is not a recovery method. For the difference between interpreting an encoding and converting to another one, see Notepad++ encoding guidance.

Use Text Import in free LibreOffice Calc

Calc is LibreOffice’s spreadsheet application. Opening a Writer document is a different task.

  1. In Calc, choose File → Open and select your CSV copy. If necessary, choose the Text CSV file type.
  2. If the import dialog is skipped, select Edit filter settings in the Open dialog to display it.
  3. Choose the actual encoding under Character Set, then select the file’s delimiter under Separated by.
  4. Check String delimiter. For example, if a value containing a comma is enclosed in double quotes, confirm that it is read into one column.
  5. Select the code, number and date columns in the preview and set Column type → Text. If your goal is to inspect unchanged values, read all the necessary columns as text.
  6. When reading values from an external file, clear Evaluate formulas. You do not need to calculate strings that resemble formulas.
  7. Compare the imported table’s Korean characters, column positions and sample values with the source text.

Turning off Detect special numbers does not make every number text. Explicitly select Text for columns containing identifiers that might otherwise be interpreted as ordinary numbers. If empty values represent separate columns, check that an option for merging consecutive delimiters does not shift the column positions.

Compare characters, columns and numbers with an example

This is a fictional CSV example created for explanation, not real contact or transaction data. The Korean labels and values are retained from the original guide so you can use them to check non-Latin characters.

코드,이름,관리번호,기록일,메모
00123,가상항목A,123456789012345678,2026-10-01,"빨강, 파랑"
00456,가상항목B,987654321098765432,2026-10-02,확인완료

After reading every column as text, compare the result as follows.

ItemWhat should be preservedIf it has changed
Column countFive columns in both the header and each data rowCheck the delimiter and string delimiter
Korean characters가상항목ARecheck File Origin or Character Set
Leading zeros00123Import the code column again as Text
Long identifierThe full 123456789012345678Compare the actual final digits as well as the display format
Date string2026-10-01Set the date column to Text too if you need the original string
Comma within a value빨강, 파랑 in a single memo columnCheck double-quote handling and shifted columns

A display such as 1.23457E+17 does not always indicate the same problem. Compare the source text with the full value in the formula bar to distinguish a display change from a change to the actual number. If precision was lost when the value was interpreted as a number, changing the display format will not restore the original digits.

For a real file, check rows in the middle and at the end, and rows with empty values, as well as the first few rows. A correct total does not prove that codes and identifiers were preserved.

Save the checked table as a separate copy

If you still need to split strings in particular columns after importing, see Excel Text to Columns. Distinguish importing the original file correctly from splitting existing cells into multiple columns, and prepare an empty output area first.

To continue editing in Excel, choose Save As → Excel Workbook (.xlsx) and use a different name from the CSV. To keep working in Calc, retain an ODS original. If you need an XLSX sharing copy, select XLSX as the file type and reopen it to check the result.

Saving back to CSV does not preserve multiple sheets or cell formatting. Check the sheet being exported, the encoding, the delimiter and the receiving program’s requirements. Double-clicking the saved CSV may trigger the same automatic conversions again, so check both the source text and the imported result.

If your goal is to add contacts to an account, reading the table correctly does not complete that import. In Google Contacts CSV and vCard import, check the destination account and the names and numbers actually added.

Sources

Frequently asked questions

Can I open a CSV by double-clicking it?
Some files open correctly, but Excel interprets each column using its default data format settings. For codes, phone numbers and dates that must retain their original strings, use import settings to choose and check the encoding, delimiter and data types.
Will saving a CSV as UTF-8 fix garbled Korean text?
First open a copy of the original using the correct encoding. Saving garbled characters as UTF-8 does not restore the original text. Check how the service that created the file encoded it, then compare the import preview with the expected characters.
Can I change cells to Text after leading zeros disappear?
Changing cell formatting cannot restore digits that have already been removed or altered. If the original values remain in the CSV, import it again with those columns set to Text. If you overwrote the original too, look for the first download or a backup copy.
Can I convert CSV to XLSX by renaming the extension?
Renaming an extension does not convert the file. Import the CSV correctly as a table, then choose Excel Workbook through Save As. Give the XLSX copy a distinct name or location so that it remains separate from the original CSV.
Can I open a CSV without Excel?
In free LibreOffice Calc, choose File → Open and select the CSV, then use Text Import to set its character set, delimiters and column types. Notepad can help you inspect the source text, but use a spreadsheet to check the table's columns and data types.