Text Tools

Prefix / Suffix Lines

Add the same prefix and suffix to every non-empty line.

Results are provided for general informational use. Verify important financial, health or legal figures before relying on them.

About this Prefix / Suffix Lines

The Prefix / Suffix Lines tool adds repeated text before and/or after each non-empty line. It is useful for preparing lists, adding quotes, building simple syntax and bulk-editing structured text.

How the calculation works

The tool processes each line independently and leaves blank lines blank. The prefix and suffix are inserted as literal text.

How to use it

  1. Paste one or more lines.
  2. Enter an optional prefix and suffix.
  3. Apply the change to every non-empty line.

Practical example

Adding prefix “<li>” and suffix “</li>” can quickly wrap a plain list in simple HTML list-item tags.

Frequently asked questions

Can I add only a prefix?

Yes. Leave the suffix blank.

Are blank lines changed?

No. Blank lines remain blank.

Can I use symbols or HTML-like text?

Yes. The strings are inserted literally into the textarea.

Keep exploring

More Text Tools

View category →