Skip to content

Add Prefix and Suffix

Add the same text to the start and end of every line, or strip it off.

Mode
Presets:
Options
Runs in your browser — your data is not uploaded.

How to use

  1. Paste one item per line into Your lines.
  2. Set Mode to Add or Remove.
  3. Enter the text to add or strip in Prefix and Suffix; leave either field empty if you only need one.
  4. Check Trim lines first to remove spaces and tabs from the ends of each line.
  5. Review Result, which updates automatically, then click Copy or Download.

Examples

Build an HTML list

Input
  Shipping information
Returns  
Contact us
Output
<li>Shipping information</li>
<li>Returns</li>
<li>Contact us</li>

Add a domain to website paths

Input
/about
/contact
/shipping
Output
https://example.com/about
https://example.com/contact
https://example.com/shipping

Remove bullet dashes

Input
- Order printer paper
Office supplies
- Restock envelopes
Output
Order printer paper
Office supplies
Restock envelopes

FAQ

How do I add quotes around each line?

In Add mode, click the '…' or "…" preset to fill both fields with matching quotes.

Can I add a comma to the end of every line?

In Add mode, click the …, preset. It clears Prefix and sets Suffix to a comma, keeping each item on its own line.

What happens to empty lines?

Empty lines defaults to Leave unchanged, which preserves blank and whitespace-only lines exactly. Choose Remove to delete them or Add prefix & suffix too to process them like other lines.

How do I insert a tab or line break in a prefix or suffix?

With Interpret \t and \n checked, type \t for a tab or \n for a line break in either field. Uncheck it to insert those sequences literally.

Is my text uploaded or saved?

Your lines are processed in your browser; the tool's code makes no network requests with the text and does not save the input. Option settings, including Prefix and Suffix, are saved in your browser's localStorage.