Free online text tool

Commas Between Numbers

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.

Commas Between Numbers Tool

0Character Count
0Character Count (without spaces)
0Word Count
0Sentence Count
0Paragraph Count
0Line Count

Commas Between Numbers Example

Before
12 7 45 3 98
After
12, 7, 45, 3, 98

Bookmark: press Ctrl+D (Windows) or Cmd+D (Mac) to save this tool.

Suggest a New ToolProvide Feedback on This Tool

What does Commas Between Numbers do?

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.

Commas between numbers examples

Each example shows the options used. The numbers themselves are not changed.

SettingBeforeAfter
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

How to add commas between numbers

  1. 1
    Paste your numbers
    Paste your numbers into the first box, separated by spaces or new lines, or import a text file.
  2. 2
    Choose the options
    Pick the separator and choose whether to keep line breaks.
  3. 3
    Read the result
    The numbers with commas between them appear in the second box as you type.
  4. 4
    Copy it
    Click Copy and paste the list where you need it.

When to add commas between numbers

Good for

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.

Check first

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.

Other tools

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.

Commas between numbers FAQ

What does the Commas Between Numbers tool do?

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.

How do I add commas between numbers?

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.

Can I choose between a comma and a comma with a space?

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.

What if my numbers already have commas?

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.

Does it work with decimals and negative numbers?

Yes. Numbers such as 3.14 and -2 are kept exactly as you typed them. The tool only changes what goes between them.

What does Keep line breaks do?

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.

Does it work with words as well as numbers?

Yes. The tool does not check that each item is a number. Any items separated by spaces or new lines get commas between them.

Is this tool free and is my text private?

Yes. It is free, needs no account and runs in your browser, so your numbers are not uploaded to a server.

Looking for more text tools?

Browse Modify Tools

Last updated: 28 October 2026