Text & String Utilities100% Client-Side

Add Text Before Each Line

Paste multiple lines to add the same text to the start of each one. The prefix is inserted before any indentation already present, so each original line remains readable after its new marker. Use a quote marker, list bullet, or a fixed label for a plain-text fixture. Turn on Skip Empty Lines when blank or whitespace-only rows should keep their existing appearance.

Configuration Options
Input
25 chars•2 lines
Output

How to Use the Add a Prefix to Each Text Line Online

  1. 1Paste the lines with their original spacing and blank rows.
  2. 2Enter the prefix exactly as it should appear, including a separating space if required.
  3. 3Enable Skip Empty Lines when blank separators should stay unmarked.
  4. 4Copy the result once the prefix and indentation have the intended spacing.

Input & Output Examples

A hyphen and a space are inserted before each line. The two original spaces before beta remain.

Input Sample
alpha
  beta
Expected Output
- alpha
-   beta

With Skip Empty Lines enabled, the middle line keeps its original space and tab and receives no marker.

Input Sample
red
 	
blue
Expected Output
> red
 	
> blue

Practical Developer Workflows

  • Make a Markdown quote or list from several lines of plain text.
  • Prepend a repeated label to every row of a simple fixture.
  • Add a visible marker before indented text to show where each original line begins.

Zero Server Uploads & Complete Privacy

Runs 100% in your browser; no data is uploaded to any server.

Notice a bug, calculation error, or outdated info?

Let us know directly so our engineering team can fix it.

Frequently Asked Questions

It comes before the entire line, including existing spaces and tabs. If a line begins with indentation, that indentation remains after the newly inserted prefix. Trim leading whitespace first if the text must start directly after the marker.

Explore Other Tools

12 suggested tools

View all tools