Text Tools Runs in your browser Free · no account

Prefix and Suffix Tool

This tool adds a prefix, a suffix or both to every line of a list in one pass, with optional line numbering and blank-line handling. It turns a plain list into quoted values, HTML list items, SQL literals or bullet points in a single step.

Options
Lines 0 characters
Result

Your result will appear here.

Not sure where to start? Use Load example.

Results update automatically and are calculated on your device. Nothing you type is sent to a server.

Runs in your browser. Processing happens entirely in your browser. Nothing you enter is sent to Delimiter.live.

How to use the Prefix and Suffix Tool

  1. Paste your list with one item per line.
  2. Type the prefix, the suffix, or both.
  3. Enable numbering if each line should be labelled with its position.
  4. Copy the transformed list.

Example

Input
apple
banana
Output
<li>apple</li>
<li>banana</li>

Common use cases

  • Wrapping a list of items in HTML tags such as <li> and </li>.
  • Quoting values for a SQL IN clause or a JavaScript array.
  • Adding a common path prefix to a list of file names.
  • Turning a plain list into Markdown bullets by using "- " as the prefix.

Limitations and things to watch for

  • The prefix and suffix are added literally; nothing is escaped. If you are building HTML or SQL from untrusted values, escape them properly in your application rather than relying on string concatenation.
  • Blank lines are left untouched by default so list structure is preserved. Turn that option off to prefix them too.

Frequently asked questions

Can I add both a prefix and a suffix in one pass?
Yes. Fill in both fields and every line is wrapped on both sides at once.
How do I quote values for a SQL IN clause?
Use an apostrophe as the prefix and "'," as the suffix, then remove the trailing comma from the final line. Note that this is for hand-written queries only — never build production SQL by concatenating untrusted values.
Can I number the lines?
Yes, and you can choose the starting number, which is useful when continuing a list from an earlier batch.

Share this tool