How to use Prefix and Suffix
- Paste lines or select a local text or Markdown document.
- Enter prefix, suffix, or numbering settings and choose which lines qualify.
- Check the first 100 changed lines, then copy or download the complete result.
Supported behavior
Add Prefix or Suffix decorates selected lines without manually editing each one. Enter literal text to prepend, append, or both, then target every line, only non-empty lines, lines containing a literal value, or lines matching a regular expression. It can also add sequence numbers with a configurable starting value, zero-padding width, and separator. Numbering works even when both prefix and suffix are empty. The first 100 changed lines are previewed so alignment and matching can be checked before exporting. If a regular expression is invalid, the source remains unchanged and the error is shown rather than producing partial output. Local .txt and .md files, match rules, and generated lines stay entirely in your browser and are never uploaded. Prefixes and suffixes are literal output content; they are not templates or executable code. Numbering follows the lines selected by the chosen condition, so confirm whether empty or unmatched lines should consume a number in your intended workflow.
- The preview shows only the first 100 changed lines, although the full valid input can be processed.
- Regex conditions time and select lines; they do not provide capture-based replacement templates.
Examples
apples
pears
plums
Result: Prefix “- ” → - apples - pears - plums
draft
review
publish
Result: Start 7, width 3, separator “: ” → 007: draft 008: review 009: publish
Common use cases
- Turn a list of names into Markdown bullet items.
- Add padded sequence numbers to a plain-text inventory.
- Append a marker only to lines matching a status pattern.
Frequently asked questions
Can I number lines without adding text?
Yes. Empty prefix and suffix values are allowed when line numbering is enabled.
Can blank lines be skipped?
Choose the non-empty-lines target so blank lines remain unchanged.
What if the matching regex is invalid?
The error is displayed and the original input is preserved.
How does number padding work?
Set a width such as 3 to produce values like 001, 002, and 003 from the chosen starting number.

