Our Network


Coming Soon


Coming Later

list slicer

world's simplest list tool

This is a super simple browser-based application that extracts a slice of a list and returns it as a new list. You can enter the input list in any format and customize its item delimiter by specifying a character or a regular expression. You can specify the needed slice boundaries via the start-range and end-range positions. Created by list geeks from team Browserling.

᠎᠎᠎       Tool Options

Item Splitting

The input list items use
a single delimiter character.
The input list items use
a complex pattern that can
only be expressed as a regex.
Set delimiter or regex here.

Start and End of Slice

Start slicing from this position.
(For example, enter 1 to slice
from the start.)
End slicing at this position.
(For example, leave empty
to slice to the end.)

Glue Character

Join the sliced items with
this character.

What is a list slicer?

With this utility, you can cut an arbitrary slice of the given list. The input list can be of any length, its items can have any format, and they can be separated with one or more characters or patterns. For example, if your list items are separated by commas, then you can select the "Character Separator" option and enter the comma below it; but if your list items are separated by a more complex pattern, then you can select the "Regular Expression" option and enter a full regexp below it. All items of the list are numbered from 1 to n (n is the total number of items in the list). To extract a sublist from the list, you need to specify the start and end item positions in the range options. For example, if the input list is "a, b, c, d, e, f" and the range is [2, 4], then you will get the slice "b, c, d" (because "b" is the 2nd item and "d" is the 4th item). You can also cut a fragment to the very end of the list by leaving the end position parameter empty. For example, the range [4, …] will return the slice "d, e, f". Similarly, if you want to cut a piece from the beginning to a certain position, you can leave the start position empty. For example, the range […, 3] will print the slice "a, b, c". The slicing algorithm also supports negative list positions. A negative item position counts the items from the end of the list. For example, the position -1 is the last item in the list and the position -3 is the third item from the end. Negative positions are very useful when you don't know the length of the list. In this case, you can easily drop the tail item without knowing their exact positions. For example, the range [1, -3] will drop the last 2 items from the list and returns the slice "a, b, c, d". Similarly, to extract the tail part of the list, you can set the starting position to negative, too. For example, the range [-3, -1] will extract the last three items of the list and you will get "d, e, f". To get the very last item, you can use the [-1, -1] trick. You can also customize the format of the sliced list by specifying the output list separator character. It can be the same character as in the input list or something completely different. We call this the glue character. Listabulous!


List slicer examples

Click to try

Slice the Spanish Alphabet

In this example, we extract multiple letters from a list that contains the modern Spanish alphabet. The letters in the alphabet are separated by a comma, so we turn on the separate-by-a-character split mode and enter the symbol "," in the delimiter field. We use an increasing slicing range from 11 to 20 and extract ten letters from "K" to "S". We also set the glue character to ";" to make the sliced list semicolon-separated.

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
K; L; M; N; Ñ; O; P; Q; R; S
Required options
These options will be used automatically if you select this example.
The input list items use
a single delimiter character.
Set delimiter or regex here.
Start slicing from this position.
(For example, enter 1 to slice
from the start.)
End slicing at this position.
(For example, leave empty
to slice to the end.)
Join the sliced items with
this character.

Slice a List of Colors

The colors in the input list of this example use various item separators at once. They include spaces, tabs, and newlines. To correctly separate out the colors in the list, we use the split-by-a-regexp mode and set the regular expression to /\s+/, which matches all mentioned whitespace characters. We set the slice range to [2, -5], which extracts a sublist starting from the 2nd item and ending at the 5th item from the end. We print the sublist items inline and separate them by a space character.

aquamarine azure bronze burgundy coral cyan gold indigo ivory lemon lime maroon olive purple ruby violet
aquamarine azure bronze burgundy coral cyan gold indigo ivory lemon lime maroon
Required options
These options will be used automatically if you select this example.
The input list items use
a complex pattern that can
only be expressed as a regex.
Set delimiter or regex here.
Start slicing from this position.
(For example, enter 1 to slice
from the start.)
End slicing at this position.
(For example, leave empty
to slice to the end.)
Join the sliced items with
this character.

Extract Train Departure Data

In this example, we load a list with train departure data in the input. As the items of the data are slash-separated, we set the item-separator option to the slash character "/" and use the same character to join items in the output list. We only set the start index value to 4 and leave the end index value empty. This means that we slice list elements inclusively from the fourth data element to the last element.

Reservation/number/DMQX84/Train/881636/Direction/Lyon/Paris/Saturday/October/24/2020
Train/881636/Direction/Lyon/Paris/Saturday/October/24/2020
Required options
These options will be used automatically if you select this example.
The input list items use
a single delimiter character.
Set delimiter or regex here.
Start slicing from this position.
(For example, enter 1 to slice
from the start.)
End slicing at this position.
(For example, leave empty
to slice to the end.)
Join the sliced items with
this character.

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://onlinetools.com/list/slice-list?input=A%2C%20B%2C%20C%2C%20D%2C%20E%2C%20F%2C%20G%2C%20H%2C%20I%2C%20J%2C%20K%2C%20L%2C%20M%2C%20N%2C%20%C3%91%2C%20O%2C%20P%2C%20Q%2C%20R%2C%20S%2C%20T%2C%20U%2C%20V%2C%20W%2C%20X%2C%20Y%2C%20Z&string-separator=true&input-separator=%252C%20&start=11&end=20&join-character=%253B%20

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!
Find Unique List Items

Quickly print all distinct items of a list.

Find Duplicate List Items

Quickly print all repeating items of a list.

Find the Length of a List

Quickly count the number of items in a list.

Color List Items

Quickly display list items in multiple colors.

Create a Custom List

Quickly generate a list of arbitrary length with arbitrary items.

Create a Random List

Quickly generate a random length list with random items.

Find List Items

Quickly find certain items in a list.

Find Most Popular List Items

Quickly find how many times each item appears in the list.

Replace List Items

Quickly replace certain items in a list with new items.

Delete List Items

Quickly remove items from a list that match a pattern.

Reverse a List

Quickly print all list items in reverse order.

Sort a List

Quickly sort list items alphabetically or numerically.

Randomize a List

Quickly shuffle list items and make it random.

Randomly Select a List Item

Quickly randomly pick one or more items from a list.

Convert a List to an Image

Quickly create a downloadable image from a list.

Change List Item Separator

Quickly set a new delimiter for items in a list.

Delete List Item Separators

Quickly remove the symbol that separates list items.

Normalize List Item Separators

Quickly change list item delimiters to the same symbol.

Truncate a List

Quickly remove items from the beginning or end of a list.

Join List Items

Quickly join all items of a list together.

Group List Items

Quickly create groups of multiple list items.

Slice a List

Quickly extract a part of a list.

Delete Empty List Items

Quickly remove all empty items from a list.

Trim List Items

Quickly remove whitespace characters around list items.

Duplicate a List

Quickly create multiple copies of a list.

Rotate a List

Quickly rotate list items to the left or right (or up and down).

Add a List Item Counter

Quickly enumerate list items and add a counter to them.

Add List Item Bullets

Quickly add bullet markers to all items in a list.

Remove List Item Bullets

Quickly remove all bullet markers from list items.

Quote List Items

Quickly wrap all list items in quotes.

Unquote List Items

Quickly remove all quotation marks from around list items.

Wrap Text Around Items

Quickly add text on the left and right sides of all list items.

Unwrap Items From Text

Quickly remove text from the left and right sides of all list items.

Add a List Item Prefix

Quickly prepend a prefix before each list item.

Remove a List Item Prefix

Quickly delete any prefix from the beginning of all list items.

Add a List Item Suffix

Quickly append a suffix after each list item.

Remove a List Item Suffix

Quickly delete any suffix from the end of all list items.

Change the Length of a List

Quickly add or remove list items to make it a certain length.

Convert a List to Columns

Quickly create multiple columns from a single list.

Create a Symmetric List

Quickly create a palindromic list from the given list.

Append Items to a List

Quickly add new items at the beginning or end of a list.

Left-pad a List

Quickly left-pad a list with one or more items.

Right-pad a List

Quickly right-pad a list with one or more items.

Delete Repeating List Items

Quickly remove items that repeat in a list.

Filter a List

Quickly apply a filter on all list items (extract certain items).

Print List Statistics

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 (map function).

Reduce a List

Run the reduce function on a list.

Find Certain List Items

Quickly find and print items that interest you in a list.

Find Repeating List Items

Quickly find and print 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.

Skew List Items

Make a list go increasingly sideways (to the left or right).

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).

Convert a List to Rows

Create multiple rows from a single list.

Convert a List to Excel

Create an Excel (XLS/XLSX) 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.

Find Common Items in Lists

Find items that are shared between two or more lists.

Find Distinct Items in Lists

Find items that are unique in two or more lists.

Zip Two Lists

Join two or more lists together item by item.

Unzip Two Lists

Split an interleaved list into two or more separate lists.

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.

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 Bold

Quickly apply the bold effect to all list items.

Make List Items Italic

Quickly apply the italic effect to all list items.

Make List Items Cursive

Quickly rewrite all list items in cursive.

Change List Item Font

Quickly change the font of all list items.

Add an Underscore to List Items

Quickly add an underscore to all list items.

Add a Strikethrough to List Items

Quickly add a strikethrough to all list items.

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 Counter

Quickly remove any numeration from a list of items.

Create an Empty List

Generate a list with no items (just bullet points).

Visualize a List

Quickly create a graphical representation of a list.

Create a List Cloud

Create an image with a cloud of list items.

Create a Spiral List

Create an image with list items going in a spiral.

Create a ZigZag List

Make list items go in a zigzag.

Add Errors to a List

Add errors and corruption to a list.

Base64-encode a List

Convert any list to base64 encoding.

Base64-decode a List

Convert any list from base64 encoding back to a list.

URL-encode a List

Convert any list to URL encoding.

URL-decode a List

Convert any list from URL encoding back to a list.

Convert a List to JSON

Create a JSON array from a list.

Convert JSON to a List

Create a list from a JSON array.

Convert a List to XML

Create an XML document from a list.

Convert XML to a List

Create a list from an XML document.

Convert a List to YAML

Create a YAML file from a list.

Convert YAML to a List

Create a list from a YAML file.

Convert a Text List to a Binary List

Create a binary list from a text list.

Convert a Binary List to a Text List

Create a text list from a binary list.

Compress a List

Compress a list so it uses less space.

Scroll a List

Create an animation with a list being scrolled.

Let Zalgo Destroy a List

Let Zalgo loose on a list and create list-chaos.


Subscribe!

Subscribe to our updates. We'll let you know when we release new tools, features, and organize online workshops.

Enter your email here


Feedback. We'd love to hear from you! 👋