᠎᠎᠎          
51K

List item grouper

World's simplest list tool

This is a super simple browser-based application that groups items in any list. You can specify the number of items per group, customize the separating symbol between groups and group items, wrap groups in custom quotes (or brackets), and fill incomplete groups with custom padding items. Created by list geeks from team Browserling.
Announcement Check out our new project!
We just launched a new site – Online GIF Tools – a collection of utilities for quickly editing GIFs. Check it out!
Input Item Separator
Separate input list items by any character.
Separate input list items by a regexp.
Enter a character or regular expression here.
Group Size and Separators
Number of items in a group.
Item separator character.
Group separator character.
Group's left wrap symbol.
Group's right wrap symbol.
Empty Items and Padding
Ignore empty items and don't include them in the groups.
Fill non-full groups with a custom item (enter below).
Use this character or item to pad non-full groups.
List item grouper tool What is a list item grouper?
This online tool creates groups from items in a list. In the options, you can enter how many items should go in a single group and in the output you'll get custom-formatted groups. In the options, you can specify the symbol to put between groups and the symbol to put between items within each group. You can enclose each group in parentheses, quotes, brackets, or other characters using the left and right group-wrap options. If the list has empty items, you can get rid of them via the "Delete Empty Items" checkbox option. If there aren't enough items in the last group, you can add padding and fill the last non-full group with a custom item. The program works with all possible list formats. As list items can be separated by various characters, you can use either a single character separator or a regular expression separator to flexibly specify the input items. Listabulous!
List item grouper examples Click to use
Groups of Size 3
This example demonstrates grouping of list items and creates 9 groups of 3 items. The input list contains all alphabet letters (26 letters, separated by a semicolon) and the output is groups of letter trigrams. As the last group is missing one letter, we enable padding and add the underscore symbol as the padding element.
a;b;c;d;e;f;g;h;i;j;k;l;m;n;o;p;q;r;s;t;u;v;w;x;y;z
[a, b, c] [d, e, f] [g, h, i] [j, k, l] [m, n, o] [p, q, r] [s, t, u] [v, w, x] [y, z, _]
Required options
These options will be used automatically if you select this example.
Separate input list items by any character.
Enter a character or regular expression here.
Number of items in a group.
Item separator character.
Group separator character.
Group's left wrap symbol.
Group's right wrap symbol.
Ignore empty items and don't include them in the groups.
Fill non-full groups with a custom item (enter below).
Use this character or item to pad non-full groups.
Group Hexagon Coordinates
In this example, we group the coordinates of a regular hexagon. The input coordinates are given as a space-separated list "x1 y1 x2 y2 x3 y3 …". What we want to do is create vector point pairs such as "(x1, y1); (x2, y2); (x3, y3); …". To do that, we use the space character as the input coordinate separator, and to create vectors, we group them by pairs. We wrap the coordinates in parentheses, put a comma between the x and y group items, and a semicolon between individual groups.
2.5 9.33 0 5 2.5 0.66 7.5 0.66 10 5 7.5 9.33
(2.5, 9.33); (0, 5); (2.5, 0.66); (7.5, 0.66); (10, 5); (7.5, 9.33)
Required options
These options will be used automatically if you select this example.
Separate input list items by any character.
Enter a character or regular expression here.
Number of items in a group.
Item separator character.
Group separator character.
Group's left wrap symbol.
Group's right wrap symbol.
Ignore empty items and don't include them in the groups.
Fill non-full groups with a custom item (enter below).
Use this character or item to pad non-full groups.
Convert a List to a TSV
In this example, we use our list item grouper to convert a food list to tab-separated values (TSV). As spaces are chaotically used between the items of the input list, we use the item separating regular expression "/\s+/" to match them. We create a TSV with three columns (three groups), separate them with a tab character, and put newlines between the groups.
beef buns cake corn crab dill fish kiwi kale lime meat mint milk pear plum pate pork rice soup tuna tart
beef buns cake corn crab dill fish kiwi kale lime meat mint milk pear plum pate pork rice soup tuna tart
Required options
These options will be used automatically if you select this example.
Separate input list items by a regexp.
Enter a character or regular expression here.
Number of items in a group.
Item separator character.
Group separator character.
Group's left wrap symbol.
Group's right wrap symbol.
Ignore empty items and don't include them in the groups.
Fill non-full groups with a custom item (enter below).
Use this character or item to pad non-full groups.
Group a List of Synonyms
In this example, we group a list of words that are synonyms. We separate the input words in the list with a semicolon and as some of the items are empty, we enable the option to delete/skip empty items from the groups. We create groups of four words, put a dash between them, and enclose them in square brackets. We print one group per line and fill incomplete groups with an ellipsis.
Story; Tale; Yarn; ; Narrative; Put; Place; Assign; Keep; Run; Race; Sprint; Dash; Idea; ; Thought; Concept; Notion; ; ; Love; Like
[Story - Tale - Yarn - Narrative] [Put - Place - Assign - Keep] [Run - Race - Sprint - Dash] [Idea - Thought - Concept - Notion] [Love - Like - … - …]
Required options
These options will be used automatically if you select this example.
Separate input list items by any character.
Enter a character or regular expression here.
Number of items in a group.
Item separator character.
Group separator character.
Group's left wrap symbol.
Group's right wrap symbol.
Ignore empty items and don't include them in the groups.
Fill non-full groups with a custom item (enter below).
Use this character or item to pad non-full groups.
Single Item Groups
This example creates unit groups of one symbol. The input list is all ten digits and we split them into individual items via a tricky regular expression "//". Next, we wrap each digit in curly braces and we concatenate all groups together by leaving the group separator symbol empty in the options.
0123456789
{0}{1}{2}{3}{4}{5}{6}{7}{8}{9}
Required options
These options will be used automatically if you select this example.
Separate input list items by a regexp.
Enter a character or regular expression here.
Number of items in a group.
Item separator character.
Group separator character.
Group's left wrap symbol.
Group's right wrap symbol.
Ignore empty items and don't include them in the groups.
Fill non-full groups with a custom item (enter below).
Use this character or item to pad non-full groups.
Pro tips Master online list tools
You can pass input to this tool via ?input query argument and it will automatically compute output. Here's how to type it in your browser's address bar. Click to try!
https://onlinelisttools.com/group-list-items?input=a%3Bb%3Bc%3Bd%3Be%3Bf%3Bg%3Bh%3Bi%3Bj%3Bk%3Bl%3Bm%3Bn%3Bo%3Bp%3Bq%3Br%3Bs%3Bt%3Bu%3Bv%3Bw%3Bx%3By%3Bz&string-separator=true&input-separator=%3B&group-size=3&group-separator=%5Cn&item-separator=%2C%20&left-wrap=%5B&right-wrap=%5D&skip-empty-items=false&pad-groups=true&padding-char=_
All list tools
Didn't find the tool you were looking for? Let us know what tool we are missing and we'll build it!
Quickly print all distinct items of a list.
Quickly print all repeating items of a list.
Quickly count the number of items in a list.
Quickly find certain items in a list.
Quickly print all list items in reverse order.
Quickly sort list items alphabetically or numerically.
Quickly shuffle list items and make it random.
Quickly randomly pick one or more items from a list.
Quickly create a downloadable image from a list.
Quickly display list items in multiple colors.
Quickly set a new delimiter for items in a list.
Quickly remove the symbol that separates list items.
Quickly change list item delimiters to the same symbol.
Quickly remove items from the beginning or end of a list.
Quickly join all items of a list together.
Quickly create groups of multiple list items.
Quickly extract a part of a list.
Quickly remove all empty items from a list.
Quickly remove whitespace characters around list items.
Quickly create multiple copies of a list.
Quickly rotate list items to the left or right (or up and down).
Quickly enumerate list items and add a counter to them.
Quickly add bullet markers to all items in a list.
Quickly wrap all list items in quotes.
Quickly remove all quotation marks from around list items.
Quickly add text on the left and right sides of all list items.
Quickly remove text from the left and right sides of all list items.
Quickly prepend a prefix before each list item.
Quickly delete any prefix from the beginning of all list items.
Quickly append a suffix after each list item.
Quickly delete any suffix from the end of all list items.
Quickly add or remove list items to make it a certain length.
Quickly create multiple columns from a single list.
Quickly create a palindromic list from the given list.
Quickly generate a list of arbitrary length with arbitrary items.
Quickly generate a random length list with random items.
Quickly add new items at the beginning or end of a list.
Quickly left-pad a list with one or more items.
Quickly right-pad a list with one or more items.
Quickly analyze a list and print its item statistics.
Coming soon These list tools are on the way
Edit a List
View and edit lists in a neat browser-based list editor.
Split a List
Split list items into chunks.
Generate the Powerlist
Create the powerlist of the given list.
Find the Car of a List
Extract the first item from a list.
Find the Cdr of a List
Extract all items except the first of a list.
Apply a Function on a List
Run a JavaScript function on every list item.
Delete List Item
Quickly remove certain items from a list.
Find Certain List Items
Quickly find and print items that interest you in a list.
Find Non-repeating List Items
Quickly find and print items that don't repeat in a list.
Find Repeating List Items
Quickly find and print items that repeat in a list.
Delete Repeating List Items
Quickly find and remove items that repeat in a list.
Delete Unique List Items
Quickly find and remove items that are unique in a list.
Extract a Sublist from a List
Given start and stop indexes, extract a sublist from a list.
Shift List Items
Shift list items to the left or right (or up and down).
Indent List Items
Add indentation to all list items.
Mirror a List
Quickly create a mirror copy of a list.
Invert a List
Invert the order of items in a list (last becomes first, etc).
Reduce a List
Run the reduce function on a list.
Convert a List to Rows
Create multiple rows from a single list.
Convert a List to Excel
Create an Excel file from a list.
Convert a List to PDF
Create a PDF file from a list.
Convert a Text List to a LaTeX List
Create a LaTeX list from a regular text list.
Convert a Text List to a HTML List
Create a HTML list from a regular text list.
Convert a Text List to a Markdown List
Create a Markdown list from a regular text list.
Compare Two Lists
Find the difference between two lists.
Compare Three Lists
Find the difference between three lists.
Remove One List from Another
Remove elements from a list that appear in the other list.
Zip Two Lists
Join two lists together item by item.
Merge Two Lists
Append a second list at the end of the first list.
Pair List Items
Create pairs from all list items.
Pop List Items
Remove list items at certain index positions.
Push List Items
Add new items at the end of a list.
Replace List Items
Replace certain items in a list with new items.
Splice a List
Modify a list in-place by adding, replacing, or removing items.
Flatten a List
Remove all indentation levels from a list and make it flat.
Make List Items Title Case
Quickly change the letter case of all items to title case.
Make List Items Proper Case
Quickly change the letter case of all items to proper case.
Make List Items Random Case
Quickly randomly change the letter case of all items.
Make List Items Lowercase
Quickly change the letter case of all items to small letters.
Make List Items Uppercase
Quickly change the letter case of all items to capital letters.
Remove List Item Bullets
Quickly remove any bullet marks before items in a list.
Remove List Item Counter
Quickly remove any numeration from a list of items.
Create the Empty List
Generate a list with no items.
Visualize a List
Quickly create a graphical representation of a list.
Create a List Cloud
Create an image with a cloud of list items.
Let Zalgo Destroy a List
Let Zalgo loose on a list and create list-chaos.