Skip to main content
FixLines

Add text to each line

Add a prefix, a suffix or both to every line.

Editor

Ln 1, Col 10 lines0 words0 characters

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

  1. Paste your lines.
  2. Type the text to add at the start, at the end, or both.
  3. 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

Add a dash and a semicolon

Input

apple
banana
cherry

Result

- apple;
- banana;
- cherry;
Add a file extension to names

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.

Tools people often use together with this one.

More in Add & wrapBrowse all text tools