List Converter (Lines to Comma-Separated and Back)

Move between a column of values and a list in one line. Everything runs in your browser; nothing you enter is uploaded or stored.

  • Free, no sign-up
  • Runs in your browser
  • Verified

How to use it

  1. Paste the lines (or the comma-separated list).
  2. Choose the direction, separator and quotes.
  3. Copy the result.

How it works

Blank items are dropped and items are trimmed. When quotes are used, a quote character inside an item is doubled, which is how SQL escapes it. Splitting accepts commas, semicolons, pipes and line breaks.

Examples

  • Three lines apple, banana, cherry with single quotes become 'apple', 'banana', 'cherry'. Paste that into an SQL IN (...) clause.

Limitations

  • Items that contain commas themselves are not treated specially when splitting.
  • For anything beyond a simple list, use a CSV tool.

Last verified . See our Accuracy & Editorial Policy. Found a problem? Email contact@tools.gift.