Import CSV into LibreOffice Calc
How LibreOffice Calc's Text Import dialog turns CSV or TSV files into spreadsheet cells, what it can change, and how to keep IDs, dates and encodings intact.
Importing a CSV file into LibreOffice Calc is a conversion. A flat text file becomes rows, columns and typed cell values. Most of the time that is what you want, but the conversion makes decisions on your behalf. It decides where fields split, which character encoding applies, and whether a value is text, a number or a date. This review covers what the import changes, where meaning can be lost, and when it is better to leave the data as plain text.
A note on sourcing: no version-specific test results or measurements were available for this article. The descriptions below reflect the documented, long-standing behavior of Calc's Text Import dialog. Option names and availability can differ between LibreOffice versions and language settings, so check the dialog in your own installation.
Is importing a CSV into Calc suitable for your use?
Calc import suits you if you want to sort, filter, calculate, chart or visually inspect tabular data, and you are willing to set the import options deliberately. Its main benefit is control. Calc's import dialog lets you set the encoding, the separator and the type of each column before any data lands in cells.
The decisive tradeoff is type detection. If you accept the defaults, Calc may reinterpret values. Leading zeros can disappear from codes, date-like strings can become dates, and long digit strings can turn into numbers. Saving back to CSV writes out Calc's interpretation, not necessarily the original text.
Plain text is the better choice in these cases:
- You need to verify, diff or audit the file exactly as delivered.
- The file is a data exchange format that another system will read back, and byte-for-byte fidelity matters.
- The data is mostly identifiers, codes or mixed formats where nothing should be treated as a number or date.
- You only need to read or search the file, not calculate with it.
- The file is very large and only a quick look is needed, in which case a text editor or command-line tool avoids the conversion entirely.
What the import actually changes
CSV import does not reverse, mirror or restyle characters. Here, "transformation" means three structural changes to the data.
- Decoding: the bytes in the file are read as characters using the character set you choose, such as UTF-8 or a legacy Windows code page. If the wrong character set is chosen, accented letters and non-Latin scripts appear garbled.
- Splitting: each line is divided into fields using the separator you choose, such as comma, semicolon, tab or another character. Text inside the string delimiter, usually a double quote, is kept together even if it contains the separator.
- Typing: each field becomes a cell value. Unless a column is set to Text, Calc tries to recognise numbers and dates, and this depends on the locale (language) setting chosen in the dialog.
The source file is not modified by opening or importing it. The changes exist only in the spreadsheet until you save. If you save over the original CSV, Calc rewrites it from the cell contents. Any values Calc converted on import are then written back in converted form.
How to open the Text Import dialog
- File > Open, then choose a file with a .csv or .tsv extension. Calc normally shows the Text Import dialog before loading.
- To add the data to an existing workbook, use the Sheet menu's option for inserting a sheet from a file.
- To paste copied delimited text, use Paste Special and choose unformatted text, which opens the same import dialog.
- If a .txt file opens in Writer instead of Calc, open it from within Calc or choose the Text CSV file type explicitly in the Open dialog.
Key settings in the Text Import dialog
| Setting | What it controls | When to change it |
| Character set | How bytes are decoded into characters | Pick the file's actual encoding. Choose UTF-8 for most modern exports, or a legacy code page if accented characters look wrong in the preview |
| Language / locale | How numbers and dates are recognised (decimal separator, day/month order) | Set it to match the file's origin, not your own system, when they differ |
| From row | The first line to import | Skip preamble lines that some exports place above the header |
| Separated by | Field separator: tab, comma, semicolon, space or other | Match the file. Semicolons are common in exports from regions that use a comma as the decimal separator |
| Merge delimiters | Treats consecutive separators as one | Usually leave it off for CSV, because consecutive commas often mean genuinely empty fields |
| String delimiter | Character that wraps fields containing separators | Usually a double quote; change only if the file uses something else |
| Format quoted field as text | Keeps quoted fields as text rather than detecting them as numbers | Helps when the exporter quoted values specifically to protect them |
| Detect special numbers | Whether dates, times and similar formats are recognised | Turn it off if you want only plain numbers detected |
| Column type (per column) | Standard, Text, Date in several orders, US English, or Hide | Set ID, ZIP, phone and code columns to Text before importing |
Some recent versions add further options, such as whether to evaluate formulas found in the data or how to treat scientific notation. If your dialog shows these, read them before importing. Evaluating formulas from an untrusted file is generally best left off.
An illustrative example
Consider this small file. It is a constructed example, not a test result.
id,zip,joined,amount
007,02134,03/04/2025,"1,250.00"
Suppose every column is left as Standard and the locale is set to English (USA). Calc is then expected to read the values like this:
- id becomes the number 7.
- zip becomes the number 2134.
- joined becomes a date, March 4, 2025.
- amount becomes the number 1250. The quotes keep it as one field despite the embedded comma, and it is still detected as a number unless the option to format quoted fields as text is enabled.
With a day-first locale, the same joined value would be read as April 3, 2025. That is a silent change of meaning. Setting id and zip to Text preserves them exactly. Setting joined to the correct date order, or to Text, removes the ambiguity.
Will the data stay readable and usable after saving or sharing?
Within Calc, imported data is ordinary spreadsheet content. It can be edited, searched and read by assistive technology in the same way as any other cell content. The risks for sharing come from conversion and export, not from presentation.
- Saving as CSV writes only the active sheet. Other sheets, formulas, formatting and charts are not kept.
- Use File > Save As with the Text CSV type and enable the option to edit filter settings. This lets you choose the character set, field delimiter and string delimiter for the output, rather than inheriting defaults.
- The export dialog offers a choice between saving cell content as shown or as stored values. As shown keeps display formatting such as currency symbols or date formats. Stored values are often better for machine consumption. Choose based on the receiving system.
- When saving, Calc asks whether to keep the current format or save in its native format. Choosing to keep CSV discards everything CSV cannot represent.
- If the recipient's software expects a different encoding or separator than you used, they may see garbled characters or a single merged column. Confirm their requirements rather than assuming defaults match.
Keep an untouched copy of the original file whenever the data matters. The original plain text is the reference version, and the Calc import is a working view of it.
Gaps and open questions
Several points are not covered by evidence here:
- Exact option names and defaults for a specific LibreOffice release.
- Performance limits with very large files.
- How particular destination systems handle Calc's CSV output.
- How specific screen readers handle the Text Import dialog itself.
- For any of these, test with a copy of your own file and target environment before relying on the result.