Back to Tools

Add Suffix to Lines

Batch add text to the end of each line

0
0
0
Input Lines

Attach the same ending to each line of a list

Many list formats need a consistent ending on every entry: commas between values, semicolons after statements, a unit after each figure, or a status tag on each task. Adding those by hand is slow, and it is easy to miss one. Add Suffix to Lines appends whatever text you specify to the end of every line at once.

Steps

  1. Paste or type your list into Input Lines, with one item per line. Sample loads three project names and sets a version tag as the suffix, and Clear empties the field.
  2. Type the ending into the Suffix field. The placeholder shows a bracketed DONE tag.
  3. Keep Skip empty lines ticked to leave blank lines alone, or untick it to append the suffix to them too.
  4. Click Add Suffix.
  5. Look over the Before and After statistics, then choose Copy or .TXT to download suffixed-lines.txt.

How it treats your text

  • The suffix is appended exactly as entered, so a leading space in the field creates a gap between the line and the ending.
  • Trailing spaces already present on a line are kept, which means the suffix lands after them. Clean those first if you want it to sit tight against the last word.
  • Blank and whitespace-only lines are skipped by default.
  • An empty suffix returns your text unchanged.

Everyday uses

  • Adding a comma to each value before pasting a list into an array, SQL IN clause or JSON file.
  • Ending every statement in a batch of commands with a semicolon.
  • Appending units such as kg or USD to a column of copied figures.
  • Marking finished checklist items with a status tag or an emoji.
  • Adding a line-continuation character to lines of a shell script.

Watch for these

The last line receives the suffix as well, so a trailing comma after the final item is a common leftover in code lists; delete it by hand if the target syntax forbids it. To wrap lines in quotes you need both ends: add a quote as a prefix with the companion prefix tool, copy the output back into the input, then add the closing quote and comma here. The summary line reports the total number of lines in the output, including any blank lines that were skipped, so use the result box to see exactly what changed. Processing occurs in your browser page, and the original text stays in the input box for another attempt.


Related Tools






Frequently Asked Questions

How do I wrap each line in quotes with a comma?
Use the prefix tool to add an opening quote, copy the result back into the input, then use this tool to add a closing quote and comma as the suffix. This tool alone can only add text at the end of lines.
Will a suffix be added to the last line too?
Yes. Every line that is not skipped receives the suffix, including the final one. If the last item should not end with a comma or other separator, remove it by hand after copying the result.
Can the suffix start with a space?
Yes. The text is appended exactly as typed, so begin the suffix with a space if you want a gap between the line and the ending. Any trailing spaces already on a line remain before the suffix.
What happens to lines that only contain spaces?
With Skip empty lines ticked, they are treated as empty and left unchanged. Untick the option and they will receive the suffix like any other line, which can leave a suffix on a line with nothing else.
Is there a way to upload a file?
No. The tool offers Sample, Paste and Clear controls only. Copy your lines from a text editor or spreadsheet column, paste them into the Input Lines box and run Add Suffix.
Support Chat
We typically reply within minutes

Hello! 👋 Before we start, please tell us your name.