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
Number of rows you expect, excluding the header.
Take a sample of 1,000 rows and divide the file size by rows times columns.
Bytes per character on average.
For example an email attachment or portal upload limit.
Your results
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.
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.
Related Tools
ERP Incremental Extract Watermark SQL Generator
Generate a T-SQL script that pulls only new and changed ERP rows using a watermark control table.
Developer ToolsSQL Server Index Size Estimator Calculator
Estimate how many GB a new nonclustered index will add to your ERP database, and see how fill factor changes the size.
ERP OperationsERP Database Backup and Restore Time (RTO and RPO) Calculator
Estimate backup size, restore time (RTO) and worst-case data loss (RPO) for an ERP database from full, differential and log backups.
SAPSAP OData Pagination and Extraction Time Calculator
Find a sensible $top page size and thread count by modelling call count, per-call time and total extraction time.
More Developer Tools tools
See all- SAP Sales Order ABAP SELECT Generator (VBAK, VBAP, VBFA)
- SAP Sales Order Create BAPI ABAP Generator (BAPI_SALESORDER_CREATEFROMDAT2)
- SAP ABAP Open Items SELECT Generator
- SAP ACDOCA SQL Query Generator
- SAP QM Inspection Lot ABAP SELECT Generator
- SAP Quality Notification Pareto SQL Query Generator
- SAP QM Usage Decision BAPI Skeleton
- ABAP Custom Exception Class Generator
- ABAP Unit Test Class Generator