
People handling a large CSV table can divide it when their next step requires several blocks of the same size.
Split a CSV table into equally sized blocks, creating regular portions that are easier to distribute wherever the next task requires them.
The sample asks for blocks of two rows taken from a short table of four cities. Look at how many blocks appear in the output, how the original rows are spread between them, and whether any row was lost along the way.
Input
2
--
id,city
1,Lyon
2,Nantes
3,Lille
4,Brest
Everything happens in your browser: the table is cut on the spot, with no upload, and your rows never leave your device.
The number you enter applies to the rows of your table. When the total does not divide evenly, the final portion simply holds fewer rows than the ones before it, which is expected.
No, the split is driven by a block size rather than a target number of portions. To reach a given number of files, work out the rows per block first.
The output appears as text that you copy block by block and then save wherever you like. There is no single archive holding all the portions in one download.