Add consistent prefixes and suffixes to every line of your text with just a click.
This tool adds your chosen text to the beginning (prefix) and/or end (suffix) of every line in your input. It's like having a digital assistant who can quickly wrap each line of your list with consistent formatting—saving you from tedious manual typing or search-and-replace work.
apple banana cherry
- apple; - banana; - cherry;
Convert plain lists to HTML lists, wrap items with tags, or create JSON/XML elements. For more complex formatting, you might also explore our fancy text options for stylized content.
Example: Add<li> before and </li> after each item
Format lists for CSV files, SQL queries, or programming arrays. If you need to remove inconsistent formatting first, try the special characters remover to clean your data.
Example: Add quotes and commas for SQL:'apple', 'banana', ...
Create bulleted lists, numbered items, or add consistent formatting to notes. After adding prefixes, you might want to sort your lines alphabetically for better organization.
Example: Turn notes into a checklist with- [ ] prefix
Quickly create multiple similar code statements or function calls. When working with repetitive code patterns, our line-based formatting tool (you're here!) pairs perfectly with other utilities.
Example: Generateconsole.log() statements for debugging
The tool processes your text line by line, following these simple rules:
Yes! You can include tabs (\t), quotes, brackets, or any characters in your prefix/suffix. The tool adds exactly what you type. For encoding special formats, you might also like our Morse code generator.
The tool will process your text (trimming if enabled) but won't add anything—useful for just cleaning up whitespace across multiple lines. After cleaning, you can use the line break manager to adjust paragraph structure.
It works best with lists or single items per line. For paragraphs, consider that each line break will get the prefix/suffix added. You might prefer our text justification tool for paragraph-level formatting.
This area can be used for ads or additional information.