Add Prefix and Suffix to Lines
Wrap each line with a custom prefix and/or suffix text.
Need to wrap each line in quotes, add a tab indent, or append a comma after every entry? This tool adds any prefix and suffix to every line in your text simultaneously. Perfect for formatting SQL values, CSV fields, code arrays, and more.
Features
Use Cases: When This Tool Helps
-
Turn a list into SQL or code
Wrap IDs in quotes and commas to build an IN (...) clause or a JavaScript array instantly.
Read the guide → -
Bulk-build URLs
Add a domain before a list of paths or UTM parameters after a list of links.
-
Format bullet and numbered lists
Add "- ", "• ", or emojis to each line for Markdown, WhatsApp, or social posts.
-
Create HTML list items
Wrap each line in <li></li> tags to paste straight into a web page.
-
Prepare hashtags and mentions
Add # or @ in front of a list of words or usernames in one step.
-
Generate file paths and commands
Prefix file names with a folder path or a command like "rm " for batch scripts.
How to Add Prefix/Suffix
- Paste your list of lines into the input.
- Enter your desired prefix (e.g., '"') and/or suffix (e.g., '",').
- The formatted output appears instantly. Click Copy.
FAQ
Can I add a prefix only or suffix only?▾
Yes, leave either field blank if you only need one side.
Can I use this for SQL INSERT statements?▾
Yes — add prefix '(' and suffix '),' to format value lists for SQL.
Common Use Cases
- Wrapping each line in double quotes for CSV formatting.
- Adding import paths prefix to a list of module names.
- Appending semicolons to each line of code.