ETEvoraTools
Text Formatting

Add Suffix to Every Line

Add Suffix to Every Line normalizes CRLF and adds the entered Suffix after every line, including blank lines. An empty suffix changes nothing. Existing trailing spaces remain before the suffix, and no separator, escaping, blank-line exclusion, format validation, or original line-ending preservation is provided.

Runs locally — files stay on your device
Quick answer

Is the suffix added after trailing spaces?

Yes. The original line string is unchanged before concatenation.

Suffixing preserves each line's existing content

The operation performs literal concatenation at the end of every split line rather than trimming or parsing it.

How it works

Each line maps to line + suffix and lines rejoin with LF.

Key concepts

Trailing spaces remain

Suffix follows them.

Blank lines receive suffix

They become nonempty when suffix is nonempty.

When to use it

  • Add a delimiter or punctuation to each simple line.
  • Create list-item terminators.
  • Append a common label.

When not to use it

  • Do not use as syntax-aware statement termination.
  • Do not expect blanks skipped.
  • Do not expect trailing whitespace cleanup.

Worked examples

Comma

Input
a\nb; suffix ,
Expected output
a,\nb,

Literal comma.

Blank

Input
a\n\nb; suffix ;
Expected output
a;\n;\nb;

Empty line changes.

Trailing space

Input
a ; suffix !
Expected output
a !

Existing space stays before !.

Common mistakes

Unexpected blank content

Blank lines get suffix. Correction: Filter blanks first.

Assuming code correctness

No parser exists. Correction: Use a formatter/compiler.

Leaving trailing spaces

They remain. Correction: Trim first if appropriate.

Best practices

  • Inspect blank and trailing-space lines.
  • Choose a literal safe for the destination.
  • Keep source.

Related operations and differences

Add Prefix to Every Line

Choose Add Prefix to Every Line when you need to add the same prefix before every line.; use Add Suffix to Every Line specifically for add suffix.

Capitalize Every Word

Choose Capitalize Every Word when you need to capitalize the first character of every word.; use Add Suffix to Every Line specifically for add suffix.

Extract Email Addresses

Choose Extract Email Addresses when you need to find unique email addresses in text.; use Add Suffix to Every Line specifically for add suffix.

Extract URLs

Choose Extract URLs when you need to find unique HTTP and HTTPS links in text.; use Add Suffix to Every Line specifically for add suffix.

Line Counter

Choose Line Counter when you need to count the number of text lines.; use Add Suffix to Every Line specifically for add suffix.

Lowercase Converter

Choose Lowercase Converter when you need to convert every letter to lowercase.; use Add Suffix to Every Line specifically for add suffix.

Limitations and privacy

  • Literal suffix on every line; no blank skip, trim, condition, escape interpretation, format validation, or CRLF preservation.

Text is transformed locally in this browser and is not uploaded by the tool.

Frequently asked questions

Are blank lines changed?

Yes.

Are trailing spaces removed?

No.

Is suffix literal?

Yes.

Are line endings normalized?

CRLF becomes LF.

References