Line Prefix Suffix

Add chosen text before and after every line in a pasted block.

Add text before or after every line
  1. Paste the lines you want to modify.
  2. Enter a literal prefix, suffix, or optional line number format.
  3. Review the transformed lines before copying them.
Line options
Enter your content to begin.

How to use the Line Prefix Suffix

What does the Line Prefix Suffix do?

Add chosen text before and after every line in a pasted block; It applies this page-specific rule: a prefix is inserted before every included line, and a suffix is inserted after it.

Which inputs does this tool use?

To add chosen text before and after every line in a pasted block, enter Lines to change, Text before each line, Text after each line, Starting number; keep every value in the same example; select Change every line when the values are ready; Start with a familiar case covered by this rule - Optional numbering is added before the prefix - so the expected result can confirm the settings.

How should the tool result be read?

For a result intended to add chosen text before and after every line in a pasted block, optional numbering is added before the prefix; read starting number together with the original lines to change rather than as an isolated answer, and confirm that its units or structure match the intended use.

Are special characters interpreted as code?

When the goal is to add chosen text before and after every line in a pasted block, no.

Can numbering start at zero or a negative number?

When using the page to add chosen text before and after every line in a pasted block, yes.

Limits and accuracy

When using this tool to add chosen text before and after every line in a pasted block, blank lines are preserved unless Skip blank lines is selected; check the result in its intended destination before relying on it for important work; keep lines to change until the output has been checked in its intended destination. For a repeatable check when you need to add chosen text before and after every line in a pasted block, record Lines to change alongside the final output and selected options.

Adding a prefix or suffix to lines

A prefix is inserted before every included line, and a suffix is inserted after it. The tool treats your characters literally, so brackets, quotation marks, periods, and code symbols do not need escaping.

Optional numbering is added before the prefix. The starting value and number separator let you create formats such as 1. Item, 100: Item, or 001 only when you enter that text yourself.

Blank lines are preserved unless Skip blank lines is selected.

Frequently asked questions

Are special characters interpreted as code?

No. Prefix and suffix text is inserted literally.

Can numbering start at zero or a negative number?

Yes. Enter any whole starting number.

Can I remove blank lines while adding text?

Yes. Select Skip blank lines.