Add Prefix & Suffix to Lines
Add a prefix, suffix, or both to every line of text. Wrap lines in quotes, HTML tags, or any custom string.
How to Use
- 1
Enter prefix and/or suffix
Type the string to prepend (prefix) and/or append (suffix) to each line.
- 2
Paste your lines
Enter one item per line in the input area.
- 3
Click Apply
Each line is wrapped with the prefix and suffix. Copy the result.
What is Add Prefix & Suffix to Lines?
This tool adds a custom prefix and/or suffix to every line in a block of text. Use it to wrap lines in quotes, HTML tags, SQL values, or any other string. It processes each line independently, making it perfect for bulk text transformations.
Common uses: wrapping list items in `<li>` tags, adding quotes around CSV values, prefixing log entries with timestamps, or preparing bulk SQL INSERT values.
FAQ
Can I add only a prefix without a suffix?
Does it process empty lines?
Can I use special characters like quotes or HTML tags?
Related Articles
Related Tools
Case Converter
Convert text between UPPERCASE, lowercase, Title Case, camelCase, PascalCase, snake_case, kebab-case, and CONSTANT_CASE instantly.
Duplicate Line Remover
Remove duplicate lines from text while preserving order. Paste a list, get unique lines instantly.
Line Sorter
Sort lines alphabetically, by length, naturally, or randomly. Remove duplicates and trim whitespace. Supports ascending, descending, and custom sort modes.
Add Line Numbers
Add line numbers to any text. Formats with aligned padding and a separator — ready for code reviews, documentation, or sharing.
Character Counter
Count characters with and without spaces, plus words, lines, sentences, and reading time. Real-time analysis for any text.
Diff Checker — Text Compare
Compare two texts side-by-side and see the differences highlighted. Find added, removed, and unchanged lines instantly.