Add Prefix and Suffix

Add Prefix and Suffix: Add custom text before and after every nonempty line in a list.

Add Prefix and Suffix

Add Prefix and Suffix: Paste lines, enter a prefix and suffix, then select Add text.

Loading the tool...

✓ Your inputs stay in this browser

How to use Add Prefix and Suffix

Paste lines, enter a prefix and suffix, then select Add text.

Example

With prefix [ and suffix ], Apple becomes [Apple].

What to know

Empty lines remain empty. Prefixes and suffixes are literal text, not patterns.