Skip to content
  1. ConvertSoon
  2. Text tools
  3. Add prefix and suffix

Add prefix and suffix to each line

Add the same text to the start and end of every line in one step. It is free and handy for bullet lists, quotes, SQL values and hashtags.

Runs in your browser Updates as you type Free, no signup

How to use the add prefix and suffix to each line

  1. Paste your text

    Type or paste into the box on the left. It never leaves your browser.

  2. Type the prefix and suffix

    Choose the option you need. The result updates straight away.

  3. Copy the result

    Press Copy result to copy it, or Save to download a .txt file.

Ideas for prefixes and suffixes

Put • or - in front for a bullet list, > for quoted lines, # for hashtags, or ' before and ', after each line to turn a column of IDs into an SQL list. Empty lines get the prefix too, so remove them first with sort lines if you do not want that.

Common uses

Make a bullet list for an email or document, turn a list of words into hashtags, quote every line of a reply with >, wrap values in quotes and commas for a database query, or add the same domain or file extension to a list of names. It saves typing the same characters on every line by hand, and it works on lists with thousands of lines.

Everything happens in your browser, so lists of customers, emails or IDs are never uploaded.

Prefix and suffix with other tools

Combine tools for bigger clean-ups: sort and remove duplicates first, add the prefix and suffix here, then count the result with the word counter or replace a word across the list.

Related tools

More text utilities and similar tools, all free.

Questions about the add prefix and suffix to each line

Yes. Leave Before each line empty and type in After each line.

Yes. Use the sort lines tool and choose Number lines, which adds 1., 2., 3. in front of each line without changing the order of the list if you pick it straight away.

Yes. It handles thousands of lines in the browser. Very large lists may take a moment to paste into other apps, but the tool itself updates instantly.

No. The prefix and suffix are added in your browser, so the list never leaves your device.

No. The conversion runs in your browser, so the text never leaves your device and works offline once the page has loaded.