Skip to content
ToolsOnDuty
Text Tools

Add Prefix & Suffix to Lines

Add text to the start and/or end of every line, with optional blank-line skipping.

Free foreverRuns in your browserNo sign-up

About the Add Prefix & Suffix to Lines

This tool adds text to the beginning and end of every line at once, saving you from editing each line by hand.

Use it to wrap lines in quotes, add commas for CSV, turn a list into bullet points or build code such as SQL values and array items.

You can also skip blank lines so empty rows stay untouched.

Key features

  • Add a prefix, a suffix or both
  • Wrap lines in quotes, commas or any text
  • Skip blank lines
  • Copy the result instantly

How to use

  1. 1Paste your lines into the box.
  2. 2Enter the prefix and suffix to add.
  3. 3Click Add prefix / suffix and copy the result.

Frequently asked questions

Can I add only a prefix or only a suffix?
Yes. Fill in just one field and leave the other blank to add text to only one side of each line.
How do I turn a list into CSV or an array?
Use a prefix and suffix of a quote and add a comma as the suffix, for example prefix and suffix of double quotes with a trailing comma, to build quoted, comma-separated values.
Is my text uploaded anywhere?
No. Everything runs in your browser, so your text never leaves your device.