Understand CSV size and data limits

CSV has no built-in size or character limit. Learn where real limits come from, how characters are counted, and how to keep data intact when converting or sharing.

Short answer: the format has no limit, the tools do

A CSV file is plain text. The widely used description of the format (RFC 4180) defines structure: fields separated by commas, records separated by line breaks, and rules for quoting fields that contain commas, quotes or line breaks. It does not set a maximum file size, row count or number of characters per field. When people search for a CSV character limit, they are usually hitting a limit in the program that reads, writes, uploads or stores the file.

Evidence gap: no verified figures for specific applications were available for this article, so it gives no row, column or cell numbers. Limits differ between products and can change between versions. Check the current documentation for the exact tool and version you use.

Where size and data limits actually come from

Layer | What may be limited | What to check
Spreadsheet applications | Rows and columns per sheet, characters per cell, and how many characters are displayed versus stored | Documented specifications for your version, and any warning shown when the file opens
Parsers and programming libraries | Maximum field size, and memory use when the whole file is loaded at once | Configurable field-size settings, and whether the tool reads one record at a time
Databases and import wizards | Column length and type, and total import size | Target column definitions, and import logs for rejected or truncated rows
Web upload forms and online converters | Upload size and processing time | Stated upload limits, and whether processing happens in the browser or on a server
Your own computer | Available memory and disk space | Whether the tool reads the file in pieces or holds all of it in memory

Is CSV or TSV suitable for your use?

For moving tabular data between systems, CSV or TSV is usually a sound choice. The main benefit is reach: almost every data tool can read it, and you can inspect it in a text editor. The decisive tradeoff is that the file carries no data types, no encoding declaration and no size metadata. The receiving tool decides how to interpret every value, and it may truncate, reformat or reject data without making that obvious.

  • Keep the raw plain-text file and inspect it directly, rather than opening and re-saving it in a spreadsheet, when:
  • You need to verify the exact contents of a file.
  • The file may exceed what your spreadsheet can hold.
  • Identifiers, postal codes or long numeric codes must keep leading zeros and every digit.
  • You are auditing what a converter or export actually produced.
  • The data will be loaded by a program, not read by a person.

What a CSV-to-TSV conversion actually changes

In this context, transformation means changing delimiters and quoting. It does not mean reversing, mirroring or restyling text. Converting CSV to TSV changes the stored characters: commas between fields become tab characters, and quotation marks may be added or removed. CSV relies on quoting to protect commas and line breaks inside a field. Many TSV workflows use little or no quoting. A field that contains a tab or a line break must therefore be escaped, replaced or quoted, or the columns and rows after it will shift.

Opening a file in a spreadsheet is a separate step from converting it. The spreadsheet may display values as dates or numbers, drop leading zeros, or round long numbers. At first these are display changes. They become stored changes as soon as you save the file again.

id,name,note
1,"Smith, Jane","Said ""hello""
then left"
2,Lee,Plain

This example has four physical lines but three records: a header and two data rows. The first data row is valid because the note field is quoted, so its comma and line break belong to the value. The doubled quotes represent one literal quotation mark. A tool that counts lines instead of records will report the wrong row count. A splitter that cuts at every line break will break record 1 into two pieces.

Why a "character limit" is ambiguous

A limit can be measured in bytes, in Unicode code points, in UTF-16 code units, or in characters as a reader perceives them. The same text can produce a different count under each method, so first find out which unit your tool uses.

  • "café" with a precomposed é: 4 code points and 5 bytes in UTF-8.
  • "café" written as e plus a combining acute accent: it looks identical, but has 5 code points and 6 bytes in UTF-8.
  • A thumbs-up emoji with a skin-tone modifier: one visible symbol, 2 code points, 4 UTF-16 code units and 8 bytes in UTF-8.

Truncation can also damage text in ways a simple count does not show. Cutting by bytes can split a multi-byte character and leave a garbled symbol. Cutting by code points can separate a letter from its combining accent, or break an emoji sequence. Quoting adds overhead as well. In the file, a field's length includes its surrounding quotes and any doubled internal quotes, but the parsed value does not. A file-size limit and a field-length limit therefore measure different things.

Will the data stay usable after copying, sharing or reopening?

Copying and pasting is a common way to lose structure. Many spreadsheet applications put tab-separated text on the clipboard. How a destination such as a chat app, email client or form handles that text depends on the destination. Test with the place you are actually pasting into, and do not assume one successful paste works everywhere.

  • Common ways data degrades in practice:
  • A spreadsheet truncates or drops data when opening the file, and the loss becomes permanent when the file is saved.
  • Values are reformatted, for example identifiers turned into numbers or text turned into dates.
  • Record counts stop matching between systems because of line breaks inside fields.
  • Accented or non-Latin characters become garbled because the file was read with the wrong encoding.
  • Line-based search tools miss matches when a value spans two physical lines.

Accessibility: a raw CSV has no markup that identifies header cells or table structure. How assistive technology presents it depends on the application that opens it, and no scoped screen-reader test was available for this article. If people need to read the data rather than process it, share it as a properly built table with a marked header row, or add a short plain-language summary. Then check the result in the destination.

Practical checks for large or unusual files

  • Look at the raw file in a text editor or command-line tool before opening it in a spreadsheet.
  • Count records with a real CSV parser, not by counting lines.
  • Confirm which encoding the destination expects, such as UTF-8 with or without a byte order mark.
  • When importing, set identifier columns to text so leading zeros and long codes survive.
  • Split large files by record, repeat the header row in each part, and never split inside a quoted field.
  • Keep the original file untouched and compare it with the output after any round trip.
  • Do not judge an online converter's privacy or data retention by its appearance. Read its stated policy, and avoid uploading sensitive data if the policy is unclear.

The short script below counts records and finds the longest field. Python's built-in csv module handles quoted fields and embedded line breaks correctly. It raises an error if a field exceeds its configured size limit, and you can adjust that limit with csv.field_size_limit().

import csv

records = 0
longest = 0
with open("data.csv", newline="", encoding="utf-8") as f:
    for row in csv.reader(f):
        records += 1
        for field in row:
            longest = max(longest, len(field))

print("records (including header):", records)
print("longest field, in code points:", longest)