Add Prefix and Suffix to Lines

Wrap or decorate every line with the text you choose, without editing the list by hand.

How to add a prefix or suffix

Paste one line per item, enter the text to add at the start, the end, or both, and the result updates immediately. For example, a prefix of [ and a suffix of ] turns abc into [abc].

Blank lines are left unchanged by default. Turn that option off to add the prefix and suffix to every line, including empty rows. Copy or download the result as TXT or CSV.

Common uses

  • Wrap SKUs or IDs in brackets or quotes.
  • Turn a list of paths into full URLs.
  • Add a label or bullet to every line.
  • Prepare quoted values for another tool or import.

Exact text, no interpretation

The prefix and suffix are inserted as literal text. They are not treated as regular expressions, and the original line content is not otherwise changed. Leading and trailing spaces in the input are preserved.

Privacy

All work happens in your browser. The list, prefix, and suffix are not uploaded or stored.

Example

abc
notes

prefix: [
suffix: ]
[abc]
[notes]

FAQ

Can I add only a prefix or only a suffix?

Yes. Leave the other field empty.

What happens to blank lines?

They are left unchanged by default. Disable Leave blank lines unchanged to add the affixes to every row.

Are spaces in the input trimmed?

No. The line content is preserved exactly.

Can I use a regular expression?

No. The prefix and suffix are literal text.

Is my data uploaded?

No. Processing is local to your browser.