Add Prefix/Suffix
Prepend and/or append a string to every line, for example to quote values or build URLs from paths.
- Runs in your browser
- Free to use
About this tool
Add Prefix/Suffix to Lines wraps every line with the text you choose, turning a list of file names into URLs, IDs into SQL values or hostnames into firewall rules in one click. Empty lines can be left untouched.
The opposite operation is Remove Prefix/Suffix from Lines.
How to use it — quick steps
- 01
Enter the lines
Type or paste the lines in the field above, one item per line. Use Ctrl + V to paste from the clipboard.
- 02
Adjust the options
Pick the settings that fit your case; the defaults work for most people. Changes apply instantly.
- 03
Press "Add prefix/suffix"
Press "Add prefix/suffix" or Ctrl + Enter. The result appears instantly below the form.
Key features of this tool
Nothing leaves your browser
The processing is plain JavaScript that runs on your device: the text you paste is never uploaded to our servers or to anyone else.
Instant results
Results appear the moment you press the button, even for long inputs, and every block has copy and download actions.
Works everywhere
No installation, no account and no limits: the tool works on desktop and mobile, in any modern browser, as often as you like.
Frequently asked questions
Can I add a tab or special characters?
Paste them into the field; tabs and symbols are inserted literally.
How do I quote every line?
Use " as both prefix and suffix.
Are my files or data uploaded?
No. The tool is plain JavaScript that runs in your browser; the files or data you provide here are never uploaded to our servers.