Home / Prefix & Suffix

Add Prefix & Suffix to Each Line

Wrap every line with your own text — quotes, commas, HTML tags, bullet markers — in a single pass.

Why Use This Tool?

Turning a column of values into a SQL IN clause, quoting CSV fields, adding list markers, wrapping lines in HTML tags — they're all the same operation: prefix and suffix on every line. This tool does it in one pass with live preview.

The skip-empty-lines option keeps your blank separators blank, so formatted documents don't get polluted with markers on empty rows.

How It Works

  1. Paste your lines.
  2. Type the prefix, the suffix, or both.
  3. Copy the wrapped result.

Frequently Asked Questions

How do I add text to the beginning of every line?

Enter it in the prefix field and click apply — every non-empty line gets the text prepended, with spacing exactly as you typed it.

Can I add both a prefix and a suffix at once?

Yes — both fields work together, which is how you wrap lines in quotes, brackets, or HTML tags in one pass.

Why do empty lines stay empty?

The skip-empty option protects your document structure: blank separator lines stay blank instead of collecting stray prefixes.

Tips & Things to Watch

  • Quoting each line ('...') is the fastest way to prep lists for SQL or JSON.
  • Use ' - ' as a prefix to turn any list into markdown bullets.
  • Uncheck skip-empty only when every line genuinely needs the wrapper.