Prefix Suffix Tool
Add text before (prefix) or after (suffix) each line. Perfect for adding bullets, numbers, quotes, or any text to lists.
How to Use
Paste your multi-line text
Enter prefix (added before) and/or suffix (added after)
See results update in real-time
Copy the modified text
About Prefix Suffix Tool
What This Tool Does
The Prefix Suffix Tool adds custom text to the beginning (prefix) and/or end (suffix) of each line in your input. Whether you're creating bullet lists, wrapping text in quotes, generating HTML markup, or formatting data for databases, this tool automates the repetitive work of adding text to multiple lines.
Simply enter your prefix and suffix, paste your lines, and instantly get formatted output. Quick presets make common formatting tasks even faster.
Understanding Prefixes and Suffixes
What is a Prefix?
A prefix is text added to the BEGINNING of each line. For example, adding "• " as a prefix transforms:
- Apple → • Apple
- Banana → • Banana
- Cherry → • Cherry
What is a Suffix?
A suffix is text added to the END of each line. For example, adding "," as a suffix transforms:
- Apple → Apple,
- Banana → Banana,
- Cherry → Cherry,
Combining Both
When you use both together, each line gets wrapped. Prefix '"' and suffix '", with:
- Apple → "Apple",
- Banana → "Banana",
This is especially useful for creating comma-separated quoted strings for programming.
Quick Presets Explained
• Bullet
Adds a bullet point (•) before each line. Perfect for creating informal lists in emails, documents, or social media.
- Dash
Adds a hyphen-dash before each line. Standard for Markdown lists and plain text formatting.
"Quotes"
Wraps each line in double quotes. Useful for creating string literals, CSV values, or quoted text.
'Single'
Wraps each line in single quotes. Common in programming for SQL queries and JavaScript strings.
<li> HTML
Wraps each line in HTML list item tags. Instantly convert a plain list into HTML markup for websites.
→ Arrow
Adds an arrow before each line. Great for instruction lists, step-by-step guides, or visual emphasis.
✓ Check
Adds a checkmark before each line. Perfect for checklists, completed items, or feature lists.
Common Use Cases
Creating HTML Lists
Convert a plain list into HTML list items. Use prefix <li> and suffix </li>, then wrap the output with <ul> tags.
SQL Value Lists
Prepare data for SQL INSERT statements. Use prefix "'" and suffix "'," to create properly quoted values.
Programming Arrays
Format items for JavaScript, Python, or other array literals. Add quotes and commas in one step.
Markdown Formatting
Add "- " or "* " prefix to create Markdown bullet lists. Add "1. " with line numbers for ordered lists.
Email Formatting
Add bullets or formatting to lists in emails. Makes key points stand out visually.
Additional Options
Skip Empty Lines
When enabled, blank lines in your input stay blank in the output - they don't get the prefix/suffix applied. Helpful when your input has intentional spacing.
Trim Whitespace
Removes leading and trailing spaces from each line before applying prefix/suffix. Cleans up copy-pasted data.
Add Line Numbers
Prepends sequential numbers (1., 2., 3...) before your prefix. Creates numbered lists automatically.
Tips for Best Results
- Use presets as starting points: Modify them as needed after clicking
- Remember spacing: Include spaces in your prefix/suffix if needed (e.g., "• " not "•")
- Combine with other tools: Sort your list first with the Alphabetizer, then add prefixes
- Check the last line: You might need to manually remove the trailing comma on the last item