How to use it
- Paste the lines (or the comma-separated list).
- Choose the direction, separator and quotes.
- 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 [email protected].