Add Prefix & Suffix to Lines

Text Tools

Add text before or after every line

FreePrivateInstant
Add a file · .txt .md .csv .json … · up to 2.00 MB
Prefix
Suffix
Embed this tool on your websiteFree
  1. Choose how tall the frame should be.
  2. Press Copy code.
  3. Paste it into your page, blog, WordPress or Notion HTML block.
Height

The tool runs inside your visitor's browser, nothing is uploaded, and a small "Powered by ToolCloak" line stays under it. The second line (script) is optional: it makes the frame fit the tool's height.

Similar tools you may like

History

All history →

Add Prefix & Suffix to Lines — at a glance

Add a prefix, suffix or both to every line of a list in one go.

Your input
a
b
Run
Result
'a',
'b',

How to use it — step by step

A list with one item per line.

1

Paste your input

Paste or type your content into the big input box. Try a sample if you want to see it work.

2

Choose options

Pick the mode and options that fit what you need.

3

Add to lines

Press the button. The result is created instantly on your device.

4

Copy the result

Check the output and press Copy to use it anywhere.

Pro tips

Small things that make the result better.

✦Prefix <li> and suffix </li> to build an HTML list.
✦Use quotes plus a comma to build an array or SQL list.
✦Prefix https://example.com/ to turn slugs into links.

Quick facts

Freeno signup, no limit
Instantresult in a moment
Privatenothing is uploaded
Any devicephone, tablet or PC

Frequently Asked Questions

Can I add only a prefix?+

Yes. Leave the suffix box empty.

Is my data safe?+

Yes. Everything runs inside your own browser. Your text, files and images are never uploaded to any server.

Is this tool really free?+

Yes — completely free, no signup, no watermark and no usage limit.

More Free Tools