Text Tools
Add Prefix & Suffix to Lines
Add text to the start and/or end of every line, with optional blank-line skipping.
Free browser toolRuns in your browserNo sign-up
About the Add Prefix & Suffix to Lines
This tool adds text to the beginning and end of every line at once, saving you from editing each line by hand.
Use it to wrap lines in quotes, add commas for CSV, turn a list into bullet points or build code such as SQL values and array items.
You can also skip blank lines so empty rows stay untouched.
Key features
- Add a prefix, a suffix or both
- Wrap lines in quotes, commas or any text
- Skip blank lines
- Copy the result instantly
How to use
- 1Paste your lines into the box.
- 2Enter the prefix and suffix to add.
- 3Click Add prefix / suffix and copy the result.
Examples
Wrap lines
Input:
one, two with prefix '- 'Output:
- one / - twoThe chosen prefix or suffix is added to every line.
Frequently asked questions
- Can I add only a prefix or only a suffix?
- Yes. Fill in just one field and leave the other blank to add text to only one side of each line.
- How do I turn a list into CSV or an array?
- Use a prefix and suffix of a quote and add a comma as the suffix, for example prefix and suffix of double quotes with a trailing comma, to build quoted, comma-separated values.
- Is my text uploaded anywhere?
- No. Everything runs in your browser, so your text never leaves your device.
Continue your workflow
Open a related tool to prepare your files or refine the finished result.
- Text ToolsAdd Line Numbers
Number each line with a custom start, separator, zero padding and blank-line skipping.
Open tool - Text ToolsText Splitter
Split text on a comma, space, custom delimiter or more into one item per line.
Open tool - Text ToolsText Cleaner
Trim lines, collapse extra spaces and remove blank lines.
Open tool
