# Add a Suffix to Text Lines

Quickly append a suffix to one or more text lines

> Canonical page: https://elysiatools.com/en/tools/text-add-suffix-lines

- **Category:** Text Processing

- **Keywords:** text, suffix, add, lines, append, end, trailing

## Overview

This utility allows you to efficiently append a custom suffix to every line of your text, streamlining repetitive formatting tasks for code, lists, or data files.

## Inputs

- **Text Input** (textarea): Enter text to process...
- **Suffix** (text): Enter suffix to add...
- **Target Lines** (select): Select which lines to modify
- **Ignore Empty Lines** (checkbox): Skip completely empty lines
- **Preserve Trailing Spaces** (checkbox): Keep existing trailing spaces and add suffix before them

## When to use

- Adding delimiters like commas or semicolons to a list of items.
- Appending specific file extensions or tags to a batch of filenames.
- Formatting raw data lines for database imports or configuration files.

## How it works

- Paste your text into the input area.
- Define the suffix string you wish to append.
- Select which lines to target, such as all lines, only non-empty lines, or alternating lines.
- Click process to generate your formatted text instantly.

## Use cases

- Preparing SQL insert statements by adding commas to the end of value lines.
- Formatting CSS properties by ensuring every line ends with a semicolon.
- Standardizing log file entries by appending a specific status tag to every line.

## Frequently asked questions

### Can I add a suffix only to non-empty lines?

Yes, select 'Non-empty Lines Only' from the Target Lines dropdown menu.

### Does this tool support adding spaces before the suffix?

Yes, simply include the desired space character within your suffix input field.

### What happens if I have existing trailing spaces?

You can enable 'Preserve Trailing Spaces' to ensure the suffix is added before any existing whitespace at the end of the line.

### Can I target only even or odd lines?

Yes, the Target Lines option allows you to specifically select 'Odd Numbered Lines' or 'Even Numbered Lines'.

### Is there a limit to the amount of text I can process?

The tool is designed to handle large blocks of text efficiently within your browser.

## Related tools

- [Indented List to ASCII Tree](https://elysiatools.com/en/tools/ascii-tree-from-indented-list): Convert a 2-space / 4-space / Tab indented hierarchical list (Markdown bullets, -, *, 1. prefixes optional) into a copyable ASCII directory tree. Two styles: Unicode box-drawing (├──└──│) for GitHub/Discord and classic ASCII (|--\--|) for plain text. Toggles for full guide lines, trailing spaces, and bracketed leaf nodes like docs/\[api.md\].
- [Leet Speak Converter](https://elysiatools.com/en/tools/leet-speak-converter): Convert text to and from leet speak (1337). Encode with Basic, Full, or Caps styles, or decode leet back to plain text.
- [Line Number Adder](https://elysiatools.com/en/tools/line-number-adder): Add line numbers to text or code with customizable formatting options
- [Superscript & Subscript Converter](https://elysiatools.com/en/tools/superscript-subscript-converter): Convert text to real Unicode superscript (ˣ²) or subscript (H₂O), or mixed — no HTML tags. Digit coverage is full; letter coverage follows Unicode.
- [Add a Prefix to Text Lines](https://elysiatools.com/en/tools/text-add-prefix-lines): Quickly prepend a prefix to one or more text lines
- [Add a Prefix to Words](https://elysiatools.com/en/tools/text-add-prefix-words): Quickly prepend a prefix to all words in text
- [Add a Suffix to Words](https://elysiatools.com/en/tools/text-add-suffix-words): Quickly append a suffix to all words in text
- [Text Indenter](https://elysiatools.com/en/tools/text-indenter): Quickly add indentation to each text line

## Samples

- [Text with Emoji Samples](https://elysiatools.com/en/samples/text-with-emoji-samples): Mixed language text containing various Unicode emojis for testing emoji extraction
- [Chinese-English Mixed Text Samples](https://elysiatools.com/en/samples/text-chinese-english-mixed-samples): Sample text files with mixed Chinese and English content for testing automatic spacing tools
- [Text Case Format Samples](https://elysiatools.com/en/samples/text-case-formats): Examples of different text case formats: camelCase, snake_case, kebab-case, PascalCase, and more
- [Text with Chinese Samples](https://elysiatools.com/en/samples/text-with-chinese-samples): Mixed language text containing Chinese characters for testing Chinese extraction

## Related content

- [Text Prefix, Suffix, and Symbol Wrapping for Line and Word Batches](https://elysiatools.com/en/hubs/text-prefix-suffix-and-symbol-wrapping): Add prefixes and suffixes to text lines or words, wrap every value in quotes or backticks for SQL, config, and Markdown, and strip inherited numbering, bullets, and decoration from pasted lists.
