Add Prefix / Suffix

Add a prefix or suffix to every line.

Text Tools

How to Use Add Prefix / Suffix

  1. 1Paste your multi-line text
  2. 2Enter your desired prefix and/or suffix
  3. 3Click the apply button
  4. 4Copy or download the result

About Add Prefix / Suffix

Add Prefix & Suffix lets you prepend and/or append any text to every line of your input. This is extremely useful for bulk formatting: adding quotes around each line, wrapping lines in HTML tags, adding numbering, creating SQL INSERT statements, or adding commas for array literals.

You can add just a prefix, just a suffix, or both at the same time.

Frequently Asked Questions

Does it apply to empty lines?

No. Prefix and suffix are only added to non-empty lines.

Can I add both a prefix and suffix at once?

Yes. Enter values in both fields and click Apply Both.