Prefix/Suffix Each Line
Quickly add custom text (a prefix or suffix) to the beginning or end of every line in your text. A simple tool for formatting lists, code, and data.
Your Text
Lines: 0
Formatted Text
About the Prefix & Suffix Tool
The Prefix/Suffix tool is a simple but powerful utility for bulk-editing lists of text. It allows you to add specific characters or strings to the beginning (prefix) and/or end (suffix) of every line in your input. This is incredibly useful for developers, data analysts, and anyone needing to quickly format lists for specific purposes, like creating full URLs or formatting SQL insert statements. The entire operation is done securely in your browser.
How to Use It
- Input Your List: Paste your line-separated text into the "Your Text" area.
- Set Prefix/Suffix: Type the text you want to add in the "Prefix" and/or "Suffix" input fields. You can use one, the other, or both.
- Choose Options: Decide if you want to "Ignore empty lines" to prevent prefixes/suffixes from being added to blank lines.
- Process: Click "Add Prefix/Suffix". The result will appear instantly on the right.
Common Use Cases
- Creating Full URLs: Add `https://` as a prefix to a list of domain names.
- Formatting SQL Queries: Wrap each item in a list with single quotes (`'`) for an `IN` clause.
- Generating Code: Add opening and closing HTML tags around a list of items.
- Data Cleaning: Add a consistent identifier or unit to every entry in a dataset.
Related Tools
Word, Character & Sentence Counter
Live counts for words, characters, and sentences as you type.
Case Converter
Convert text between uppercase, lowercase, title case, and more.
Line Break & Whitespace Remover
Clean up text by removing or adding line breaks and trimming whitespace.
Find, Replace, Sort & Deduplicate
A powerful multi-tool for cleaning and manipulating text. Perform find and replace, sort lines alphabetically, or remove duplicate lines—all in one place.