Skip to main content

Split a list

Divide the items of a list into several groups of the size you want, to prepare batches, share out work or process entries in successive rounds.

  • Clipboard

Embed this widget

Customize the result, check the live preview, then copy the code.

Preview

Embed code type

Code to copy

Responsive and automatically resized by Bethemesh.

Group size

Was this tool useful?

How does this tool work?

Split a list into groups of the size you choose while keeping the order of its items. It helps when preparing processing batches or dividing an inventory into sections.

Enter one item per line and set the maximum number of items in each group; the starting value is ten. The tool trims spaces at the ends of lines, ignores empty lines and keeps duplicates. Groups are separated by a line of three hyphens surrounded by blank lines. The last group may contain fewer items than the others. The separators are part of the exported text, so remove them if the system you import into expects values only. The right group size depends on what comes next. For a manual check, short batches are easier to go through. For a repetitive operation, use the maximum capacity accepted by the destination system. For example, a list of twenty-three references split into groups of ten gives two full groups and a last group of three. Nothing is added to fill the last batch. Splitting is not an even distribution across a fixed number of people: the tool fills one group after another up to the requested size. It also keeps the input order; it neither shuffles nor sorts the values. If duplicates must be excluded, clean the list first with the dedicated tool. Because empty lines and edge spaces are removed, compare the result with the original when those characters matter. Three-hyphen separators make batches easy to read but may not suit an automated import, so check the expected format before pasting the text into a spreadsheet, a command or a form. For sensitive work, count the useful items before and after splitting to make sure no line has been lost. When sharing work between several teams, remember that splitting follows the sequence of lines: it takes neither workload nor difficulty into account. If you need a balanced allocation, check the number and nature of the items given to each group separately.

How to use this tool

  1. Paste the list

    Put one item per line in the field.

  2. Set the size

    Choose the maximum number of items per group.

  3. Check the groups

    Look at the separators and the last group before exporting.

Use cases

Preparing batches

Split a list of references into groups sized for manual processing.

Organising an inventory

Divide items into successive sections without changing their order.

Checking an export

Review each group before copying the data into another tool.

Examples

Two items per group

Input

A
B
C

Result

A
B

---

C

Seven items in groups of three

The last group holds what is left: 7 items split by 3 give two full groups and a group of one.

Input

Monday
Tuesday
Wednesday
Thursday
Friday
Saturday
Sunday

Result

Monday
Tuesday
Wednesday

---

Thursday
Friday
Saturday

---

Sunday

Tips and best practices

  • Duplicates are kept: remove them separately if needed.
  • The three hyphens separate groups; they are not items of the list.
  • The group size is a whole number: a decimal value is rounded down and anything below 1 becomes 1.

Frequently asked questions

Can the last group be smaller?

Yes. It simply contains the remaining items; nothing is added to fill it.

Do empty lines count?

No, they are ignored and do not take a place in any group.

Does the order change?

No, the items keep their original order.

Are duplicates removed?

No, they are kept. Use the duplicate remover first if you need unique values.

How are the groups separated?

By a line of three hyphens with a blank line above and below it.

Related tools

Tools similar or complementary to this one.

Similar tools

Compare two lists to find the items they share and the ones that differ.

Text & writingUse this tool

Merge two lists into a single set of lines ready to copy or reuse.

Text & writingUse this tool

Sort the items of a list alphabetically or numerically, in ascending or descending order.

Text & writingUse this tool