Like ToolFern? Prefer us as your source on Google →

Add Prefix and Suffix to Lines

Add text to the start or end of every line, or number the lines.

How to use it

  1. Paste your lines.
  2. Type a prefix, a suffix, or tick Number the lines.
  3. Copy the result.

How it works

Each line is processed on its own, so the order and the line breaks stay the same. Numbering starts at the value you choose.

Frequently asked questions

How do I put quotes around every line?

Type a double quote as the prefix and a double quote as the suffix.

How do I make a comma-separated SQL list?

Use quotes as prefix and suffix, then a comma as the suffix, for example prefix ' and suffix ',.

Where does the number go?

The number and a dot-space go before your prefix, for example 1. text.

Are empty lines changed?

By default empty lines are left empty. Untick Skip empty lines to add the prefix and suffix to them too.

Found this useful? Share it