Free online text tool

Add Text To Each Line

Add Text To Each Line adds text to the beginning, the end or both ends of every line. Paste your list, enter the text to add, click the button and copy the result. It is free and runs in your browser.

Add Text to Each Line Tool

0Character Count
0Character Count (without spaces)
0Word Count
0Sentence Count
0Paragraph Count
0Line Count

Add Text to Each Line Example

Before
Learn how to put a text or code to each line.
This tool automatically adds text without the need to retype.
After
<a>Learn how to put a text or code to each line.</a>
<a>This tool automatically adds text without the need to retype.</a>

Bookmark: press Ctrl+D (Windows) or Cmd+D (Mac) to save this tool.

Suggest a New ToolProvide Feedback on This Tool

What does Add Text To Each Line do?

This tool adds text to the beginning and the end of every line of your list. You can add a prefix, a suffix or both, so you do not have to edit each line by hand.

The text is added exactly as you type it, so it works for bullet marks, quotes, commas, brackets, HTML tags and code. If your list has blank lines, you can add text to them or skip them.

Use it to turn a list into HTML list items, wrap each item in quotes, add commas for code or add a label to every line.

Add text to each line examples

Each example shows the text that was added. The text goes in exactly as typed.

SettingBeforeAfter
Beginning "- "
apple
banana
- apple
- banana
End ";"
a
b
a;
b;
Beginning '"', end '",'
red
green
"red",
"green",
Beginning "<li>", end "</li>"
Home
About
<li>Home</li>
<li>About</li>
Beginning "* ", skip empty lines
Tea

Coffee
* Tea

* Coffee

How to add text to each line

  1. 1
    Add your list
    Type or paste your text into the box, with one item on each line, or import a text file.
  2. 2
    Enter the text to add
    Type the text for the beginning of each line, the end of each line, or both. Tick Skip empty lines if you need it.
  3. 3
    Click Add Text
    Every line in the box is updated at once. Use Undo if you change your mind.
  4. 4
    Copy it
    Click Copy and paste the result where you need it.

When to add text to each line

Good for

Making HTML list items, quoting every item, adding commas or semicolons to a list, adding bullet marks and putting the same label on every line.

Check first

A line is text that ends where you pressed Enter. Spaces you type are kept, so add a space after a prefix if you want one. Blank lines get the text unless you tick Skip empty lines.

Other tools

To add numbers instead of text, try Add Number To Each Line. To add text inside a line, try Specified Position Text Addition.

Add text to each line FAQ

What does the Add Text To Each Line tool do?

It adds text to the start of every line, to the end of every line, or both. You can use it to add a prefix, a suffix, quotes, bullet marks or HTML tags to a whole list at once.

How do I add text to each line?

Type or paste your list with one item on each line. Enter the text for the beginning, the end or both, then click Add Text. The result replaces the text in the box. Click Copy to use it, or Undo to go back.

Can I add text to only the start or only the end?

Yes. Fill in only the box you need and leave the other one empty. At least one of the two boxes must have text.

Can I add HTML tags or quotes to each line?

Yes. The text you enter is added exactly as you type it, so you can add tags such as <li> and </li>, quotes, commas, brackets or any other characters.

Are spaces kept in the text I add?

Yes. A space at the end of the beginning text, such as a bullet followed by a space, is kept, so it separates the added text from your line.

Does it add text to empty lines?

By default every line gets the text, including empty ones. Tick Skip empty lines to leave blank lines as they are.

What counts as a line?

A line is a piece of text that ends where you pressed Enter. A long paragraph that only wraps on the screen is one line.

Is this tool free and is my text private?

Yes. It is free, needs no account and runs in your browser, so your text is not uploaded to a server.

Looking for more text tools?

Browse Modify Tools

Last updated: 27 October 2026