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.

Your data never leaves your browser

How to Use

  1. 1

    Enter prefix and/or suffix

    Type the string to prepend (prefix) and/or append (suffix) to each line.

  2. 2

    Paste your lines

    Enter one item per line in the input area.

  3. 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?
Yes. Leave the suffix field empty and only the prefix will be added to each line (and vice versa).
Does it process empty lines?
Yes, the prefix and suffix are added to every line, including empty ones. If you want to skip empty lines, remove them first with the Empty Line Remover.
Can I use special characters like quotes or HTML tags?
Yes. Any text you type in the prefix or suffix fields is used as-is. Type " for double quotes, <li> for HTML tags, etc.

Related Articles

Related Tools