Add suffix to lines by inserting literal text after each logical line, then generate the result and download it as a UTF-8 TXT file.
The Add Prefix and Suffix to Lines tool applies the same suffix to every selected line, with an option to leave blank and whitespace-only lines untouched. It preserves line order and the original text’s spaces and tabs; it does not trim, collapse, sort, or deduplicate the input.
Because the affixes are inserted literally, punctuation such as brackets, quotes, dollar signs, backslashes, asterisks, and parentheses appears exactly as entered. The result is plain text rather than interpreted markup, code, or a regular-expression replacement.

How the suffix is applied
A suffix is user-supplied text placed immediately after the original content of a logical line. When only a suffix is configured, the result for each line is original line + suffix. When both affixes are configured, the result is prefix + original line + suffix.
The tool performs that same concatenation for every line covered by the blank-line setting. It does not search for text inside a line, replace existing characters, infer a programming syntax, or change the meaning of the original content.
Line order remains intact. Leading and trailing spaces, tabs, and internal spacing are not trimmed or collapsed, and letter case is unchanged. The output also does not sort entries, remove duplicates, or modify the line content between the configured affixes.
Add a suffix to every line
- Paste or type the input. Put one logical item on each line when you want one suffix per item. The input can contain as many as 1,000,000 characters.
- Enter the suffix. Type the exact text that should appear after every selected line. You can also enter a prefix, or use a prefix and suffix together. At least one must contain text, and each affix is limited to 200 Unicode characters.
- Choose the blank-line policy. Enable “Leave blank lines unchanged” when empty or whitespace-only lines should remain exactly as entered. Disable it when every logical line, including blank lines, should receive the configured affix or affixes.
- Generate and inspect the preview. The preview shows the exact output string in a preformatted area. It preserves spaces and newlines, although a long line may wrap visually across the available width.
- Download the UTF-8 TXT file. After checking the preview, create the download. The file contains the generated string itself, not copied HTML from the preview, and it uses UTF-8 plain-text encoding.
If you edit the input, prefix, suffix, or blank-line setting afterward, the previous result is cleared and its download URL is revoked. Generate the output again so the download matches the controls currently shown.
Blank lines and the trailing newline
Blank-line handling affects which lines receive the affixes, but it never removes a logical line. An empty line and a line containing only whitespace are treated as blank when the option to leave blank lines unchanged is enabled.
| Setting | Empty line | Whitespace-only line | Final empty line created by a trailing newline |
|---|---|---|---|
| Leave blank lines unchanged enabled | Remains empty | Remains exactly unchanged, including its spaces or tabs | Remains empty |
| Leave blank lines unchanged disabled | Receives the configured prefix and/or suffix | Receives the configured prefix and/or suffix | Receives the configured prefix and/or suffix |
A trailing newline creates a final empty logical line so that the input’s final line boundary is not silently lost. With blank lines skipped, that final line stays empty. With blank lines decorated, it receives the same configured affixes as the other logical lines.
Use suffixes as literal text
Literal insertion makes the output predictable when you need a fixed marker, delimiter, closing character, or status label. The suffix field does not interpret regular expressions, replacement tokens, Markdown, HTML, or code. Every character is placed into the result exactly as typed.
| Formatting goal | Suffix to enter | Literal effect |
|---|---|---|
| Append a delimiter | , | Places a comma immediately after the original line |
| Close a parenthesized value | ) | Places a closing parenthesis immediately after the original line |
| Append a status marker | [processed] | Places the exact bracketed text after the original line |
| Add terminal punctuation | ! | Places an exclamation mark immediately after the original line |
You can enter spaces in the suffix field when they are part of the marker. For example, a suffix beginning with a space produces a space before the first literal character. If you need matching opening and closing characters, configure the same quote or bracket as both the prefix and suffix.
The tool does not add spreadsheet quoting, CSV escaping, or format-specific syntax rules. If the result will become JSON, SQL, CSV, or another structured format, verify or add any escaping required by that format separately.
What the preview and download preserve
The preview is the most useful place to check line order, spacing, blank lines, and literal characters before creating the file. The downloaded TXT contains the generated string rather than a reconstruction of the preview’s rendered HTML.
| Property | Result |
|---|---|
| Original line content | Retained between the configured prefix and suffix |
| Line order | Preserved |
| Spaces and tabs | Not trimmed, collapsed, or removed |
| Letter case | Unchanged |
| Line endings | CRLF, classic Mac CR, and Unix LF are recognized; generated output uses LF consistently |
| Long lines in the preview | May wrap visually without adding a real newline to the file |
| File formatting | UTF-8 plain text with no byte-order mark, rich-text styling, spreadsheet quoting, or CSV escaping |
Visual wrapping is only a display behavior. Likewise, the tool does not apply automatic delimiter detection or derive any text from the downloaded filename. The output consists only of the input lines, the configured literal affixes, and normalized LF line boundaries.
Limits, errors, and local processing
The input and affix limits are designed to keep browser memory use and rendering responsive during large transformations. They also determine whether the tool can complete the requested operation.
- Input limit: Paste or type up to 1,000,000 characters. Empty input and exceeded limits produce visible errors.
- Affix limit: Each prefix and suffix can contain up to 200 Unicode characters. At least one affix must be non-empty.
- Local processing: Decoration, preview generation, and TXT download creation run in your browser. Your text is never uploaded to Lizely.
- Result invalidation: Changing the input or any affix clears the old result and revokes its download URL.
- Unicode display: Emoji and non-Latin text can be inserted, although their visual appearance still depends on the font used by your browser or downstream editor.
These constraints do not change the transformation itself. Within the supported limits, the tool performs only the requested concatenation and preserves the original line content and order.
When another operation fits better
This tool is not a general-purpose text editor. It cannot find and replace a substring within each line, add sequential numbers, parse CSV fields, edit a Word document, or infer the correct syntax for a programming language.
Use Add Line Numbers to Text when each line needs a numeric sequence. Use Find and Replace Text when the task is to change selected text within lines. A format-aware quoting or escaping tool is also more appropriate when the final output must immediately satisfy JSON, SQL, or CSV rules.
Check the result before downloading
- Confirm that the input contains the intended number of logical lines.
- Check that line order and the original spacing are intact.
- Verify that empty and whitespace-only lines behave according to the selected setting.
- Look closely at literal symbols, especially quotes, dollar signs, backslashes, and parentheses.
- Apply any required downstream CSV, SQL, JSON, or other escaping separately.
- Generate the result after your final edit so the TXT file matches the current preview.
For a suffix-only task, the complete workflow is straightforward: enter the lines, choose the literal suffix, set the blank-line policy, inspect the preview, and download the UTF-8 TXT file.
If you're weighing options, Sed Add Quotes to Each Line: Commands and Escaping covers this in detail.
If you're weighing options, Extract Hyperlinks from Word: Command Line vs Online covers this in detail.