Prefix / Suffix / Wrap Lines
Prefix, Suffix & Wrap Lines - Practical Workflows
Developers and data analysts frequently receive a plain newline-separated list of IDs, emails, domains, or SKUs from a spreadsheet or terminal output and need to turn it into a SQL IN (...) clause, a PHP/JavaScript array, a Markdown bullet list, or a batch of shell commands. Instead of writing throwaway editor macros or regex replacements, this tool wraps every line with your chosen prefix and suffix - and optionally joins them with a delimiter - instantly in your browser.
Popular One-Click Presets & Recipes
- SQL
IN (...) List: Set Prefix to ', Suffix to ', (or use Join Delimiter , with Suffix ') to turn a column of UUIDs or order IDs into 'id-1', 'id-2', 'id-3' ready to paste into WHERE id IN (...).
- Numeric IDs for SQL or JSON Arrays: Leave Prefix and Suffix empty and set Join Delimiter to
, to collapse hundreds of lines into 101, 102, 103.
- JSON String Array: Set Prefix to
", Suffix to ", and Join Delimiter to , , then wrap the result in [...].
- Bulk Shell Commands: Set Prefix to
curl -I https:// or dig +short on a list of hostnames to generate a runnable batch script.
- Markdown Checkboxes or Bullets: Set Prefix to
- [ ] or - to convert raw notes into a formatted Markdown task list.
Frequently Asked Questions
- What does "Skip empty lines" do? When enabled, blank lines or whitespace-only lines are ignored so you do not end up with stray
'' items at the end of your SQL list or array.
- Can I trim leading/trailing spaces on each line? Yes - trims clean up accidental spaces copied from Excel, Google Sheets, or terminal tables before adding your prefix and suffix.
- What is the difference between Suffix and Join Delimiter? Suffix is appended to the end of every line (including the last one), whereas Join Delimiter is placed between lines when combining them - making Join Delimiter ideal for comma-separated lists without a trailing comma.
- Is there a line limit or server upload? Everything runs locally in browser memory, easily handling thousands of lines with zero server requests.