Add Prefix and Suffix to Lines

Add text to the start and end of every line: quotes, commas, bullets, numbers or HTML tags.

FreeNo sign-upPrivate — runs in your browser
0Lines changed

How to use the Add Prefix & Suffix

  1. Paste your listPaste any list with one item per line.
  2. Set what to addType the text to put before and after each line, or pick a quick preset. Use {n} for a running number.
  3. Copy the resultCopy the new list straight into your code, spreadsheet or document.

Example

apple, banana, cherry, date with before " and after ", → "apple", "banana", … ready for a JavaScript or Python list.

Before {n}. numbers every line: 1. apple, 2. banana, 3. cherry.

Frequently asked questions

How do I number lines?

Put {n} in the before or after box, for example “{n}. ” or “Item {n}: ”. Change “Number from” to start at another number.

How do I make an SQL IN list?

Use before ' and after ', and tick “No suffix on last line”. Then wrap the result in IN ( … ).

Are empty lines kept?

Yes, by default empty lines are left as they are. Untick “Skip empty lines” to add the prefix and suffix to them too.

Popular posts from this blog

Character Counter

Speech to Text Online

Keyboard Tester