᠎᠎᠎          
51K

List item replacer

World's simplest list tool

This is a super simple browser-based application that replaces list items. You can change one or more items to new items or rewrite a part of an existing item with a new text fragment. You can match items for replacement using the items themselves or using a regular expression. The input list items can have any format (comma-separated, tab-separated, or vertical to-do items) and for your convenience, you can also remove empty items from the output and clear items from surrounding spaces. Created by list geeks from team Browserling.
announcement a new site!
We just launched a new site – Online Time Tools – utilities for working with time and date. Check it out!
Input and Output Separators
Separate the items of the original list by an appropriate character.
Separate the items of the original list by a regular expression.
Input item separating character or a regular expression.
Output separating character. (Can also be a short string.)
Item Replacement
Old item. (Item to be replaced.)
New item. (Item to replace with.)
Replace items that match the given regular expression.
String defining the replacement. (Use $1, $2, $3, … for groups.)
Space Clearing
Get rid of items with no visible symbols.
Get rid of the spaces surrounding the items.
List item replacer tool What is a list item replacer?
This online tool replaces certain list items with new items. Additionally, it can also remove parts of an item, change the order of parts of an item, and replace parts of an item with new parts. Suppose you have a list of animals and you want to replace all items containing "cat" with "kitty"; or you have a list of temperature readings and you want to replace Celsius "°C" with Fahrenheit "°F"; or you have a list of items in the format "part1-part2" and you want to swap it to "part2-part1"; or you have a list of items that start with a bullet point, such as "* item" and you want to convert it to just "item". With this program, all these operations can be easily done! First, paste your list in the input field and specify the input and output separators for the items. The input separators can be specified using a character (for example, a comma ",", a semicolon ";", or a newline "\n") or they can be specified using a regular expression (for example, all spaces "/\s+/", or a colon followed by a possible space ": ?"). The output delimiter can be specified using simple characters or a short string. Next, you'll have to choose one of two replacement modes. The first allows you to replace a specific item with a new one. For example, in this mode, you can replace all "cat"s with "kitty"s. And the second mode allows you to replace the items matching a regular expression with a new string that can use the old parts of the items in the new format. For example, if your regexp is "/°C/" that matches Celsius, then the replacement can be "°F" that will replace it with Fahrenheit. Here you can optionally use capturing groups and back-references to do the replacement. For example, to change the order of parts in an item, you'll use a regexp "/(part1)-(part2)/" and the replacement will be "$2-$1" (these are back-references). Another example is changing the numbering format of a list from "1. 2. 3." to "1) 2) 3)". There are also several quick and easy options to clear items from surrounding spaces and remove empty items. Listabulous!
List item replacer examples Click to use
Replace a Pizza Type
In this example, we are making a list of pizzas for a party. Unfortunately, when we called our favorite pizza place, they said that they don't make Pepperoni pizzas today, so we replaced it with a Hawaiian pizza. To do this, we separated the list items with a newline character and entered the names of the old and new pizzas in the "Replace Specific Items" options. Now we can forward the list to the pizza shop and they'll be able to make all pizzas for us. 😋
Cheese Pizza Veggie Pizza Pepperoni Pizza Meat Pizza Margherita Pizza BBQ Chicken Pizza Hawaiian Pizza Buffalo Pizza Supreme Pizza The Works Pizza
Cheese Pizza Veggie Pizza Hawaiian Pizza Meat Pizza Margherita Pizza BBQ Chicken Pizza Hawaiian Pizza Buffalo Pizza Supreme Pizza The Works Pizza
Required options
These options will be used automatically if you select this example.
Separate the items of the original list by an appropriate character.
Input item separating character or a regular expression.
Output separating character. (Can also be a short string.)
Old item. (Item to be replaced.)
New item. (Item to replace with.)
Get rid of items with no visible symbols.
Get rid of the spaces surrounding the items.
Change the Currency in a List
In this example, we load a list of products from a shady store which has the currency codes mixed up. To set all prices in dollars, we select the "Replace With Regex" replacement mode. We use the regular expression "/[€₴¥£]/" to match all currency symbols and change them to the dollar symbol "$". Also, we use a regular expression to separate the input items and turn the two-column list into a single-column item list using the rx "/\t|\n/".
item1 – 100€ item2 – 200€ item3 – 300₴ item4 – 400¥ item5 – 500£ item6 – 600₴ item7 – 700¥ item8 – 800¥ item9 – 900€ item10 – 1000£
item1 – 100$ item2 – 200$ item3 – 300$ item4 – 400$ item5 – 500$ item6 – 600$ item7 – 700$ item8 – 800$ item9 – 900$ item10 – 1000$
Required options
These options will be used automatically if you select this example.
Separate the items of the original list by a regular expression.
Input item separating character or a regular expression.
Output separating character. (Can also be a short string.)
Replace items that match the given regular expression.
String defining the replacement. (Use $1, $2, $3, … for groups.)
Get rid of items with no visible symbols.
Get rid of the spaces surrounding the items.
A List of Types of Honey
In this example, we emojify a list of honey types by replacing the word "Honey" in all the items with a beautiful Unicode emoji. We separate the honey types by a comma and also trim them from surrounding spaces. We activate the regular expression replacement mode and rewrite the substring "Honey" into a single character "🍯".
Clover Honey, Buckwheat Honey, Acacia Honey , Manuka Honey, Wildflower Honey , Tupelo Honey, Orange Blossom Honey , Sourwood Honey, Linden Honey, Sage Honey, Eucalyptus Honey, Avocado Honey, Blueberry Honey, Dandelion Honey, Fireweed Honey, Heather Honey , Macadamia Nut Honey, Palmetto Honey
Clover 🍯 & Buckwheat 🍯 & Acacia 🍯 & Manuka 🍯 & Wildflower 🍯 & Tupelo 🍯 & Orange Blossom 🍯 & Sourwood 🍯 & Linden 🍯 & Sage 🍯 & Eucalyptus 🍯 & Avocado 🍯 & Blueberry 🍯 & Dandelion 🍯 & Fireweed 🍯 & Heather 🍯 & Macadamia Nut 🍯 & Palmetto 🍯
Required options
These options will be used automatically if you select this example.
Separate the items of the original list by an appropriate character.
Input item separating character or a regular expression.
Output separating character. (Can also be a short string.)
Replace items that match the given regular expression.
String defining the replacement. (Use $1, $2, $3, … for groups.)
Get rid of items with no visible symbols.
Get rid of the spaces surrounding the items.
Change Numbering in a Pre-trip Todo List
In this example, we re-number a pre-trip todo list. The original numbering is in the number-with-a-dot form but we want the numbering to be wrapped in square brackets. To do this, we select the regex-replacement mode, set the match pattern to "/(\d+)\./", and replace it with the pattern "[$1]". As a result, the counter values that are wrapped in parentheses "(\d+)" (in the regex) are saved in the special variable "$1" (called a back-reference) that is then used in the "[$1]" replacement string. With this trick, all counters are now wrapped in square brackets.
1. Check medical coverage 2. Make copies of passport 3. Create trip budget 4. Take out cash at ATM 5. Obtain foreign currency 6. Download travel apps 7. Download travel e-books 8. Set up a travel plan 9. Charge all electronics 10. Check in online 11. Reserve a hotel 12. Check weather
[1] Check medical coverage [2] Make copies of passport [3] Create trip budget [4] Take out cash at ATM [5] Obtain foreign currency [6] Download travel apps [7] Download travel e-books [8] Set up a travel plan [9] Charge all electronics [10] Check in online [11] Reserve a hotel [12] Check weather
Required options
These options will be used automatically if you select this example.
Separate the items of the original list by an appropriate character.
Input item separating character or a regular expression.
Output separating character. (Can also be a short string.)
Replace items that match the given regular expression.
String defining the replacement. (Use $1, $2, $3, … for groups.)
Get rid of items with no visible symbols.
Get rid of the spaces surrounding the items.
Add a Suffix to the List
In this example, we add an exclamation mark at the end of each item in a New Year's greetings list in different languages of the world. We split the items of the vertical list with the newline character "\n" and remove empty items. We use the regular expression "/$/" to match the end of the items and insert an exclamation character "!" in that place.
English: Happy New Year Bengali: Shuvo noboborsho Czech: Stastny Novy Rok Dutch: Gelukkig nieuwjaar French: Bonne anne Hebrew: Shana Tova Spanish: Feliz ao nuevo Swedish: Gott Nytt r Thai: Sawatdee Pi Mai Danish: Godt Nytr
English: Happy New Year! Bengali: Shuvo noboborsho! Czech: Stastny Novy Rok! Dutch: Gelukkig nieuwjaar! French: Bonne anne! Hebrew: Shana Tova! Spanish: Feliz ao nuevo! Swedish: Gott Nytt r! Thai: Sawatdee Pi Mai! Danish: Godt Nytr!
Required options
These options will be used automatically if you select this example.
Separate the items of the original list by an appropriate character.
Input item separating character or a regular expression.
Output separating character. (Can also be a short string.)
Replace items that match the given regular expression.
String defining the replacement. (Use $1, $2, $3, … for groups.)
Get rid of items with no visible symbols.
Get rid of the spaces surrounding the items.
Delete a Part of Items
In this example, we're working with a synonyms list. When we copied the file from a Mac to a PC, somehow the file format changed and all synonyms now have an "x" between the words. We want to delete this "x" and replace it with something better. To do it we match it via a regular expression /x/ and set the new replacement to " is a synonym of ".
FastxSpeedy SlowxUnhurried ColorfulxVivid DeliciousxTasty SillyxFoolish GoodxFine HappyxCheerful HugexEnormous
Fast is a synonym of Speedy Slow is a synonym of Unhurried Colorful is a synonym of Vivid Delicious is a synonym of Tasty Silly is a synonym of Foolish Good is a synonym of Fine Happy is a synonym of Cheerful Huge is a synonym of Enormous
Required options
These options will be used automatically if you select this example.
Separate the items of the original list by an appropriate character.
Input item separating character or a regular expression.
Output separating character. (Can also be a short string.)
Replace items that match the given regular expression.
String defining the replacement. (Use $1, $2, $3, … for groups.)
Get rid of items with no visible symbols.
Get rid of the spaces surrounding the items.
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/replace-list-items?input=Cheese%20Pizza%0AVeggie%20Pizza%0APepperoni%20Pizza%0AMeat%20Pizza%0AMargherita%20Pizza%0ABBQ%20Chicken%20Pizza%0AHawaiian%20Pizza%0ABuffalo%20Pizza%0ASupreme%20Pizza%0AThe%20Works%20Pizza&string-separator=true&input-separator=%5Cn&join-character=%5Cn&replace-items=true&old-item=Pepperoni%20Pizza&new-item=Hawaiian%20Pizza&skip-empty=true&trim-items=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 distinct items of a list.
Quickly print all repeating items of a list.
Quickly count the number of items in a list.
Quickly display list items in multiple colors.
Quickly generate a list of arbitrary length with arbitrary items.
Quickly generate a random length list with random items.
Quickly find certain items in a list.
Quickly replace certain items in a list with new items.
Quickly remove items from a list that match a pattern.
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 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 remove all bullet markers from list items.
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 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 remove items that repeat in a list.
Quickly apply a filter on all list items (extract certain 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.
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.
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 (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 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 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.
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.
Let Zalgo Destroy a List
Let Zalgo loose on a list and create list-chaos.