51K

List length finder

World's simplest list tool

This is a super simple browser-based application that finds the length of a list. It can count the number of all list items, only the unique items, or only the duplicate items. It can also include or exclude empty items and items consisting of only whitespace characters. 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 tools for working with GIFs. Check it out!
Item Finding Mode
Use this mode to find items that have a constant delimiter.
Use this mode to find items that have variable delimiters.
Constant delimiter or a regular expression for variable delimiters.
Counting Mode
Find the number of all items in the list.
Find the number of unique items in the list.
Find the number of repeated items in the list.
Empty and Invisible Items
Include items of zero length in the count.
Include items that contain only whitespace in the count.
List length finder tool What is a list length finder?
With this utility, you can get the total count of items in a list. By default, it counts the number of all items, including empty items and invisible items (invisible items are those that contain only whitespaces). You can also adjust the counting mode and count just the unique items or just the duplicate items. Before the program can count the items, it has to parse the input data and find the list items. To do that, you need to tell the program how the items are separated and the separator can be configured in the options. By default, the program uses the split-by-character mode. It's suitable for cases when the delimiter matches a constant character or a group of constant characters. For example, in the list "1 2 3", the delimiter is the space character and in the list "1/\2/\3", the delimiter is a slash and a backslash symbol "/\". In the case when the separator changes between items, you can use the split-by-regex mode. For example, the list "1, 2; 3" uses a comma and a semicolon to separate items and the regular expression /[, ;]+/ will work in this case. If you don't want to count empty items, then deselect the "Count Empty Items" option. Similarly, to avoid counting items made out of just spaces, tabs, and newlines, deselect the "Count Invisible Items" option. Listabulous!
List length finder examples Click to use
Length of a Hex List
In this example, we count elements in a list and calculate how many hexadecimal numbers there are in this list. Since the input list uses the same symbol as a delimiter for all items, we use the symbol-delimiter match mode and enter the comma symbol in the option below. With these options, we quickly find the total number of hexadecimal values in the list, including blank and whitespace items.
0x1, , 0x2, 0x3, 0x4, , 0x5, 0x6, 0x7, 0x8, , 0x9, 0xa, 0xb, 0xc, 0xd, 0xe, 0xf, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, 0x19, 0x1a, 0x1b, 0x1c, 0x1d, 0x1e, 0x1f, 0x20, 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2a, 0x2b, 0x2c, 0x2d, 0x2e, 0x2f, 0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, 0x3a, 0x3b, 0x3c, 0x3d, 0x3e, 0x3f, 0x40, 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, 0x4a, 0x4b, 0x4c, 0x4d, 0x4e, 0x4f, 0x50, 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, 0x5a, 0x5b, 0x5c, 0x5d, 0x5e, 0x5f, 0x60, 0x61, 0x62, 0x63, 0x64, ,
104
Required options
These options will be used automatically if you select this example.
Use this mode to find items that have a constant delimiter.
Constant delimiter or a regular expression for variable delimiters.
Find the number of all items in the list.
Include items of zero length in the count.
Include items that contain only whitespace in the count.
Count Unique Months
In this example, the input list of month names is neatly formatted and uses several different separator characters, such as tabs, spaces, and newlines to evenly align all the months in nice columns. To properly separate the months in this multi-column list, we select the mode where a regular expression matches all separator characters and enter /\s+/ in the regular expression field. As some months repeat more than once, we choose to count only the unique items and get the value 12 in the output, which confirms that no months were missed or mistyped.
June July December April August March February November May July October March September December January June November June
12
Required options
These options will be used automatically if you select this example.
Use this mode to find items that have variable delimiters.
Constant delimiter or a regular expression for variable delimiters.
Find the number of unique items in the list.
Include items of zero length in the count.
Include items that contain only whitespace in the count.
Count Duplicate Items
In this example, we're using the first three English letters to demonstrate how counting duplicate items works. There are multiple ways to count duplicate items and we're using the formula "total = unique + duplicate" to find the duplicate items count. If we rearrange the terms, we get "duplicate = total - unique". The first three letters in the example are unique and all the others are their copies. Therefore, the counting starts after the third items and the program finds that there are 6 duplicate copies.
a; b; c; a; a; b; b; c; c
6
Required options
These options will be used automatically if you select this example.
Use this mode to find items that have a constant delimiter.
Constant delimiter or a regular expression for variable delimiters.
Find the number of repeated items in the list.
Include items of zero length in the count.
Include items that contain only whitespace in the count.
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/find-list-length?input=0x1%2C%20%2C%200x2%2C%200x3%2C%200x4%2C%20%2C%200x5%2C%200x6%2C%200x7%2C%200x8%2C%20%2C%200x9%2C%200xa%2C%200xb%2C%200xc%2C%200xd%2C%200xe%2C%200xf%2C%200x10%2C%200x11%2C%200x12%2C%200x13%2C%200x14%2C%200x15%2C%200x16%2C%200x17%2C%200x18%2C%200x19%2C%200x1a%2C%200x1b%2C%200x1c%2C%200x1d%2C%200x1e%2C%200x1f%2C%200x20%2C%200x21%2C%200x22%2C%200x23%2C%200x24%2C%200x25%2C%200x26%2C%200x27%2C%200x28%2C%200x29%2C%200x2a%2C%200x2b%2C%200x2c%2C%200x2d%2C%200x2e%2C%200x2f%2C%200x30%2C%200x31%2C%200x32%2C%200x33%2C%200x34%2C%200x35%2C%200x36%2C%200x37%2C%200x38%2C%200x39%2C%200x3a%2C%200x3b%2C%200x3c%2C%200x3d%2C%200x3e%2C%200x3f%2C%200x40%2C%200x41%2C%200x42%2C%200x43%2C%200x44%2C%200x45%2C%200x46%2C%200x47%2C%200x48%2C%200x49%2C%200x4a%2C%200x4b%2C%200x4c%2C%200x4d%2C%200x4e%2C%200x4f%2C%200x50%2C%200x51%2C%200x52%2C%200x53%2C%200x54%2C%200x55%2C%200x56%2C%200x57%2C%200x58%2C%200x59%2C%200x5a%2C%200x5b%2C%200x5c%2C%200x5d%2C%200x5e%2C%200x5f%2C%200x60%2C%200x61%2C%200x62%2C%200x63%2C%200x64%2C%20%2C&string-separator=true&input-separator=%2C%20&count-all=true&count-empty=true&count-invisible=true
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 list items in reverse order.
Quickly join all items of a list together.
Quickly extract a part of a list.
Quickly remove all empty items from a list.
Quickly set a new delimiter for items in a list.
Quickly count the number of items in a list.
Quickly print all distinct items of a list.
Quickly print all repeating items of a list.
Quickly remove whitespace characters around list items.
Coming soon These list tools are on the way
Truncate a List
Remove items from the beginning or end of a list.
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.
Randomize a List
Shuffle list items and make it random.
Randomly Select an Item
Randomly pick one or more items from a list.
Sort a List
Quickly sort list items alphabetically or numerically.
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.
Delete List Separator
Remove the symbol that separates list items.
Extract a Sublist from a List
Given start and stop indexes, extract a sublist from a list.
Rotate List Items
Rotate list items to the left or right (or up and down).
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.
Filter a List
Find certain items in a list.
Duplicate a List
Create multiple copies of a list.
Convert a List to an Image
Create an image from a list.
Convert a List to Columns
Create multiple columns from a single 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.
Zip Two Lists
Join two lists together item by item.
Merge Two Lists
Append a second list at the end of the first list.
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.
Create the Empty List
Generate a list with no items.
Color List Items
Quickly add colors to list items.
Visualize a List
Quickly create a graphical representation of a list.
Let Zalgo Destroy a List
Let Zalgo loose on a list and create list-chaos.
Print List Statistics
Analyze a list and print its item statistics.