About Add Text to Each Line
A line prefix and suffix tool adds the same text to the start, the end, or both ends of every line. It processes the input line by line, optionally skips blank lines, and can number the lines (1., 2., 3.) before the prefix. Typical uses are building bullet lists, quoting values for SQL or code, and adding commas to line ends. The added text is identical on every line: per-line variables are not supported.
Also known as: Append And Prepend, Text Appender.
How to use Add Text to Each Line
- Type or paste into the "Input text" box, or press "Use example" to try it with sample data.
- Set "Add at the start of each line", "Add at the end of each line", "Number the lines" and "Skip blank lines" if the defaults do not fit.
- The result appears below and updates as you type.
- Copy the result with the copy button, or download it as a file where that is offered.
Questions about Add Text to Each Line
How do I wrap every line in quotes and add a comma?
Type a quote mark in the start field, and a quote mark followed by a comma in the end field. Each line then comes out as "value", ready to paste into an array or an SQL IN list.
Runs in your browser. Page last updated .