Is CSV structured or unstructured data?
CSV is generally structured, tabular data stored as plain text. Learn why some call it semi-structured, and what conversion, copying and import can change.
CSV is generally treated as structured data: tabular data stored as plain text. Its structure comes from convention rather than enforcement. That is why some people call it semi-structured, and it is also why care is needed when you convert, import or share a CSV file.
The short answer
A CSV (comma-separated values) file organizes data into records and fields. Each line is usually one record, and values within a record are separated by a delimiter, most often a comma. When every row has the same number of fields and each column means the same thing on every row, the data fits the usual definition of structured data. It maps directly onto rows and columns and can be loaded into a spreadsheet or a database table. Unstructured data has no predefined row-and-column organization. Examples include free-form prose, images and audio.
The format carries very little information about itself. It has no built-in schema, no declared data types, no mandatory header row and no declared character encoding. A value such as 00742 is just a sequence of characters until a program decides whether to treat it as text or as a number. Common conventions are described in RFC 4180, but that document is informational rather than a binding standard, and many real-world files depart from it. "Structured" therefore describes well-formed CSV. A file with uneven column counts or mixed content in a column is tabular in form but unreliable in practice.
Terminology varies by source. Some writers call CSV semi-structured to stress that it lacks an enforced schema. Others reserve that label for self-describing formats such as JSON and XML and classify CSV as structured. Both usages exist, so check which definition a course, tool or job description is using.
How CSV compares with other data types
| Characteristic | Well-formed CSV | JSON or XML | Free text |
| Organization | Fixed columns, one record per line (quoted fields may span lines) | Nested, self-describing keys or tags | No predefined organization |
| Schema enforced by the format itself | No | No (an external schema is optional) | No |
| Data types | All values are text; the reading program interprets them | JSON has basic types (string, number, boolean, null); XML content is text unless a schema adds types | Not applicable |
| Usual label | Structured (sometimes semi-structured) | Semi-structured | Unstructured |
Is converting or importing CSV suitable for your use?
Converting between CSV and TSV (tab-separated values), or loading CSV into a spreadsheet or database, works well when you need to move tabular data between tools. The main benefit is reach: nearly every data tool can read delimited text. The decisive tradeoff is that the format carries no types or schema. Meaning can therefore be lost or altered when a program interprets the text. Keep the original plain delimited file whenever exact values matter.
- Conversion or import is usually a good fit when:
- You are moving a table between applications that both handle delimited text.
- The receiving tool needs a different delimiter. For example, TSV can be safer when many values contain commas.
- You control the import settings and can mark columns as text where needed.
- Keep the original, unconverted file when:
- The data contains identifiers with leading zeros, long account or product numbers, or codes that resemble dates.
- You need an auditable record that can be compared line by line, for example in version control.
- You are not sure how the destination will interpret encoding, delimiters or quoting.
What a CSV-to-TSV conversion actually changes
A delimiter conversion changes the stored characters. It does not change how the data is displayed. The separator between fields is replaced, in this case comma to tab, and quoting may be removed or rewritten. The field values themselves should come through unchanged. Opening a CSV in a spreadsheet is different. The grid you see is a presentation of the file, and the application may also reinterpret values as it imports them.
CSV input:
id,name,note
00742,"Smith, J.","Said ""hello"""
00743,Lee,Plain value
One valid TSV output:
id name note
00742 Smith, J. Said "hello"
00743 Lee Plain value
In the CSV example, the second field is quoted because it contains a comma. The third field is quoted because it contains quotation marks, and each literal quote is written twice. After conversion, each field contains the same text: Smith, J. and Said "hello". Some tools keep CSV-style quoting in their TSV output instead. Other programs may then read those quote marks as literal characters, so check how your destination reads quotes.
- Points where conversion can go wrong:
- Embedded tabs: the strict TSV definition does not allow tabs inside fields, so tools may escape, quote, replace or reject them.
- Embedded line breaks: a quoted CSV field can span lines, but a naive line-by-line converter will split it into broken records.
- Regional delimiters: in locales that use a comma as the decimal separator, some spreadsheet applications produce and expect semicolon-separated files under the CSV name.
- Encoding: if the writing and reading tools assume different character encodings, accented letters and other non-ASCII characters can appear garbled.
"Format" is ambiguous in this context. It can mean the file format, which covers the delimiter, quoting and encoding. It can also mean display formatting in a spreadsheet, such as number styles, fonts, colors and column widths. Only the file-format details live in a CSV. Display formatting, formulas and multiple sheets are not stored, so saving a workbook as CSV discards them. Likewise, transposing a table (swapping rows and columns) is a structural change, not a delimiter conversion.
Will the data stay readable and usable after copying or sharing?
Copy and paste: many spreadsheet applications commonly place copied cell ranges on the clipboard as tab-separated text. This is one reason TSV-style text often pastes into a grid as separate columns. Pasted CSV text may instead land in a single column until it is split with a text-to-columns or import feature. Behavior depends on the application, version and settings, so test a small sample in your actual destination.
Spreadsheet import: depending on settings, many spreadsheet applications automatically convert values that look like numbers or dates. This can drop leading zeros, show long digit strings in scientific notation and possibly lose precision, or turn codes into dates. To avoid this, use an import option that sets sensitive columns to text, or use a tool that does not reinterpret values. Avoid reopening and re-saving a CSV in a program that may have altered it.
Accessibility: raw CSV is plain text, but it is hard to read as a table. A screen reader reading the raw file will generally present a stream of values and punctuation and will not announce column headers. That becomes hard to follow beyond a few columns. For people, present the data as a properly marked-up table with header cells, in a document or web page, or add a short summary. Keep the CSV as the machine-readable source. How a specific screen reader handles a given file or table was not tested for this article and should be checked in that environment.
Search and editing: because CSV is plain text, it can be searched with ordinary text tools and compared line by line. Hand editing carries risk, because a misplaced comma or quote shifts every following field in that row. Splitting lines on commas in a script fails on quoted fields. A CSV-aware parser or editor is the safer choice.
Checklist before converting or sharing a CSV file
- Confirm every row has the same number of fields and that a header row is present, if the destination expects one.
- Identify columns that must stay as text, such as IDs, ZIP codes, phone numbers and product codes.
- Agree on the delimiter, quoting style and character encoding with whoever receives the file.
- Test a small sample containing commas, quotes, tabs, line breaks and non-ASCII characters in the destination tool.
- Keep an unmodified copy of the original file.
- For human readers, provide a readable table or summary alongside the raw file.
Limits of this overview
This article describes the CSV and TSV formats and commonly documented behaviors. No specific conversion tool, spreadsheet application, version or assistive technology was tested, and no measurements are reported. How a particular product handles import, clipboard data, encoding or screen-reader output may differ from the general patterns described here. Verify the behavior in the tools you actually use.