Add Prefix/Suffix to Lines
Add the same text before and/or after every line in a list.
Related tools
How it works
- 1
Paste your list
One item per line.
- 2
Enter a prefix and/or suffix
Either one is optional — leave blank to skip it.
- 3
Copy the result
Every line gets the same prefix/suffix applied.
FAQ
- What is this useful for?
- Turning a plain list into code (e.g. wrapping each line in quotes and a comma for an array), or adding bullet markers/indentation to a list.
- Are blank lines affected?
- No — a blank line stays blank instead of becoming just the prefix and suffix.
- Is there a limit on how much text I can paste?
- No fixed limit — this runs in your browser, nothing is uploaded.