Advertisement

Prefix Suffix Tool

Add a prefix and suffix to every line of your text in one click. Perfect for code, lists and CSV edits.

Text input

Paste your lines, set a prefix and suffix, get the result live.

Result

0 lines processed.

Advertisement

How it works

Every line of your input gets the prefix glued to its start and the suffix glued to its end, instantly as you type. Turn on Skip empty lines to leave blank lines untouched, which keeps paragraph spacing intact. The result is ready to copy into code editors, spreadsheets or HTML.

Common uses

Wrap list items in <li> tags, quote every line for SQL or CSV work, add bullets or numbering markers to pasted lists, or prepend a path to a batch of filenames. Anything repetitive across lines takes seconds instead of manual edits.

Prefix Suffix Tool FAQs

Can I add only a prefix without a suffix?
Yes. Leave the suffix box empty and only the prefix is applied, and vice versa. Both fields are optional.
What happens to blank lines?
With Skip empty lines on (the default), blank lines pass through unchanged. Turn it off to prefix and suffix every line including empty ones.
Is there a line limit?
No hard limit. Tens of thousands of lines process instantly since everything runs as plain JavaScript in your browser.
Can I use special characters in the prefix?
Absolutely. Quotes, angle brackets, tabs, emoji and unicode all work; the tool concatenates your exact text with each line.
Does it modify my original text?
No. Your input stays in the left box untouched and the transformed version appears on the right, so you can tweak the affixes and re-copy freely.
Advertisement