TextToolboxTextToolbox
HomeText Cleaners & ModifiersAdd Prefix/Suffix - Line Editor

Add Prefix/Suffix - Line Editor

Add literal prefixes and suffixes to physical lines, with original line endings and an explicit blank-line skip option.

Built by Saurabh Kumar

Quick Answer

Add single-line literal text before and after physical items. Blank lines are retained and skipped by default; affixes do not escape CSV, JSON, HTML or SQL contents. Review the automatic result and modified-item count.

Literal affixes, up to 1,000 units each. Original CRLF/LF/CR endings stay. Blank lines are retained. Input: 1,000,000 UTF-16 units / 20,000 lines; output: 5,000,000 units.

0 input items; 0 modified items.

If Copy fails, select the output and copy manually. An empty result is shown in the counts; there is no nonempty text to export.

Literal Text Before and After Each Line

Add literal text before and after physical lines while retaining their original contents and separators. This is useful for a draft list, not a CSV, JSON, HTML or SQL serializer. Common examples are a simple Markdown bullet draft with a literal prefix, bracketed labels for review, and a shared folder-name prefix on a filename list, all without running a command.

Wrapping a List Without Losing a Blank

Input is Apple, a blank line, then Pear. Prefix is an opening bracket and suffix is a closing bracket.

Skip blanks on modifies 2 items and leaves the blank line alone:

[Apple]

[Pear]

Skip blanks off modifies all 3 items, so the blank line becomes an empty pair of brackets:

[Apple]
[]
[Pear]

Settings, Line Endings and Size Limits

Paste one item per physical line and enter a prefix, a suffix or both; spaces in these fields count. Keep Skip blank lines enabled to leave empty and recognized-whitespace-only lines unchanged, then review the automatic output and modified-line count before Copy.

CRLF, LF and lone CR separate lines and stay in their original positions. A trailing separator creates a final empty item. With skipping off, that item also receives both affixes. Completely empty input has zero items. Skipping preserves blank lines; it does not delete them.

Affixes are literal single-line strings up to 1,000 UTF-16 units each. Backslash-n stays two characters. Input allows 1,000,000 units and 20,000 lines; output allows 5,000,000 units, checked before expansion. These are size limits, not a speed guarantee.

What Literal Wrapping Does Not Do

Quotes inside values are not escaped, HTML contents are not encoded and a suffix comma also appears on the last processed item. Do not treat the result as safely serialized data or executable code. Blank skipping also covers tabs and recognized spaces, not every invisible format character.

Keep a source copy and check meaningful edge spaces. Use Add Line Numbers for an increasing sequence or Extract Column for its supported quoted CSV workflow. The CSV specification describes escaping requirements that literal wrapping does not implement.