ZumaTools

Add Prefix / Suffix to Lines

Paste your lines, type a prefix or suffix, and every line is wrapped instantly as you type.

Options

Use {n} in the prefix or suffix to insert a line number, e.g. {n}. as the prefix.

Processed on your device — nothing is sent anywhere.

How it works

  1. Paste your text into the input box — each line is treated separately.
  2. Type a prefix and/or suffix, or tap a preset chip like SQL quotes, CSV quotes or a Markdown bullet.
  3. Copy the wrapped result with one click or download it as a .txt file.

Frequently asked questions

How do I add numbering to each line?
Put the placeholder {n} anywhere in the prefix or suffix and it is replaced with a counter on every line. Under Options you can set the starting number and the step, so you can number lines 1, 2, 3 or 10, 20, 30 without any spreadsheet work.
Can I wrap lines in quotes for SQL IN clauses?
Yes — the SQL preset chip sets a single quote before and a quote plus comma after each line, which is exactly the format an IN (…) list expects. Paste a column of IDs or emails, click the chip, and delete the trailing comma on the last line before running the query.
Is my text uploaded to a server?
No. The whole tool runs as JavaScript in your browser, so the text never leaves your device. You can even load the page, disconnect from the internet, and it keeps working — which makes it safe for internal data like customer emails or database keys.
What happens to empty lines in my text?
By default empty lines are wrapped like any other line, which some workflows need. If you tick “Skip empty lines” under Options, blank lines are passed through untouched, so paragraph spacing in your source text is preserved without stray prefixes.
Is there a limit on how much text I can process?
There is no hard limit in the tool itself; it comfortably handles tens of thousands of lines because everything happens in memory on your machine. Very large pastes (millions of lines) are only bounded by your browser’s memory, and the output updates live either way.

About this tool

This tool adds a prefix, a suffix, or both to every line of a block of text at once. Instead of editing hundreds of rows by hand or building a spreadsheet formula, you paste the text, type the characters you want before and after each line, and the finished result appears live in the output pane. Preset chips cover the three most common jobs — single quotes with commas for SQL, double quotes with commas for CSV or JSON-style arrays, and a dash for Markdown bullet lists — so one tap formats the whole list.

Everything runs client-side in your browser. The page splits your input on line breaks, applies the prefix and suffix to each line in plain JavaScript, and joins the result back together; nothing is sent over the network at any point. That matters when the list you are formatting contains order numbers, email addresses or API keys — the data stays on your device, and the tool works offline once the page has loaded.

The {n} placeholder turns the tool into a quick line numberer. Write “{n}. ” as the prefix to produce a numbered list, or use a custom start and step under Options to generate IDs like 100, 110, 120. The skip-empty-lines option keeps blank separator lines intact, which is useful when you are prefixing quoted text for an email reply (“> ” as prefix) or indenting a code block by four spaces.

Typical uses include building SQL IN lists from a column of values, turning plain lines into CSV fields, creating Markdown checklists with “- [ ] ” as the prefix, adding a comment marker like “// ” to a block of code, or appending a domain such as “@company.com” to a list of usernames. Copy the result to your clipboard or download it as a .txt file when you are done.

Related tools