Add Prefix & Suffix to Lines
Add a prefix, suffix, or both to every line of text. Wrap lines with tags, quotes, delimiters, or any text. Free online tool.
Three steps to get started
Enter prefix and/or suffix
Type the text you want to add before each line (prefix) and/or after each line (suffix). Use the presets for common patterns.
Paste your list
Paste your text — one item per line. The output updates instantly as you type.
Copy or download
Click Copy to grab the result, or Download to save as a text file.
Wrap every line with custom text — instantly
Whether you're building an HTML list, formatting SQL values, or adding bullet points to a plain text document, manually editing every line is tedious and error-prone. This tool adds any prefix and suffix to every line of your text in one click.
Practical examples:
- Wrap items in
<li></li>tags to build an HTML list from a plain list - Add
'around each line to create SQLIN ('a', 'b', 'c')clauses - Prefix lines with
-or•for Markdown or presentation bullet points - Wrap values in double quotes for CSV or JSON array formatting
- Add
//to comment out multiple lines of code at once - Surround lines with pipe characters for Markdown table rows
The tool includes six common presets so you can jump straight to the most frequently needed patterns. You can also type any custom text — special characters, HTML entities, multi-character strings, or whitespace — into the prefix and suffix fields.
All processing happens in your browser. Nothing is sent to a server, and there are no limits on text length or number of lines.