Developer ToolsFree calculatorPDF, Excel, Word export

CSV Export File Size and Split Calculator

Before you run a big ERP extract, you want to know whether the result will open in Excel or fit through an upload portal. This calculator estimates CSV size from rows, columns and encoding, then tells you how many files you need and how many rows go in each.

Your numbers

rows

Number of rows you expect, excluding the header.

columns
chars

Take a sample of 1,000 rows and divide the file size by rows times columns.

Bytes per character on average.

MB

For example an email attachment or portal upload limit.

%

Your results

Estimated CSV size
611.78
Files needed overall
25
Average bytes per row
257
Field bytes, delimiters between columns and a two byte line ending.
Size after zip or gzip
122.36
Files needed for Excel row limit
3
Excel allows 1,048,576 rows including the header row.
Files needed for size cap
25
Rows per file
100,000

Estimates assume average field lengths. Quoted fields, embedded commas and long text add bytes. Sample real rows before you design an export or a split.

Save results:

Estimated CSV size (MB) versus row count

Sweeps Data rows from 100000 to 5000000, holding your other inputs fixed.

Automate your recurring extracts

Optional: tell us which ERP exports you run by hand each week and we will outline a governed, read-only alternative.

Optional. The tool and every export work without this. No spam.

How to use it

Enter the row count from a SELECT COUNT, the number of columns and the average characters per field. The quickest way to get that average is to export 1,000 sample rows and divide file size by rows times columns. Choose the encoding that matches your data: Chinese, Japanese and Korean text uses about three bytes per character in UTF-8. Add the size limit of the destination and the zip saving. The tool returns the size and the number of files.

  • Sample real rows, not the header
  • Pick the encoding for your longest text columns
  • Use the Excel row limit as a hard floor on file count

The arithmetic

Each row consists of its field bytes, one delimiter between each pair of columns and a line ending of one or two bytes. So row bytes are columns times average characters times bytes per character, plus the delimiters and line end. Total size is rows times row bytes. Excel and many tools stop at 1,048,576 rows including the header, so the file count is the larger of the row-limit split and the size-cap split.

Worked example

2.5 million rows, 18 columns and 12 characters per field at 1.1 bytes gives about 257 bytes per row and roughly 613 MB. Excel needs at least 3 files because 2.5 million is more than twice the row limit. A 25 MB portal cap needs 25 files, which dominates. Zipped at 80 percent, the same data is around 123 MB, which still needs 5 uploads. That tells you to compress, filter or load to a database instead of Excel.

Common mistakes

People forget the header row when splitting, which silently drops a record in Excel. Others split by byte count in the middle of a quoted field and corrupt the file. Always split on row boundaries and repeat the header in each part. For anything above a few hundred thousand rows, ask whether Excel is the right destination.

Frequently Asked Questions

What is the Excel row limit?

Modern Excel worksheets hold 1,048,576 rows and 16,384 columns. The header row counts as a row, so a CSV with a header holds at most 1,048,575 data rows per sheet. Older xls format is limited to 65,536 rows.

Why is my CSV bigger than expected?

Quotes around text fields, long descriptions, trailing spaces from fixed-width CHAR columns and wide encodings all add bytes. Trim padded CHAR values and only quote when needed. Use the average length from a real sample.

How do I split a CSV safely?

Split on whole rows, repeat the header in each file, and keep the same column order and encoding. Avoid splitting by raw bytes. Many scripting tools and database export utilities can write chunks of a fixed number of rows.

Does zip really save 80 percent?

For text-heavy ERP extracts with repeated codes and dates, 75 to 90 percent is common. Highly random data such as hashes or GUIDs compresses much less. Compress a real sample to check before you rely on it.

If analysts keep exporting huge CSVs by hand, we can set up a governed, read-only extract or chat interface over your ERP data on your own servers.