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 Add A Prefix Or Suffix To Every Line
A few steps, and nothing is uploaded.
What to Know About Prefixes and Suffixes
Blank lines, lines that already have it, and the line number token.
{n}. in the front box gives a numbered list, and writing it inside a longer prefix gives things like file-{nnn}-draft. The padded forms are for file names, where zeros keep a plain sort in the right order.
http:// will not come off a line that begins with HTTP:// until you switch on ignoring case. Case sensitivity is the default because web addresses, codes and identifiers are often case sensitive and a silent match would be wrong.
Key Features & Capabilities
What this tool does, and what it deliberately does not.
About the Prefix and Suffix Tool
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
Doubling up, numbering, case and removing again.