Export a Table to CSV: What Survives and What Doesn't

A review of exporting a table to CSV: what the conversion changes, what it drops, and how to keep the file readable and usable after sharing.

Exporting a table as CSV turns rows and columns into plain text. Each row becomes a line, and a delimiter, usually a comma, separates the values. The format is simple and widely accepted, which is why it is the default way to move tabular data between spreadsheets, databases and scripts. Some parts of a table survive that move intact, others are dropped, and some depend on the program that opens the file. This review covers which is which.

Is CSV export suitable for your use?

CSV is a good fit when the goal is to move data: importing records into another system, feeding a script, archiving values in a format nearly any tool can read, or comparing versions as text. Its main benefit is portability. The file holds only characters, so it does not depend on a particular application.

The main cost is that a CSV file holds values and nothing else. Formatting, formulas, cell types, merged cells, comments and multiple sheets do not carry over. If any of these carry meaning, for example a red fill that marks overdue items or a formula that must keep recalculating, the export loses that information unless you first turn it into a value in a column.

CSV is the wrong choice when people will read the file rather than import it. A formatted table, the original spreadsheet or a short prose summary will serve human readers better. A practical approach is to keep the native file as the master copy and treat the CSV as a derived export.

What the export actually changes

It helps to separate stored characters from visual presentation. A CSV export keeps the characters in each cell and drops the presentation around them. Bold text, colors, column widths, borders, number display formats and any CSS styling of an HTML table are presentation, so they do not carry into the file. Whether a tool exports a number's displayed form or its underlying value varies between tools and settings. Check this for the tool you use.

The export does not reverse, mirror or reorder text. Characters stay in the same order within each cell, and rows and columns stay in the same sequence unless the tool applies a sort or filter. Font choices are lost because they are presentation. There is one exception. Decorative letters made from Unicode characters, such as the mathematical bold or script letters sold as "fancy fonts," are real stored characters, so they pass through unchanged. They then carry the same search and screen reader problems they had in the original table.

Right-to-left text, such as Arabic or Hebrew, is stored in logical order, the order in which it is read. How it looks in a text editor depends on that editor's handling of mixed text direction. A line that looks scrambled is often still stored correctly.

The structural changes matter most for meaning:

  • Formulas are replaced by their last calculated values.
  • Merged cells are usually split. The value tends to land in the first cell, leaving the others empty.
  • Multi-row headers flatten into separate rows, which importers may treat as data.
  • Only one sheet or table is exported per file.
  • Cell types such as date, currency or percentage are not recorded. Everything becomes text, and the receiving program has to guess the type.
  • Character encoding becomes a property of the file. UTF-8 is the common choice, but not every tool defaults to it.

Quoting rules handle values that contain the delimiter itself. The widely used convention, described in RFC 4180, works like this:
• A value that contains a comma, a double quote or a line break is wrapped in double quotes.
• A double quote inside such a value is written twice.
For example, this source table:

Name | City | Note
Smith, Ana | Boston | Said "hello"
Lee | Denver | Two
lines

The third row's Note cell contains a line break between "Two" and "lines." Exported under that convention, the table becomes:

Name,City,Note
"Smith, Ana",Boston,"Said ""hello"""
Lee,Denver,"Two
lines"

The output has four physical lines but only three records, because the quoted line break belongs inside a value. A tool that splits the file naively on line breaks or commas will misread it. Not every program follows this convention exactly. Some export tab-separated files instead, which avoids most comma conflicts but has the same issue with tabs and line breaks inside cells.

Will the file stay readable and usable after sharing?

Most problems appear when someone else opens the file. These are the usual weak points. How each one behaves depends on the receiving application, its version and the user's regional settings, and this review did not test specific destinations.

  • Type guessing. Spreadsheet programs often convert text that looks like a number or date. This can drop leading zeros from ZIP codes or IDs, round long numbers, or turn codes like 3-4 into dates.
  • Delimiter and locale. In regions that use a comma as the decimal separator, spreadsheets may expect semicolons between values. A comma-delimited file can then open as a single column.
  • Encoding. A UTF-8 file opened as a different encoding shows accented letters and symbols as garbled characters. Some tools rely on a byte order mark at the start of the file to detect UTF-8.
  • Line endings. Files moved between operating systems can have different line-ending characters. Most modern tools accept both, but strict parsers may not.

Copying and pasting behaves differently from opening a file. Pasted into a document or chat message, CSV shows up as raw text full of commas and quotes. Pasted into a spreadsheet, it may or may not split into columns, depending on the program and its paste settings.

Accessibility is a real limitation for human readers. A raw CSV file has no markup that links a value to its column header. A screen reader in a text editor will generally read it as a run of values and punctuation, which is hard to follow on a wide table. Once the file is opened in a spreadsheet, the program's own accessibility support applies instead. No assistive technology was tested for this review. If people will read the data, also share it as a properly marked-up table, or in the native spreadsheet with headers defined.

Search and editing are strengths of the format. Plain text is easy to search, filter with scripts and compare between versions. Hand-editing in a text editor is risky, though. One deleted quote or extra comma can shift every value after it in that record.

There is also a security issue. When a spreadsheet opens a CSV file, a cell that begins with =, +, - or @ may be treated as a formula. This is known as CSV or formula injection. It matters most when the exported data came from untrusted input, such as form submissions. Check how your export tool or your recipients' software handles this.

Checks before you share an export

  • Turn meaning carried by formatting, such as colors, bold text or merged cells, into explicit columns or values.
  • Make sure there is a single header row and that the column names make sense on their own.
  • Confirm the encoding, preferably UTF-8, and whether your recipients need a byte order mark.
  • Confirm the delimiter your recipients' software and region expect.
  • Open the exported file in the destination tool. Look at fields with leading zeros, long numbers, dates, commas, quotes and line breaks.
  • Review cells that start with formula characters if the data came from untrusted sources.
  • For readers rather than importers, share an accessible formatted version alongside the CSV.

What this review does not establish

No specific export tool, spreadsheet application or screen reader was tested, and no product documentation was reviewed. The points above are general properties of the CSV format and commonly reported behaviors. They are not verified results for any particular program. How a given tool handles encoding, number formats, quoting and formula characters needs to be checked against its documentation or a test file of your own.