How to use it
- Paste your list into the input box.
- Choose an operation: prefix/suffix, number lines, wrap in quotes, join lines or split into lines.
- Fill in the options for that operation, such as the prefix text, the start number or the separator.
- Copy the result, or use it as the new input to combine operations, for example split, then quote.
How it works
Every operation works line by line. Windows, Unix and old Mac line breaks are all recognised, and the output uses Unix line breaks (LF). A final line break at the end of the input is ignored, so it does not create an extra empty item.
Prefix / suffix adds the same text to the start and end of every line, which is handy for Markdown bullets (“- ”), comment markers (“// ”) or HTML list items. Number lines puts a number and a separator before each line, starting from any whole number (negative numbers work too); with zero padding all numbers get the same width, so 10 lines are numbered 01 to 10. Wrap in quotes surrounds each line with double quotes, single quotes or backticks and can add a comma after every item except the last, which turns a list into the body of a JavaScript, Python or SQL list. Quotes inside a line are only escaped when you ask for it.
Join lines combines all lines into one line with the separator you choose, for example “, ” for a readable list or “,” for CSV. Split into lines does the opposite: it cuts the text at every occurrence of the delimiter, which may be several characters long (“ | ” or “;”), and puts each piece on its own line. The delimiter is matched literally, not as a regular expression. In all separator, delimiter, prefix and suffix fields, \t stands for a tab, \n for a line break and \\ for a backslash.
By default, empty lines (including lines that contain only spaces) are left as they are when adding prefixes, numbers or quotes, and are not counted in the numbering. When joining or splitting, empty items are removed by default. Turn the option off to treat empty lines like any other line.
Examples
List to SQL IN clause
Paste product codes one per line, choose “Wrap in quotes” with single quotes and the trailing comma, then “Join lines” with a space: 'A12', 'B07', 'C33' is ready to paste between IN ( and ).
Comma-separated tags to lines
Paste “seo, marketing, analytics, content”, choose “Split into lines” with the delimiter “,”, and trimming on: each tag appears on its own line without leading spaces.
Numbered steps
Number the lines of a recipe starting at 1 with the separator “. ”. Empty lines between sections stay empty and are skipped, so the numbering continues without gaps.
Frequently asked questions
How do I add a tab or a line break as a separator?
Type \t for a tab or \n for a line break in the separator, delimiter, prefix or suffix field. For example, splitting at \t turns a row copied from a spreadsheet into one value per line.
Can I combine several operations?
Yes. Click “Use output as input” after each step, then choose the next operation. For example, split a comma list into lines, wrap the lines in quotes, then join them again.
Does splitting support regular expressions?
No, the delimiter is matched exactly as typed. For pattern-based splitting, use the Find and Replace tool in regular expression mode and replace the pattern with \n.
Why are some lines not numbered?
Empty lines are skipped by default so that blank lines between groups do not get numbers. Turn off “Leave empty lines unchanged” to number every line.
Privacy
All line operations run in your browser. Your text is not uploaded, stored or included in analytics.