On iPhone, there is no native button, menu, or text-replacement rule that adds the same prefix to every line of a list, and that limitation is what makes the task feel impossible in Notes, Messages, Mail, and Reminders. The reliable solution is to open Safari, load a free browser-based prefix tool called Add Prefix and Suffix to Lines, paste the list from the clipboard, type the prefix you want, generate the result, and download a clean UTF-8 TXT file that can be sent back into any iOS editor through the Share Sheet. Everything happens locally in the browser tab, so the list never leaves the device, the prefix is inserted as a literal string with no regex or Markdown interpretation, and the original line order, internal spaces, and tabs are preserved untouched. The output is delivered as plain text rather than rendered HTML, which means each decorated line pastes cleanly into Notes, Messages, Mail, or a code-friendly destination without invisible styling getting in the way.

Why the iPhone falls short for prefix-to-every-line tasks
The iPhone has plenty of typing helpers, but none of them match this specific job. The iOS Text Replacement feature expands a short abbreviation into a longer phrase while typing, which is useful for repeating a single sentence but cannot prepend the same fragment to a hundred different lines. Find and Replace exists inside Pages and Numbers on iPhone, yet it only swaps one piece of text for another inside the body; it cannot anchor a prefix to the start of every line. The Shortcuts app can chain actions and exposes a built-in Replace Text action, but building a shortcut that loops over lines, splits on line breaks, and rejoins the result is several steps and fragile when the list contains punctuation or non-ASCII characters.
Mail, Messages, and Notes add a further restriction: there is no multi-cursor edit on iPhone, so you cannot place a caret on line 1, type the prefix, hold, drag to line 50, and paste the same prefix across the selection the way you would on a Mac. Even when an app supports rich text, the editing surface stays line-by-line, which means a 200-line CSV column can take twenty minutes to decorate by hand. That is the gap a browser-based prefix tool fills: the editing happens once in a real text area, and the iPhone only handles copying the input in and the output back out.
The fix: a browser-based tool that runs locally in the tab
The Add Prefix and Suffix to Lines tool is a single-page utility that runs entirely inside the Safari tab it was opened in. Paste or type up to one million characters, enter a prefix, a suffix, or both, choose whether blank lines should be left alone, and tap the action button to produce the decorated text. The transformation is concatenation only: prefix plus the original line plus suffix, joined with LF line breaks. Because everything happens locally in the browser using JavaScript strings, the pasted list is never sent to a remote server, which matters on shared or supervised iPhones where logging keystrokes off-device would be a concern.
Several details make this a better fit than a generic text editor for the iPhone workflow. The prefix and suffix are inserted as literal strings, so brackets, quotes, dollar signs, backslashes, asterisks, and parentheses appear exactly as typed and are never interpreted as regex tokens, Markdown, HTML, or shell escapes. The tool does not trim, change case, sort, or deduplicate lines; it only concatenates. CRLF and classic-Mac CR line breaks inside the pasted text are recognized and normalized to LF in the output, so a Windows-exported CSV pastes in cleanly without leaving stray carriage returns. The result is shown in a preview region that uses preformatted spacing, then exposed as a local UTF-8 text Blob download, which means the saved file has no byte-order mark, no rich-text styling, and no spreadsheet-style quoting getting in the way when it is re-opened in Notes or Files.
How to add a prefix to each line on iPhone in Safari
- Copy the list to the clipboard. In Notes, Messages, or any iOS app with text, long-press, choose Select All if needed, then tap Copy. The clipboard now holds the raw lines.
- Open Safari and navigate to Add Prefix and Suffix to Lines.
- Tap the input area and choose Paste. The lines appear with their order preserved, including blank lines and lines that contain only spaces.
- Type the prefix in the Prefix field. Up to 200 Unicode characters are allowed, so emoji and accented characters paste straight through.
- If a suffix is also wanted, type it in the Suffix field. If only a prefix is needed, leave the suffix field empty; at least one of the two must be non-empty for the tool to produce a result.
- Decide whether blank lines should stay untouched. Toggle Leave blank lines unchanged on if empty lines and whitespace-only lines should pass through as they are; toggle it off if every logical line, including blank ones, should be decorated.
- Tap the action button to generate the result. The preview shows the exact output string with all spacing and line breaks preserved.
- Tap the download link to save a UTF-8 TXT file through Safari's normal download flow.
- Return to Notes, Messages, or the target app and Paste the result. The Share Sheet also accepts the downloaded file, so it can be dropped into Files, Mail, or any app that handles attachments.
This loop keeps the data on the device and avoids dragging the list into a third-party text editor that might reformat or upload it.
How the prefix and suffix are actually inserted
Once the input is pasted, the tool splits on every logical line boundary, including CRLF, CR, and LF, while keeping a trailing empty line if the input ended with a newline. Each split line keeps its leading spaces, tabs, and any internal whitespace; nothing is trimmed, collapsed, or re-cased. The transformation is the literal string prefix plus original line plus suffix, repeated per line and rejoined with a single LF separator. A line wrap inside the preview is purely visual and does not insert a real line break into the downloaded file.
The blank-line toggle controls coverage rather than deletion. With Leave blank lines unchanged enabled, an empty string and a string that contains only whitespace characters are both returned exactly as they were, and a line made entirely of spaces is not decorated and its spaces are not removed. With the toggle disabled, every logical line is decorated, including empty and whitespace-only lines. A trailing newline in the input still creates a final logical line; when blank lines are skipped, that final line remains empty in the output, and when blank lines are decorated, it receives the prefix and suffix. Editing the input, prefix, suffix, or blank-line setting clears the previous result and revokes its download URL, which prevents an earlier result from remaining downloadable after the controls describe different output.
Common patterns iPhone users decorate with
The same prefix-on-every-line idea shows up in many small jobs on iPhone. The table below compares typical use cases and the literal strings people most often insert. The exact transformed text comes from the tool, so only the direction and rough shape are shown here.
| Use case | Typical prefix | Typical suffix | Notes |
|---|---|---|---|
| Bulleted list for Notes | - | (empty) | A hyphen and a single space turn the list into copy-ready bullets. |
| Shell comment block | # | (empty) | Hash and a space convert the list into a paste-ready comment block. |
| SQL IN clause values | ' | ', | Single quotes wrap each identifier; a trailing comma sits on every line. |
| Logging tag | [INFO] | (empty) | Square brackets and a space mark each log line identically. |
| Markdown blockquote | > | (empty) | Greater-than and a space render the list as a Markdown blockquote. |
| Indented sub-points | (empty) | Four literal spaces add a consistent indent without changing the rest of the line. |
Two limits govern these patterns. Each prefix and suffix is capped at 200 Unicode characters, which is more than enough for any of the markers above plus a small custom tag. The combined input is capped at one million characters, so even a long Notes page or a sizable CSV column fits comfortably inside a single paste.
Things to know before you tap download
The download itself is a plain UTF-8 text Blob with no byte-order mark, no rich-text styling, no spreadsheet quoting, and no CSV escaping, which is why it pastes back into Notes or Files without dragging hidden formatting along. If the destination format has its own escaping rules, such as SQL, JSON, or CSV, the result needs to be verified or escaped for that format separately; the tool only does the literal prefix-plus-suffix concatenation. A visual wrap inside the preview does not insert a real newline into the downloaded file, and the file contains exactly the string the preview shows.
The tool does not find and replace text inside lines, add sequential numbers, parse CSV fields, edit a Word document, or infer syntax from what was pasted, so jobs that need a numeric sequence should pair this workflow with a dedicated Add Line Numbers to Text tool, and substring edits should go through a separate utility. For the narrow task of stamping the same prefix, suffix, or both on every line of a list on an iPhone, the browser approach keeps the list on the device, produces a predictable plain-text output.
If you're weighing options, How to Add Quotes to Each Line in Notepad++ Correctly covers this in detail.
If you're weighing options, Bold Text Generator: Command Line vs Online Compared covers this in detail.