Add Commas to a List
Paste a list with one item per line and the list formatter will add commas between the items, turning a column into a single line such as apple, pear, plum. You can also wrap each item in quotes, finish the list with and or or, and add a prefix or suffix to every item.
Lists copied from a spreadsheet column or a document arrive one item per line, but forms, code and sentences need them on one line with commas. Doing that by hand is slow and easy to get wrong with a long list.
How to add commas to a list
- Paste your list, one item per line.
- Choose whether to wrap items in quotes.
- Pick and or or for the last item if you want a readable sentence.
- Add a prefix or suffix if every item needs one, then copy the result.
Common uses for a comma separated list
Quoted lists are what code usually needs: a list of values for an SQL IN clause such as 'red', 'green', 'blue', or the items of an array. Plain comma lists suit tag fields, keyword boxes and the To field of many email apps. A list ending in and reads naturally in a sentence: apples, pears and plums.
A prefix or suffix adds the same text to every item, for example a # before each word to turn a list into hashtags, or a domain after each name.
The Oxford comma
The serial or Oxford comma is the comma before and in a list of three or more: apples, pears, and plums. Chicago style uses it; AP style usually leaves it out. If your style differs from the output, adjust that one comma by hand after copying.
Frequently asked questions
How do I add commas to a list of numbers?
Paste the numbers one per line and copy the result. Each number is joined to the next with a comma.
How do I add quotes around each item?
Turn on the quotes option before copying, and every item is wrapped in quotes.
What is a comma separated list?
A list written on one line with a comma between items, such as red, green, blue. It is how many forms and programs expect several values.