Sarkari Resizer
Popular searches
Compress PDFPDF Tools Image CompressorImage Tools Resize ImageImage Tools Age CalculatorCalculators Typing TestTyping Tools Study PlannerStudent Tools

Text Prefix & Suffix

Add prefix and suffix to every line — bullets, quotes, numbered lists, alphabets, Roman numerals, checklists, and more.

Formatting Method
Tip: use {number}, {line}, {text}, {date}, {time} as dynamic variables.
Both prefix and suffix can contain multiple characters, symbols, or emoji.
Example: 1. First line, 2. Second line, ...
Lines matching this pattern will be left untouched. Leave empty to disable.
Strips matching text from line start before adding new prefix.
Strips matching text from line end before adding new suffix.
Options
Output No changes
Input Lines 0
Output Lines 0
Lines Changed 0
Chars Added 0
Frequently Asked Questions
Common questions about this tool

What is this tool used for?
Common uses: bullet lists, numbered lists, alphabet lists, Roman numeral lists, quotes wrapping, HTML <li> tags, comment prefixes, CSV suffixes, indentation, checklists, and any other line-formatting need.

What are dynamic variables?
You can insert special placeholders in prefix or suffix:

  • {number} — current line number (respects numbering settings)
  • {line} — original line number (1-based)
  • {text} — the line's original content (useful for wrapping)
  • {date} — today's date (YYYY-MM-DD)
  • {time} — current time (HH:MM)
Example: Item {number}: {text} produces Item 1: apple.

How does numbering work?
Choose a style in the "Numbering" section. Options include: 1. 2. 3., 1) 2), (1) (2), zero-padded numbers, A. B. C., a. b. c., Roman numerals (I. II. III.), and lowercase Roman. You can set a custom starting number and increment step (e.g., 1, 3, 5...).

What does "Skip empty lines" do?
Blank lines are left untouched when enabled. Turn it off if you want blank lines to also receive prefix/suffix.

How does "Trim lines first" work?
Removes leading and trailing whitespace from each line before adding prefix/suffix. Preserves indentation if you turn it off.

How do "Remove existing prefix/suffix" work?
These are regex patterns that strip text from line start (prefix) or line end (suffix) before applying the new prefix/suffix. Example: use ^[-•*]\s+ to remove existing bullet marks before adding new ones.

What does "Skip lines matching pattern" do?
Lines matching the given regex will not be modified. Useful for skipping comment lines like ^# or code blocks.

Is my text uploaded to a server?
No. Everything runs in your browser. Your text never leaves your device.

🔒 Your text stays private

Everything is processed locally in your browser. Your text is not uploaded to our server.

Copied!