Commas Between Numbers adds a comma between the numbers in your list. Paste your numbers, choose the options and copy the result. It is free and runs in your browser.
12 7 45 3 98
12, 7, 45, 3, 98
Bookmark: press Ctrl+D (Windows) or Cmd+D (Mac) to save this tool.
This tool adds a comma between the numbers in a list. Paste numbers that are separated by spaces or new lines, and it joins them into one comma separated list.
You can choose a plain comma or a comma with a space. Decimals, negative numbers and numbers that already contain commas are kept as you typed them, and a comma that is already after a number is not doubled.
Use it to prepare a list of numbers for code, a spreadsheet, a form or a message.
Each example shows the options used. The numbers themselves are not changed.
| Setting | Before | After |
|---|---|---|
| Comma and space | 10 20 30 | 10, 20, 30 |
| Comma only | 10 20 30 | 10,20,30 |
| Numbers on separate lines | 5 10 15 | 5, 10, 15 |
| Decimals and negatives | 3.14 -2 0.5 | 3.14, -2, 0.5 |
| Commas already there | 1, 2 3 | 1, 2, 3 |
| Keep line breaks | 1 2 3 4 5 6 | 1, 2, 3 4, 5, 6 |
Turning a list of numbers into a comma separated list for code, SQL, spreadsheets, forms and messages, such as ids, prices, scores or dates written as numbers.
Numbers are separated by spaces, tabs or new lines. A number written as 1,000 is kept as one number. The tool does not check that each item is a number.
To put each item of a column on one line, try Column to Comma. To go back from commas to lines, try Comma to Column.
It adds a comma between the numbers in your list. A list of numbers separated by spaces or new lines becomes one comma separated list.
Paste your numbers into the first box, separated by spaces, tabs or new lines. The numbers with commas between them appear in the second box at once. Click Copy to copy them.
Yes. Use the Separator option to choose a comma with a space after it, such as 1, 2, 3, or a plain comma, such as 1,2,3.
A comma at the end of a number is not doubled, so 1, 2, 3 stays 1, 2, 3. A comma inside a number, such as 1,000, is kept as part of that number.
Yes. Numbers such as 3.14 and -2 are kept exactly as you typed them. The tool only changes what goes between them.
When it is ticked, each line of your text stays on its own line and the commas are added between the numbers on that line. When it is not ticked, all numbers are joined into one list.
Yes. The tool does not check that each item is a number. Any items separated by spaces or new lines get commas between them.
Yes. It is free, needs no account and runs in your browser, so your numbers are not uploaded to a server.
Last updated: 28 October 2026