Skip to content

Add Suffix

Put the same text at the end of every line.

Use {n} to insert the line number.

Quick Tool Overview

Add Suffix appends the same text to the end of every line — a file extension, a comma, a semicolon, a domain. Trailing whitespace is trimmed first by default, because a line ending in a space otherwise produces "name .txt" and the fault is invisible in a long list.

What it does
Adds text to the end of every line
You give it
A list, one item per line
You get back
The list with your suffix on every line
Best for
Extensions, delimiters, domains and statement terminators
Text Tools Free, unlimited use No sign-up Runs in your browser

About the Add Suffix

Appending to every line is the other half of the list-wrapping job, and it has its own set of everyday uses. A file extension after a list of names. A comma after every line to build a delimited list. A semicolon after a block of statements. A domain after a column of usernames to make email addresses.

The detail that matters here is trailing whitespace. A line that ends with a space gets the suffix after that space unless the line is trimmed first, which produces "name .txt" instead of "name.txt" — a small fault that is easy to miss in a long list. This trims by default for exactly that reason, and gives you the switch when you need the whitespace kept.

Key features of the Add Suffix

Trailing whitespace trimmed first

So the suffix sits against the text rather than after an invisible space that breaks the result.

Blank lines skipped

No line made up only of the suffix, unless you ask for every line to be treated identically.

The {n} placeholder

Annotate each line with its row position by putting {n} in the suffix.

Whole list at once

One action regardless of how many lines the list contains.

Points to the separator tool

The page says plainly when Prefix & Suffix Text is needed instead, for formats where the last line must differ.

How to use the Add Suffix

  1. 1

    Paste your list

    One item per line.

  2. 2

    Type the suffix

    The text to append to every line. Use {n} to insert the line number.

  3. 3

    Check the trimming

    Trailing whitespace is removed first by default, so the suffix sits directly against the text.

  4. 4

    Copy the result

    Copy or download the finished list.

Frequently asked questions

Because the suffix lands after it. A line ending in a space produces "name .txt" rather than "name.txt", which is invisible in the output and breaks whatever consumes it. Trimming first avoids it entirely.

Reviews of the Add Suffix

What people who use the Add Suffix think of it. Reviews come from visitors and are posted as written.

No ratings yet

Yours would be the first.

  • 5 0 reviews rated 5 stars
  • 4 0 reviews rated 4 stars
  • 3 0 reviews rated 3 stars
  • 2 0 reviews rated 2 stars
  • 1 0 reviews rated 1 star

Write a review

Used this tool? Your rating helps the next person decide.

Your rating

Plain text only — links, email addresses and HTML are not accepted. Your name and review are shown publicly; nothing else is collected. See the privacy policy.

0 reviews

Newest first

No reviews yet

Be the first to rate the Add Suffix. It takes half a minute and no account.

Write the first review

More text tools