About Add Prefix and Suffix to Lines
Turn a column of names copied from a spreadsheet into a quoted, comma-separated list for code or SQL; put "- " in front of every line to make a Markdown list; or wrap each line in a tag. Type what should go before each line and what should go after, and the result updates as you type.
Blank lines can be left untouched so that gaps between groups stay gaps, and each line can be trimmed first so stray spaces do not end up inside your quotes. Escapes such as \t let you add a tab.
How it works
- The text is split at every line break and each line becomes prefix + line + suffix. The line endings and a final newline are kept as they were.
- Lines that are empty or hold only spaces are left as they are unless you turn that option off.
- With escapes on, \t in the prefix or suffix becomes a tab, \n a line break and \\ a single backslash. Everything else is added exactly as typed.
Questions
How do I turn a list into a quoted, comma-separated one?
Keep the starting prefix " and suffix ", then remove the comma from the last line. To get everything on one line as well, use the join lines tool afterwards.
Can I add a tab or a line break?
Yes. With escapes on, type \t for a tab or \n for a line break. Turn escapes off if you need the backslash and letter themselves.
Is there a limit on how much text it takes?
It takes up to 5 MB of text, which is hundreds of thousands of lines, and the prefix and suffix can each be up to 1,000 characters.
Everything you enter here is processed in this browser tab. Nothing is uploaded, logged or shared. How privacy works here.