Add text to each line
Add a prefix, a suffix or both to every line.
Editor
Add text to each line: what it does
Put the same text in front of or after every line: a dash for a list, a comma to build an array, a tag around HTML items, a SQL quote. You can add a prefix, a suffix or both, and skip the empty lines.
Add text to each line: how to use it
- Paste your lines.
- Type the text to add at the start, at the end, or both.
- Select Apply and copy the result.
Add text to each line: when to use it
- Turn a column of values into a SQL or JSON list by adding a quote before and a comma after each line.
- Prefix every line of a quote or a block of code with a marker such as a greater-than sign or two slashes.
- Add a unit, a file extension or a domain to the end of every entry in a list.
Add text to each line: examples
Input
apple banana cherry
Result
- apple; - banana; - cherry;
Input
report invoice summary
Result
report.pdf invoice.pdf summary.pdf
Add text to each line: questions and answers
Can I add text at both ends at once?
Yes. Fill in both the start and the end fields, and each line gets both.
Are empty lines changed?
Not by default. “Skip empty lines” is on, so blank lines stay blank.
Can I add a tab or a line break?
A tab works when you paste one into the field. For a line break, add a marker such as a pipe and replace it with a line break using Find and replace text.
Does it work on a single line?
Yes. A text with one line simply gets the prefix and the suffix once.
Is my text sent to a server?
No. Everything runs in your browser on your own device, so your text never leaves it.
Related tools
Tools people often use together with this one.
- Add quotes around each line
Wrap every line in quotes, brackets or any text.
- Find and replace text
Replace words in your text, with optional regular expressions.
- Bullet list maker
Turn lines into a bullet list, or remove the bullets.
- Add line numbers
Number every line of your text, or remove the numbers.