What Is the Add Prefix/Suffix Tool?
The Add Prefix/Suffix Line Editor appends a custom string to the beginning (prefix) or end (suffix) of every line in a block of text — simultaneously. Instead of manually editing hundreds of lines one by one, paste your list, type the prefix and suffix once, and the formatted output is ready instantly.
How to Add Text to Multiple Lines
- Paste your list into the left text box — one item per line.
- Type the text you want added before each line in the Prefix field (e.g.,
-or<li>). - Type the text you want added after each line in the Suffix field (e.g.,
,or</li>). - The modified output appears instantly in the right box. Click the copy icon to save it.
- Toggle Ignore empty lines to skip blank rows and avoid producing lines that contain only
prefixsuffix.
Where Can You Use the Prefix/Suffix Tool?
HTML List Generation
Convert a plain text list into HTML by adding <li> as a prefix and </li> as a suffix — wrap hundreds of lines in tags in under a second.
SQL & JSON Data Prep
Wrap database entries in single quotes and add a trailing comma to build SQL IN clauses or JSON arrays from a raw column dump.
Markdown & Documentation
Add - or * prefixes to turn a list into Markdown bullet points, or add backticks around each line to format them as inline code.
Bulk File Renaming Prep
Add folder path prefixes and file extension suffixes to a list of filenames to generate full paths for shell scripts or batch rename tools.
Prefix, Suffix, and Empty Line Options
- Prefix only: Leave the suffix blank to add text only at the start of each line — useful for bullet markers or numbering prefixes.
- Suffix only: Leave the prefix blank to add a delimiter (comma, semicolon) at the end of every line.
- Both together: Use both fields simultaneously to wrap each line — e.g.,
<li>/</li>for HTML or"/",for quoted CSV values. - Ignore empty lines (default on): Blank lines in your input pass through unchanged. Uncheck to apply prefix/suffix to blank lines too.
Best Practices and Limitations
The tool processes text entirely in your browser — no data is sent to any server, making it safe for API keys, internal lists, or confidential data.
Prefix and suffix values are treated as plain text — special characters like <, >, and & are inserted verbatim. If you need the output inside a rendered HTML page, encode those characters before pasting. The tool handles tens of thousands of lines instantly; for files over ~10 MB, a dedicated CLI tool will be faster.
Share This Line Editor Tool
Know someone who needs to bulk edit text lines? Share this tool!