Add prefix and suffix

Add text to the start and the end of every line.

  • Content
  • 100% free
  • No sign-up
  • Runs in your browser
Add prefix and suffix

What is the add prefix and suffix?

The add prefix and suffix tool adds text to the start and the end of every line. Turn a list of paths into full URLs, wrap values in quotes or HTML tags, add commas for code, or number the lines.

Empty lines can be skipped so the structure of the text is kept.

How to use the add prefix and suffix

  1. 1Paste the text, one item per line.
  2. 2Type the prefix and the suffix.
  3. 3Copy the result.

Features

Prefix and suffix

Add text before and after each line.

Numbering

Add 1. 2. 3. in front of the lines.

Skip empty lines

Blank lines stay blank.

Live

The result updates while you type.

Frequently asked questions

How do I turn paths into full URLs?

Put https://example.com in the prefix and paste the paths.

How do I wrap each line in quotes?

Use a quote as the prefix and a quote and a comma as the suffix.

Can I add HTML tags?

Yes, e.g. <li> as the prefix and </li> as the suffix.

Are the spaces in the prefix kept?

Yes, the prefix and suffix are added exactly as typed.