Add Prefix & Suffix

Wrap or decorate every line with a prefix and suffix in one pass.

How Add Prefix & Suffix works

Prepend or append text to every line in a list, ideal for building URLs, SQL values or markup. Everything happens inside this page: the tool reads your input, runs the calculation or conversion locally, and hands the result back to you. Nothing is transmitted, because there is no backend to transmit it to.

That design choice is deliberate. Most free tool sites upload your files to a server, process them there, and quietly keep a copy. Toolcin cannot do that — the site is a set of static files. If your connection dropped the moment the page finished loading, every tool would still work.

Every line, both ends

The prefix is added before each line and the suffix after it. With prefix `'` and suffix `',` a list of names becomes a SQL value list in one click.

Blank lines are skipped by default, so a list with spacing between items does not produce stray prefixed empty rows.

The classic uses

Turning a column of IDs into a comma-separated SQL IN list, wrapping filenames in quotes, adding a URL prefix to a list of paths, and appending a unit to a column of numbers.

Because the operation is per line, indentation inside a line is untouched.

Prefix / suffixResult
' / ','a', 'b', 'c',
https://x.com/ / (empty)https://x.com/a
(empty) / USD100 USD
- / (empty)- a bulleted line

Watching the trailing separator

A suffix of `,` leaves a comma after the last item, which SQL rejects and JSON does not allow. Remove the final one by hand or sort the list first and fix the last line — it is the most common mistake with this tool.

Good to know

  • Works offline once loaded, including on flights and in locked-down networks.
  • No file size limit beyond your device's own memory.
  • Free to use, with no account and no usage counter.
  • Results are produced locally, so they are not logged or shared with anyone.

Questions

Why use this for URLs?

Prefix a domain and suffix a path to turn a slug list into full links.

Are blank lines skipped?

Yes by default, so lists keep their spacing.

Can I add different text per line?

No — the same prefix and suffix apply to every line.

Does it handle Windows line endings?

Yes, both line-ending styles are handled.

Keep going

More text tools