Add Prefix and Suffix to Every Line Online
Wrap each line of a list with a prefix, suffix, or both. Common uses include adding <li> tags to a list, quotes, or commas.
Quick answer
To add a suffix to every line, paste your list, type the suffix (for example a comma or '.com') in the suffix box and copy the result. The prefix box works the same way for the start of each line.
- Cost: free, no signup or limits.
- Privacy: runs 100% in your browser; text is never uploaded.
- Works on: desktop and mobile browsers, offline once loaded.
- Category: Content Cleanup.
Common conversions
How to Use
- 1.Paste your list (one item per line).
- 2.Enter the text to add before each line and/or after each line.
- 3.Copy the wrapped output.
Common prefix and suffix jobs
Wrap values in quotes for SQL ('value',), add <li> and </li> to build an HTML list, append a domain like @company.com to usernames, or add a hashtag in front of every keyword.
Prefix, suffix or both
Fill in one box or both. Blank lines can be skipped so empty rows don't turn into stray quotes or tags.
FAQ
Can I add only a prefix or only a suffix?
Yes — leave either field empty and only the other will be applied.
Does it skip blank lines?
Optional. Toggle 'Skip blank lines' to ignore empty lines.
Is it good for HTML lists?
Yes — add <li> before and </li> after to convert plain lines into HTML list items.