Add Prefix and Suffix to Lines
Wrap every line of a list with custom prefix and suffix text instantly and privately in your browser.
Result
You have a plain column of values — IDs from a spreadsheet, e-mail addresses, file names, keywords — and the place you need them wants each item quoted, wrapped in tags, or turned into code. Adding the same characters to the start and end of hundreds of lines by hand is exactly the kind of repetitive editing a machine should do for you.
This tool adds any prefix and suffix to every line in one click, entirely in your browser — nothing is uploaded, so internal identifiers and customer data stay on your device. Paste the list, type what should go before and after each line (both parts are optional), and copy the result.
The options are built for real-world lists: surrounding spaces can be trimmed before wrapping so indented or copy-pasted lines come out clean, and empty lines can be skipped so blank separators are not turned into stray quoted pairs. Everything else — order, content, line count — stays exactly as you pasted it.
A finishing touch makes it a full list-to-code converter: choose to join the wrapped lines with a comma or a comma and space, and a vertical list becomes a single ready-to-paste line — 'id1','id2','id3' for a SQL IN (...) clause, "a", "b", "c" for a JSON or JavaScript array, or value1, value2 for a function call.