Add Text to the Start and End of Each Line

Type what goes before and after, and it's added to every line that has text.

Result

The converted text appears here as you type.

For example
apple
banana
cherry
"apple",
"banana",
"cherry",

How to use

  1. Paste or type your text in the box, and fill in the options above it.
  2. Check the result. Every change is highlighted, so you can see exactly what will be different.
  3. Press Copy Result, or Open in Editor to keep working with more tools, undo and saved drafts.

Example

Options used: Before ", After ",

Before
apple
banana
cherry
After
"apple",
"banana",
"cherry",

What it's for

  • Wrapping each line in quotes for a SQL IN list or JSON array
  • Adding a bullet, hashtag or HTML tag to every line

Questions

Are empty lines changed?

No. Empty lines stay empty.

Related tools