DuckyTools
Home Text Add Prefix and Suffix

Add Prefix and Suffix Text

Wrap every line with text — quotes, commas, tags, bullets.

Add Prefix and Suffix is a free online tool that wrap every line with text — quotes, commas, tags, bullets. It runs entirely in your web browser using plain JavaScript, so files are processed on your own device and never uploaded to a server. There is no sign-up, no file size limit imposed by the site, no watermark and no paid tier.

Price
Free — no account, no quota, no watermark
Category
Text
Where it runs
In your browser, on your device
Files uploaded
None
Technology
plain JavaScript
Settings
3
Works offline
Yes, after the first visit

About Add Prefix and Suffix

A string is added to the start or end of every line. The everyday uses are mechanical and constant: turning a column of values into a quoted SQL `IN` list, wrapping paths in quotes for a shell command, adding a comment marker to a block of code, or building repetitive config from a plain list.

How to use it

  1. Paste the text you want to run through add prefix and suffix.
  2. Set prefix, suffix and skip empty lines.

The 3 settings

SettingWhat it doesDefault
PrefixFree text.'
SuffixFree text.',
Skip empty linesOn or off. On by default.On

Under the hood

Runs onplain JavaScript — runs the whole thing
ControlsPrefix, Suffix, Skip empty lines

Questions

Are empty lines given a prefix too?

No — blank lines are skipped, which is what you want when commenting out a block of code with gaps in it.

Can I add a comma to every line except the last?

Not directly. Add the comma to every line, then delete the final one — or use the SQL IN Clause Builder, which handles the separator properly.