Prefix Suffix adds text to the beginning and the end of every line. Paste your lines, type a prefix and a suffix and copy the result. It is free and runs in your browser.
Hello
("Hello")Bookmark: press Ctrl+D (Windows) or Cmd+D (Mac) to save this tool.
This tool adds a prefix to the beginning and a suffix to the end of every line. A prefix is the text that goes before each line and a suffix is the text that goes after it.
Type exactly what you want in the two boxes, spaces included. You can use only a prefix, only a suffix, or both. Empty lines are skipped by default, and you can turn that off. The words in your lines are not changed.
Use it to wrap each line in quotes or brackets, to add HTML tags, bullets or commas, or to add a domain or a file extension to a list.
Each example shows the prefix and suffix used. Skip empty lines is on unless the example says it is off.
| Setting | Before | Prefix and suffix | After |
|---|---|---|---|
| Prefix and suffix | Hello | Prefix: ("
Suffix: ") | ("Hello") |
| Bullet list | apples bananas cherries | Prefix: - | - apples - bananas - cherries |
| Quotes and comma | red green blue | Prefix: " Suffix: ", | "red", "green", "blue", |
| HTML list items | Home About Contact | Prefix: <li> Suffix: </li> | <li>Home</li> <li>About</li> <li>Contact</li> |
| Empty lines skipped (default) | a b | Prefix: [ Suffix: ] | [a] [b] |
| Empty lines kept | a b | Prefix: [ Suffix: ] | [a] [] [b] |
| Suffix only | one two | Suffix: ! | one! two! |
Wrapping lines in quotes, brackets or HTML tags, adding bullets or comment marks, adding a comma at the end of each line and building lists for code, spreadsheets or a database.
The prefix and suffix are used exactly as you type them, so add a space yourself if you want a gap. A line that only has spaces counts as empty when Skip empty lines is on. Use Undo right after if the result is not what you wanted.
To add text to the middle of a line, try Specified Position Text Addition. To take a prefix and suffix off again, try Remove Prefix and Suffix.
It adds text to the beginning and the end of every line. The text you type in Prefix goes at the start of each line and the text in Suffix goes at the end.
Type or paste your lines, enter the prefix and the suffix, and click Add Prefix/Suffix. The new lines replace the text in the box. Click Copy to use them, or Undo to go back.
Yes. Leave the other box empty and only the box you filled is used.
By default empty lines are skipped, so they stay empty and do not get a prefix or suffix. Untick Skip empty lines if you want the prefix and suffix added to them too.
Yes. Whatever you type in Prefix and Suffix is used exactly, including spaces, so type a space at the end of the prefix if you want a gap after it. The text of your lines is not changed.
Wrapping lines in quotes, brackets or HTML tags, adding bullets or comments, adding a comma after each line, or adding a domain or a file extension to a list of names.
Yes. It works on any number of lines at once, and the line count above the box shows how many lines you have.
Yes. It is free, needs no account and runs in your browser, so your text is not uploaded to a server.
Last updated: 31 October 2026