.NET 4+

IList<string> strings = new List<string>{"1","2","testing"};
string joined = string.Join(",", strings);

Detail & Pre .Net 4.0 Solutions

IEnumerable<string> can be converted into a string array very easily with LINQ (.NET 3.5):

IEnumerable<string> strings = ...;
string[] array = strings.ToArray();

It's easy enough to write the equivalent helper method if you need to:

public static T[] ToArray(IEnumerable<T> source)
{
    return new List<T>(source).ToArray();
}

Then call it like this:

IEnumerable<string> strings = ...;
string[] array = Helpers.ToArray(strings);

You can then call string.Join. Of course, you don't have to use a helper method:

// C# 3 and .NET 3.5 way:
string joined = string.Join(",", strings.ToArray());
// C# 2 and .NET 2.0 way:
string joined = string.Join(",", new List<string>(strings).ToArray());

The latter is a bit of a mouthful though :)

This is likely to be the simplest way to do it, and quite performant as well - there are other questions about exactly what the performance is like, including (but not limited to) this one.

As of .NET 4.0, there are more overloads available in string.Join, so you can actually just write:

string joined = string.Join(",", strings);

Much simpler :)

Answer from Jon Skeet on Stack Overflow
๐ŸŒ
Convert Town
convert.town โ€บ column-to-comma-separated-list
Convert Column to Comma Separated List Online
Convert column of data to comma separated list of data instantly using this free online tool.
๐ŸŒ
Delim
delim.co
Free Online Comma Separating Tool
A delimiter is a sequence of one or more characters used to specify the boundary between separate, independent regions in plain text or other data streams. An example of a delimiter is the comma character, which acts as a field delimiter in a sequence of comma-separated values. Convert a list of zipcodes in a spreadsheet into a comma-separated list that you can put in a WHERE IN() block to run reports!
People also ask

Can I use a separator other than a comma?
Yes. The Join with menu offers a comma, comma plus a space, semicolon, pipe, space, or new line, and the Custom option lets you type anything you need. Whatever you choose is placed between every value.
๐ŸŒ
codeshack.io
codeshack.io โ€บ home โ€บ tools โ€บ column to comma separated list
Column to Comma Separated List - Free Online Converter
Can I remove duplicates and sort the list?
Yes. Switch on Remove duplicates to keep only the first occurrence of each value, and use the Sort menu to order the items alphabetically, numerically, in reverse, or shuffled before they are joined.
๐ŸŒ
codeshack.io
codeshack.io โ€บ home โ€บ tools โ€บ column to comma separated list
Column to Comma Separated List - Free Online Converter
Will it handle extra blank lines and spaces?
Yes. With Trim each line and Remove empty lines on, both by default, stray spaces around each value and any blank rows in your column are cleaned out before the list is built, so you do not end up with empty entries or odd gaps.
๐ŸŒ
codeshack.io
codeshack.io โ€บ home โ€บ tools โ€บ column to comma separated list
Column to Comma Separated List - Free Online Converter
๐ŸŒ
Capitalize My Title
capitalizemytitle.com โ€บ home โ€บ tools โ€บ online comma separator โ€“ convert list to csv (column to comma)
Online Comma Separator - Convert List to CSV (Column to Comma)
Just paste your string into the right text box, select the delimiter and other options, and see your column/list in the left text box. CSV stands for Comma Separated Values. That said, a CSV file is any text file in which the characters are ...
๐ŸŒ
CodeShack
codeshack.io โ€บ home โ€บ tools โ€บ column to comma separated list
Column to Comma Separated List - Free Online Converter
Convert a column of text (one value per line) into a comma-separated list instantly. Free tool with custom separators, item wrapping, trimming, duplicate removal and sorting.
๐ŸŒ
TendersOnTime
tendersontime.com โ€บ tools โ€บ column-to-comma-separated-list
Column To Comma Separated List | Tools | TendersOnTime
1 day ago - Our free comma separator tool automatically converts a column to a comma list or list to CSV (comma-separated values). Copy your column of data and watch the conversion happen. You can do the reverse and convert a delimited list to a column. You can use our comma separator tool to convert column lists to comma-separated value (CSV) lists quickly and easily.
Top answer
1 of 16
1818

.NET 4+

IList<string> strings = new List<string>{"1","2","testing"};
string joined = string.Join(",", strings);

Detail & Pre .Net 4.0 Solutions

IEnumerable<string> can be converted into a string array very easily with LINQ (.NET 3.5):

IEnumerable<string> strings = ...;
string[] array = strings.ToArray();

It's easy enough to write the equivalent helper method if you need to:

public static T[] ToArray(IEnumerable<T> source)
{
    return new List<T>(source).ToArray();
}

Then call it like this:

IEnumerable<string> strings = ...;
string[] array = Helpers.ToArray(strings);

You can then call string.Join. Of course, you don't have to use a helper method:

// C# 3 and .NET 3.5 way:
string joined = string.Join(",", strings.ToArray());
// C# 2 and .NET 2.0 way:
string joined = string.Join(",", new List<string>(strings).ToArray());

The latter is a bit of a mouthful though :)

This is likely to be the simplest way to do it, and quite performant as well - there are other questions about exactly what the performance is like, including (but not limited to) this one.

As of .NET 4.0, there are more overloads available in string.Join, so you can actually just write:

string joined = string.Join(",", strings);

Much simpler :)

2 of 16
188

FYI, the .NET 4.0 version of string.Join() has some extra overloads, that work with IEnumerable instead of just arrays, including one that can deal with any type T:

public static string Join(string separator, IEnumerable<string> values)
public static string Join<T>(string separator, IEnumerable<T> values)
Find elsewhere
๐ŸŒ
Retool
retool.com โ€บ utilities โ€บ comma-separating-tool
Comma Separator & Delimiter Tool | Retool
Quickly and easily convert your data from a spreadsheet column (CSV, Excel, Google Sheets, etc.) into a comma-separated (or comma-delimited) list.
๐ŸŒ
Texthandler
texthandler.com โ€บ text-tools โ€บ column-to-separated-list
Delimiter Separating Tool
Online converter, for all who need to convert the column text to a string separated by commas, semicolons or any other separator.
๐ŸŒ
SEO Magnifier
seomagnifier.com โ€บ online-comma-separator
Online Comma Separator | Comma Adder | SEO Magnifier
Online comma separator is a powerful list to comma adding the tool to add commas to your column or list data for free.
๐ŸŒ
Convert Town
convert.town โ€บ comma-separated-list-to-column
Convert Comma Separated List to Column Online
Convert comma separated list of data into column of data instantly with this free in-browser tool.
๐ŸŒ
Microsoft Community
community.fabric.microsoft.com โ€บ t5 โ€บ Power-Query โ€บ How-to-convert-Table-list-into-comma-separated-string โ€บ td-p โ€บ 3423222
How to convert Table/list into comma separated string
September 12, 2023 - How to convert Table/list into comma separated str... ... 1. a [connection only] which is generating a parameter within Power Query from a referrence from within the spreadsheet itself - a list (single column) of numbers as text or integer. let's say this parameter is called "IDlist". 2. a [Web API call] using the = Json.Document(Web.Contents("https://somewebapi.com/" & IDlist)) function. The intent here is to have the IDlist resolve to a string as "34,35,36,37,38,39,40"
๐ŸŒ
Bubble
forum.bubble.io โ€บ questions
Convert list to comma separated string - Questions - Bubble Forum
September 6, 2020 - I currently have a list of addresses in my database formatted in a column and I would like to convert it into a comma-separated string so that I can call upon it for my Map app formatted like the following (without brackets): [address 1],[address 2],[address 3] This is what I currently have however it only pulls the first address from the list.
๐ŸŒ
Baeldung
baeldung.com โ€บ home โ€บ java โ€บ java string โ€บ convert a list to a comma-separated string
Convert a List to a Comma-Separated String | Baeldung
July 2, 2025 - String commaSeparatedUsingCollect = arraysAsList.stream() .collect(Collectors.joining(",")); assertThat(commaSeparatedUsingCollect).isEqualTo("ONE,TWO,THREE"); In our next example, weโ€™ll see how to use the map() method to convert each object of the list into a String and then apply the methods collect() and Collectors.joining():
๐ŸŒ
Testmu
testmu.ai โ€บ home โ€บ free tools โ€บ column to csv
Column to Comma Separated List (CSV) Converter Online | TestMu AI
This free tool allows you to quickly convert column data into a CSV (Comma Separated Values) converter format.
๐ŸŒ
Online Text Tools
onlinetexttools.com โ€บ convert-column-to-comma
Convert Column to Comma in Text โ€“ Online Text Tools
Super simple, free and fast browser-based utility for converting a column of text into comma-separated text. Just paste your vertical column of text and you'll get horizontal text separated by commas. Textabulous!
๐ŸŒ
Commontools.org
commontools.org โ€บ tool โ€บ replace-new-lines-with-commas-40
Free Online Comma Separator Tool | Commontools.org
October 11, 2023 - It takes strings or data values and weaves them into a single thread, ideal for weaving into your code as arrays or lists. Social Media Superpowers: Want to make a splash on social media? Use this tool to craft concise, visually appealing posts for platforms like Facebook and LinkedIn. Your online presence just got a whole lot more stylish. Customize Your Separators: Want to avoid commas?
๐ŸŒ
CodeShack
codeshack.io โ€บ home โ€บ tools โ€บ comma separated list to column
Comma Separated List to Column - Free Online Converter
Convert a comma-separated list into columns (one item per line) instantly. Free tool with custom separators, trimming, duplicate removal, sorting and quoting.
๐ŸŒ
Text Cleaner
textcleaner.net โ€บ home โ€บ convert comma separated list to column online
Convert Comma Separated List to Column Online
April 22, 2022 - Comma to Column: Convert Comma Separated List to Column Online using our Comma to Column converter.