Theme: -
Font size:

Delimited List Converter - Column to Comma or SQL IN

Convert between columns and comma, pipe, tab, SQL IN clauses, or JSON arrays. Quote, trim, deduplicate, and sort.

Joining text lines into paragraphs instead of formatting data lists? Try our Text Joiner.

đź”’ Data Safety: We process everything securely and never store or share it.

Enter your list:

How to Use

  1. Paste or type a vertical column or delimited list into the box above, or load a local text file via "Open File" or drag-and-drop.
  2. Select your input delimiter, output format, item quotes, trimming, blank-item filtering, deduplication, and sort order.
  3. Check the live item count and copy or download your converted list in the matching file format.

Options Explained

  • Input Delimiter: Auto-Detect identifies newline, comma, semicolon, pipe, tab, or spaces when no other delimiter is found. It also supports international commas and semicolons, and unwraps SQL IN (...) parentheses or JSON [...] brackets. You can also select New Line, Comma (,), Semicolon (;), Pipe (|), Tab (\t), or Space manually.
  • Output Format: Format items using Comma + Space (, ), Comma (,), Semicolon (;), Pipe (|), Tab (\t), or Space. Select New Line (Column), SQL IN ('a', 'b'), SQL IN (1, 2, 3), or JSON Array ["a", "b"].
  • Item Quotes: Select None, Single Quotes ('item') with doubled '' escapes, or Double Quotes ("item") with doubled "" escapes. This dropdown is disabled automatically when you choose SQL IN or JSON Array because those formats enforce strict quoting.
  • Trim Items: Removes leading and trailing spaces, tabs, and Unicode whitespace from every item, including values inside unwrapped quotes.
  • Ignore Empty: Skips blank lines and empty entries between consecutive delimiters to prevent empty elements in your converted list.
  • Remove Duplicates: Keeps only the first occurrence of each item and removes exact duplicates that appear later.
  • Sort: Keep None (Keep Order) selected to preserve the exact order of items from your source list. Pick Ascending (A to Z) or Descending (Z to A) to sort text and numbers in natural order.

Key Features

  • Convert both ways between vertical columns and comma, semicolon, pipe, tab, space, SQL IN clauses, or JSON arrays.
  • Detect input delimiters automatically and unwrap SQL IN (...) parentheses or JSON [...] brackets when converting to columns or other formats.
  • Use quote-aware parsing to keep commas inside double quotes and mid-word apostrophes like L'OrĂ©al intact.
  • Wrap items in single or double quotes with automatic SQL (''), CSV (""), and JSON (\") quote escaping.
  • Standardize accented characters automatically so visually identical items match when removing duplicates and sort in natural alphanumeric order.
  • Update live item counts and download converted lists as .csv, .tsv, .sql, .json, or .txt files locally in your browser.

About This Online Delimited List Converter

Built for two-way data reformatting, this delimited list converter converts vertical columns into delimited strings and splits structured lists back into rows. It handles comma, semicolon, pipe, tab, space, SQL IN clauses, and JSON arrays with quote-aware parsing, accented-character normalization, deduplication, and natural sorting.

Developed and maintained by the PU Tools team, this tool gives you fast, accurate, safe, and easy results in just a few clicks.

Common Use Cases

  • Database Query Building: Turn spreadsheet ID or code columns into SQL IN clauses with automatic single-quote escaping.
  • Regional Delimiter Conversion: Convert delimited lists between US commas and European semicolons, or split comma-separated strings into a vertical column.
  • JSON and Config Lists: Format tags, SKUs, or domains into clean JSON arrays with deduplication and sorting.

Example Input and Output

Example Input

Café Crème
L'Oréal Paris

Crème Brûlée
Résumé 🚀

Options used: Input Delimiter: Auto-Detect | Output Format: Comma + Space (, ) | Item Quotes: None | Trim Items: ON | Ignore Empty: ON | Remove Duplicates: OFF | Sort: None (Keep Order)

Example Output

Café Crème, L'Oréal Paris, Crème Brûlée, Résumé 🚀

The tool joins four non-empty items with commas, skips the blank line, and preserves French accents and emoji.

Delimited List Converter Example
Screenshot: Actual output of the Delimited List Converter

Frequently Asked Questions

How do I convert a comma-separated list or SQL IN clause back into a vertical column?

Paste your string into the input box, keep Auto-Detect enabled, and select New Line (Column) as the output. The parser strips outer SQL IN (...) or JSON [...] wrappers and places each unquoted item on a separate line.

What is the difference between SQL IN ('a', 'b') and SQL IN (1, 2, 3) formats?

SQL IN ('a', 'b') wraps every item in single quotes and doubles internal apostrophes for string columns. SQL IN (1, 2, 3) outputs unquoted comma-separated values inside parentheses for numeric ID or integer queries.

How does the tool handle items that contain commas or apostrophes like L'Oréal?

The quote-aware parser respects outer quotes so commas inside double-quoted CSV fields never split an item. Unquoted mid-word apostrophes like L'Oréal remain intact and automatically escape to L''Oréal in single-quoted SQL outputs.

Why is the Item Quotes dropdown disabled when I select SQL IN or JSON Array?

SQL IN and JSON Array formats enforce their own strict quoting rules to keep SQL and JSON syntax valid. Locking the dropdown prevents conflicting quote wrappers that would break database queries or JSON parsers.

How does this converter differ from a standard text joiner or text splitter?

Text joiners and splitters merge or break raw text lines without parsing quoted fields or SQL and JSON list syntax. This tool converts structured lists both ways with quote escaping, SQL IN and JSON unwrapping, accent-safe deduplication, and natural sorting.

Does converting sensitive ID lists or CSV columns transmit data over the network?

No. Delimiter detection, quote escaping, and list formatting run locally in client-side JavaScript on your machine, with zero network requests or remote storage.