Add Suffix to Each Text Line
Add a chosen suffix to the end of every line.
Text Tools Runs in your browser
How do you add a suffix to each line?
Append one string to the tail of every non-empty line. Set the suffix to “,” and a column of values becomes array-ready; set it to “;” and pasted statements gain their terminators in one go. Blank lines stay blank instead of collecting punctuation. The matching remove-suffix tool strips the same string back off whenever you change your mind.
How to use the Add Suffix to Line
- 1 Paste the lines that need a shared ending.
- 2 Set the suffix, for instance “,” or “;”.
- 3 Each filled line gains the ending while blank rows stay empty.
- 4 Copy the output.
What you can use it for
- Adding trailing commas to build an array.
- Appending semicolons to statements.
- Giving every line a shared ending tag.
- Closing list items with a marker.
Frequently asked questions
Will blank lines pick up the ending?
No. Only lines with content are extended; empty rows stay empty.
What suffix builds an array from a column of values?
A comma. Add quotes first with the add-quotes tool if the values are strings, then append “,” here.
Can I strip the ending later?
Yes, with the remove-suffix tool set to the same string. The two operations mirror each other exactly.
Related tools
More Text Tools
More tools like this:
All Text Tools