Add Prefix
Add a prefix to each line
Input Text
Paste or type your text here
Options
Output Text
Processed text will appear here
How It Works
Add a prefix to each line
Add any text prefix to the beginning of every line. Prepend bullet points, comment markers, quotation marks, HTML tags, or any custom string to all lines simultaneously. A huge time-saver for batch text formatting.
Key Features
- ✓Custom prefix string for all lines
- ✓Apply to all or selected lines
- ✓Instant bulk operation
- ✓Works with any text content
How to Add Prefix to Lines
- 1
Paste your text
Enter multi-line text.
- 2
Enter prefix
Type the string to prepend to each line.
- 3
Copy result
Click copy to get the prefixed text.
Common Use Cases
- •Adding "// " to comment out code lines
- •Prepending "- " to create markdown bullet lists
- •Adding "> " to format text as email quotes
- •Prepending folder paths to file name lists
Frequently Asked Questions
Can I add different prefixes to different lines?▼
This tool adds the same prefix to every line. For different prefixes per line, manual editing is needed.