Add line prefix and suffix
Add text to the beginning and end of each line in a list.
Your files are processed here, on your device
We do not send your file or text contents to a processing server. No account is needed and there is no daily operation quota. Individual tools have size limits to protect your device’s memory.
A connection is needed to load the site and its resources. Hosting may receive technical visit data. Favorites store only tool identifiers in this browser.
How we handle your data →How to use this tool
- Paste one item per line.
- Enter a prefix and suffix and choose whether blank lines stay unchanged.
- Generate and inspect spaces and symbols before copying the list.
An example you can verify
Prepare a list for another format without editing each line.
Example input
Ana Luis
Expected result
• Ana • Luis
Symbols are added literally. Skip blank lines when preserving separators between groups.
Add line prefix and suffix: uses and practical guidance
Adding line prefixes and suffixes wraps each list entry in the same text. It can prepare labels, quotation marks or a common separator around names and references. The prefix goes before each participating line and the suffix goes after it, under the selected options. The function does not interpret entries as code or validate whether the resulting format is accepted by a particular application. It performs a literal transformation of the supplied lines.
Prepare one complete item per line. A space at the end of the prefix becomes part of the output; without that space, the entry sits immediately next to the prefix. The same principle applies to the suffix. Try a short list containing an empty line and inspect the option controlling how empty lines are treated. A seemingly blank line may contain spaces, so review the source when the wrapping behaviour appears unexpected.
When preparing programming fragments, consider characters that require escaping. Surrounding an entry with quotation marks does not automatically escape internal quotes, slashes or control characters into a valid string. Use a format aware converter to build JSON from tabular data. This tool is more appropriate for literal transformations where you already know the exact prefix and suffix needed and can independently verify that the receiving format remains correct.
Check the first line, last line and an entry containing symbols. Each original item should remain between the intended additions. Number lines serves a different task when labels need a consecutive index, while Remove duplicate lines addresses repetition. Retain the unwrapped list if the transformed output is only temporary preparation for another editor or if you may later need a different format. Review the text actually pasted into the destination before using it as structured data.
A practical check before using the result
A label preparation test can include an ordinary entry, one containing quotes and an empty line. Inspect how prefix and suffix appear in each case. If output will be pasted into a program, validate a sample there before producing the entire list. Added characters are literal and may need an explicit separator so they do not run into the entry. Save the prefix and suffix template with the source list for repeat use. This lets you change additions without trying to strip them from earlier output, especially when original content already contains symbols matching the wrapping characters. Confirm destination acceptance rather than inferring validity from a neatly formatted preview.
Settings and limits
Paste a list and enter a prefix and suffix. Order and whitespace are preserved. You can leave blank lines unchanged. Maximum 1 million input characters and 2 million output characters.
Frequently asked questions
Does it interpret HTML or regular expressions?
No. Prefixes and suffixes are literal text, including symbols such as <, > and $. Copy or download the result as text.