Category: Text tools
Add Prefix/Suffix to Lines
Add or remove text at the start or end of every line
Add a prefix and suffix to every line, or remove one that is already there, for SQL IN lists, Markdown bullets, or shell commands. Runs entirely in your browser.
3 of 3 line(s) changed.
'apple', 'banana', 'cherry',
Everything on this page is processed in your browser. Nothing is uploaded.
What this tool does
Turning a plain list of values into quoted, comma-ready SQL literals, Markdown bullets, or a batch of shell commands is the same repetitive edit every time: wrap or unwrap each line the same way. This tool applies a prefix and a suffix to every non-blank line at once, or, in Remove mode, strips a matching prefix and suffix back off, with an option to skip blank lines or trim each line first. Everything happens in your browser.
How to use it
- Paste your list into the input box with one item per line, or load the example if you want to see the shape of the output first.
- Type the prefix and suffix you want to add, or the exact text you want stripped from the ends of each line, and turn on skip blank lines or trim each line if your list is uneven.
- Switch between Add and Remove, check the result, then copy it straight into your SQL query, Markdown document, or terminal.
Privacy
This tool runs entirely in your browser. Your input is never uploaded, stored or shared — closing the tab removes it.
Frequently asked questions
- How do I use Add Prefix/Suffix to Lines?
- Paste a list with one item per line, or load the example, then enter your prefix and suffix. In Add mode the tool wraps every non-blank line at once, and you copy the finished block.
- Which inputs and options does Add Prefix/Suffix to Lines support?
- The input is plain text with one item per line. You can set a prefix, a suffix, or both, switch between Add and Remove, and choose to skip blank lines or trim each line before it is processed.
- How do I view or copy the result?
- The result updates as you type a prefix or suffix or change mode. Once it looks right, use the copy button to take the whole block into a SQL IN list, a Markdown bullet list, or a batch of shell commands.
- Is my input, file, or result uploaded?
- No. Inputs, files, settings, and results stay in the browser and are not uploaded to LocalTools, so internal column names or customer IDs never leave your machine.
- What does this tool not support?
- It only adds or removes a prefix and suffix on the lines you paste in. There are no accounts, no cloud history, no server-side processing, and no batch file renaming or automatic line numbering.