Free Online Prefix and Suffix Adder For Lines Of Text
Put the same text in front of every line, behind every line, or both, entirely in your browser. Blank lines are left alone, text that is already there is not added twice, and a line number can be inserted where you want it. The same page removes a prefix or suffix that is already on the lines.
Enjoying WizTools123? Help keep our server infrastructure 100% free and open for everyone.
How to Use Line Prefix and Suffix
Step by step, start to finish.
One item per line. A .txt file can be dropped onto the box instead of pasting.
Either box can be left empty. A domain in front and a comma behind is the usual pair for building a list.
Blank lines are skipped by default, and a line that already has the text is left as it is, so running the tool twice changes nothing.
The counters show how many lines changed. Switch the first menu to remove to take the same text off again.
Key Features
What this tool does, and what it does not do.
One pass wraps every line the same way, with either box left empty if you only need one side.
A line that already has the text is left alone, so running it again on a half finished list is safe.
The {n} token becomes the line number, with padded forms for file names that have to sort properly.
The same page strips a prefix or suffix again, with options for letter case and repeats.
Leave the trailing comma off the final line, which is what most lists and most data formats want.
Lists of addresses, file names and customer records stay in this tab.
About Line Prefix and Suffix
Putting the same text in front of every line is one of those jobs that sounds like it needs no tool at all, right up to the point where the list is four hundred lines long. The spreadsheet approach works, but it wants a helper column, a formula, a paste back, and it quietly leaves blank rows looking like real ones.
The useful behaviour here is the part that refuses to work. A line that already carries the prefix is left untouched, so you can run the tool over a list somebody has been halfway through editing and the half that is done stays done. Without that, the second pass gives you a double prefix on every line that was already correct, and spotting those by eye in four hundred lines is not realistic.
The line number token covers the common case where a prefix and numbering are the same job. Building file names, numbering a checklist, or generating identifiers all want a counter inside a fixed pattern, and doing it in two passes with two tools means the numbering is wrong the moment a line is inserted.
Frequently Asked Questions
Common questions about this tool.