Split a big CSV into 50,000-row files for Salesforce

Salesforce’s Data Import Wizard imports up to 50,000 records at a time, so a bigger file has to be split. In MegaCSV, open the file, choose Export → CSV → Split into files of 50,000 rows (Salesforce import), and you get import-ready files, each with the header row and every value exactly as it was.

Why you need to split

Salesforce limits the Data Import Wizard to 50,000 records per import. Splitting in Excel risks losing leading zeros, reformatting dates and cutting off rows past 1,048,576.

Split it with MegaCSV

  1. Drop the CSV on MegaCSV.
  2. Optional: Filter to the records you’re importing, and drop columns you don’t need under Columns.
  3. Export → CSV, and under Split into files of choose 50,000 rows (Salesforce import). The parts come as one .zip file; in Chrome and Edge you can choose separate files in a folder instead.

Other ways to split

Questions

Does each file get the header row?

Yes. Every part starts with the original header, so Salesforce can map the fields in each one.

Will leading zeros and IDs survive?

Yes. A CSV split copies each row byte for byte; nothing is converted.

What about Data Loader?

Data Loader handles up to 5 million records, but works best in smaller batches too. You can split to any row count you choose.

Can I split only some of the rows?

Yes. Filter first (for example, only one region), then export; the split applies to the matching rows.

Related

Facts checked November 2, 2026.