What does this tool do?
An add prefix and suffix tool wraps every line in a block of text with the same leading or trailing string. You can add a prefix, a suffix or both at once, and the result updates as you type.
It is useful for turning plain lines into list items, SQL values, quoted strings, HTML tags or any format where each line needs the same wrapper. Skipping blank lines keeps paragraph breaks intact.
How to use it
- Paste one item per line into the input box.
- Type the prefix, suffix or both.
- Leave “Skip blank lines” on to preserve empty lines.
- Copy the transformed result.
Add Prefix and Suffix limits and rules
| Item | Limit |
|---|---|
| Input | Any plain text, one item per line |
| Prefix/suffix | Any string, including spaces and symbols |
| Blank lines | Can be left unchanged or wrapped |
| Output | Same line breaks as the input |
When to use it
- Wrapping lines in quotes or brackets.
- Adding bullets, numbers or SQL syntax.
- Appending file extensions or URLs.
- Preparing a list for code or a spreadsheet.
Is it private?
Everything runs inside your browser. Your text and files are never uploaded, never stored and never seen by anyone else — including me. You can use the tool with the network tab open and watch no request leave the page. Closing the tab erases the input.
Frequently asked questions
Yes. Fill in either field or both. Each line becomes prefix + original line + suffix.
By default they are left alone. Untick “Skip blank lines” if you want them wrapped too.
No. Lines stay in the same order and keep their original line breaks.
Related tools
Written and maintained by Md. Nur Hossain Repon.