➕

Add Prefix and Suffix

Add text to the start and end of every line

📝 Text ToolsFreeRuns in your browser

Result

—

0 non-empty lines affected. Empty lines are skipped by default.

About the Add Prefix and Suffix

The Prefix and Suffix Tool attaches text to the start and end of every line. It is quicker than a spreadsheet formula for turning plain lines into list items, quoted strings, or SQL values.

Wrapping lines in quotes or commas is a common import chore. Preview the first few lines before copying a large batch, because a stray blank line can shift the imported rows.

  • ✓Independent prefix and suffix
  • ✓Skips blank lines
  • ✓Preserves the original order

How to use the Add Prefix and Suffix

  1. 1

    Paste one item per line.

  2. 2

    Type the prefix and suffix you need.

  3. 3

    Copy the transformed lines.

Frequently asked questions

Can I add different values to each line?+

No. The same prefix and suffix apply to every line. Use a spreadsheet formula or the Add Line Numbers tool when the added text must change per row.

Does it escape quotes automatically for code?+

No, the text is inserted literally. Add your own escaping, then paste the result into a linter to confirm it parses.

Save Add Prefix and Suffix to your favorites, or keep browsing text tools.

Browse all 35 text tools →