Use this Add Suffix & Prefix tool to bulk-edit text lines in seconds. Paste a list (one item per line), then add a prefix to the start of each line, a suffix to the end, or wrap each line with both. This is useful for formatting data, preparing CSV values, generating file names, building URLs, or wrapping lines in quotes.
Common tasks include adding quotes to every line, appending commas for code lists, adding .com to domain names, prefixing paths like /var/www/, or numbering tasks. The tool applies changes line-by-line, saving you from manual edits and repetitive copy/paste.
Add Prefix & Suffix to Text
Bulk-edit lists line-by-line with optional wrap, numbering, and join modes.
How to add a prefix or suffix to each line
- Paste your text into Text (one item per line).
- Enter the prefix and/or suffix string.
- Choose Prefix, Suffix, Wrap, or Join.
- Click Apply.
- Copy the updated text.
Examples (before and after)
Add quotes to each line (wrap mode)
apple banana cherry
"apple" "banana" "cherry"
Add comma to end of each line (suffix)
a b c
a, b, c,
Add bullet prefix
Task 1 Task 2
- Task 1 - Task 2
Add .jpg extension (suffix)
image01 image02
image01.jpg image02.jpg
Advanced options
- Wrap mode (prefix + suffix together)
- Trim whitespace per line (left/right/both)
- Remove empty lines
- Ignore already formatted lines (avoid double prefix/suffix)
- Line numbering (start + separator)
- Join mode (turn lines into CSV with a delimiter)
Common use cases
- Wrap strings for SQL IN lists and JSON arrays
- Add commas/semicolons for code generation
- Prefix paths for server configs
- Append file extensions in batch
- Build URLs by prefixing https://
- Add @mentions or hashtags in bulk
Common questions
Can I add both a prefix and suffix (wrap each line)?
Yes. Use Wrap mode to add a prefix and a suffix to each line in one step (for example, adding quotes around every item).
How do I add quotes to every line?
Set Prefix to " and Suffix to " then choose Wrap mode. This will turn each line into a quoted string.
How do I add commas to the end of each line?
Set Suffix to a comma, choose Suffix mode, and click Apply.
Can I skip empty lines?
Yes. Enable “Remove empty lines” so blank lines are ignored before applying changes.
Can I trim whitespace automatically?
Yes. Use the Trim option (left/right/both) to remove leading or trailing spaces before applying prefix/suffix changes.
Can I avoid double-prefixing lines?
Yes. Enable “Ignore lines already starting with prefix” (and/or “ending with suffix”) to skip lines that are already formatted.
Does this tool keep the original line order?
Yes. It processes lines in order and outputs them in the same order.
Can I add numbering to each line?
Yes. Turn on “Add line numbers”, choose a start value and separator (like “. ”), then Apply.
What’s the fastest way to turn lines into CSV?
Use Join mode and set the delimiter to a comma. This joins all lines into a single comma-separated value string.
Is my text uploaded to a server?
No. This tool runs in your browser; your input stays on your device and is not uploaded.
Related tools
- JSON Formatter — validate and prettify JSON
- Base64 Encoder/Decoder — encode/decode payloads
- Hash Generator — hash strings/files for integrity
- CSS Minifier — minify/beautify CSS