Add a Suffix to Text Lines

Add custom suffixes to each line of your text using the Add a Suffix to Text Lines Tool. Choose a suffix string, trim lines before appending, skip or include empty lines, and preview changes instantly. Supports file import, copy, and export.

Paste your input above or import a file below.
No file chosen
Supported file types: .txt, .csv, .tsv, .log, .json, .xml, .md, .ini, .yaml, .yml, .html, .htm, .css
Total lines: 0
Options
Ignore empty lines
Trim lines before suffix
Add line numbers before suffix
Suffix to add:

How to Use:

  1. Paste your text into the input box or import a file.
  2. Enter your desired suffix (default is _end).
  3. Toggle options such as ignoring empty lines or trimming before adding.
  4. View the result instantly in the output box.
  5. Use “Copy Output” or “Export to File” as needed.

What Add a Suffix to Text Lines Tool can do:

  • Add custom suffix to every non-empty or all lines.
  • Trim lines before applying the suffix.
  • Ignore empty lines entirely when toggled On.
  • Include line numbers before the suffix.
  • Live output preview with flashing border update.
  • File import (.txt, .csv, .json, etc.), copy, and export functions included.

Example:

Input:

apple
banana

cherry

Options:

  • Suffix: _fruit
  • Ignore empty lines: On
  • Trim lines: On

Output:

apple_fruit
banana_fruit
cherry_fruit

Common Use Cases:

Use this tool to add markup, tags, punctuation, or annotation suffixes to each line of a dataset, script, list, or raw content. It’s useful for formatting scripts, labeling entries, or prepping text for coding and content generation tasks.

Useful Tools & Suggestions:

After adding suffixes to each line, you might want to Add Line Numbers if you’re prepping the content for reference or review it keeps everything easy to track. And if your lines are part of a longer block of text, Normalize Line Breaks in Text helps everything stay tidy and consistent.