Text tools

Add prefix and suffix

Wrap each line with a shared beginning, ending, or both—without editing every entry by hand.

Your text stays in your browser
Options

Each option field supports up to 1,000 characters.

Up to 200,000 characters

Ready when you are.

Private by designYour text is processed on your device.
A clear view, instantlyLive counts, without an extra click.
Free. No sign-up.Just open the tool and get started.

Before and after

Prefix: [ · Suffix: ]

Before

apple
banana

cherry

After

[apple]
[banana]

[cherry]

Three simple steps

1
Add your text

Paste your text or try the example. Your original stays editable.

2
Choose the options

Adjust the settings to match your task. The result updates automatically.

3
Take the result

Copy the result or download a UTF-8 text file.

When this helps

Useful for wrapping list entries in brackets or quotes, adding a path before filenames or attaching a common extension. Original spaces within each line stay intact.

How it works and what to expect

The prefix goes before the complete line and the suffix after it. Empty and whitespace-only lines are skipped by default. Enable the blank-line option to wrap those too.

A final newline stays a final newline, rather than becoming an extra item. CRLF and CR line endings are normalized to LF. Adding a URL prefix does not encode or validate the entry.

Each addition supports up to 1,000 characters. Results over 1,000,000 characters are stopped. Quotes and commas are inserted literally; this is not a CSV or SQL escaping tool.

Useful details

Can I add only a suffix?

Yes. Leave the prefix empty, or vice versa.

Will it add commas safely for CSV?

It can append commas, but it does not escape quotes, delimiters or embedded line breaks for CSV.

Are existing spaces removed?

No. Spaces in the original lines and in your additions are preserved.

Continue with another tool