How do you add text to the beginning or end of every line?
To add a prefix and suffix to every line, paste your list, type the text for the start and the end of each line, and the result appears instantly. It is handy for wrapping items in quotes, adding commas to build a list for code or SQL, creating bullet points, adding URL paths or numbering lines. Empty lines can be skipped, and the conversion happens in your browser without uploading your data.
How to add a prefix or suffix to each line
- 1
Paste your list into the input box, one item per line.
- 2
Type the prefix, the suffix, or both.
- 3
Choose whether to skip empty lines or number the lines.
- 4
Copy or download the new list.
Key features
Prefix and suffix together
Wrap each line in quotes, brackets or HTML tags in a single step.
Optional numbering
Add 1., 2., 3. at the start of every line for quick numbered lists.
Skip empty lines
Keep blank lines clean, so separators between groups are not filled with symbols.
Great for developers
Build arrays, SQL IN lists, CSV values, URLs or Markdown lists from plain text.
Frequently asked questions
How do I add quotes around every line?
Type a double quote as the prefix and a double quote as the suffix. If you also need commas, add a comma after the closing quote in the suffix, so it reads ",.
How do I add a comma at the end of each line?
Leave the prefix empty and type a comma as the suffix. Every non-empty line will end with a comma.
Can I make a bullet list?
Yes. Use a dash and a space (“- ”) or a bullet symbol as the prefix to create a Markdown or text bullet list.
Does it keep leading spaces in the lines?
Yes. The prefix is placed before the whole line, including its own spaces. Use Remove Line Breaks, or trim your lines first if you need to clean them.
Is there a line limit?
There is no fixed limit. Lists with tens of thousands of lines work in a modern browser.