Simple online tools for developers, networking, text and conversions.

Text Tools

Prefix Lines

Add a prefix to every line in a text block.

Tool

Use this prefix lines tool to add the same prefix to each line of text. It is useful for comments, bullets, code formatting, labels, and list preparation.

About this tool

Use this prefix lines tool to add the same prefix to each line of text. It is useful for comments, bullets, code formatting, labels, and list preparation.

Use prefix lines when you need a fast browser-based result without extra setup. It works well for quick checks, one-off tasks, and routine formatting or calculation work.

Learn more

Why use this tool

How to use

  1. Enter the prefix on the first line.
  2. Leave a blank line.
  3. Paste the multi-line text below.
  4. Run the tool and review the prefixed result.

Examples

Example

Input

//

line one
line two

Output

//line one
//line two

Adds the same prefix to every line.

Example

Input

- 

Apple
Banana

Output

- Apple
- Banana

Useful for turning plain lines into bullet-style lists.

Common errors

Forgetting the blank line between prefix and text.

Fix: Put the prefix first, then a blank line, then the body text.

Expecting empty lines to be skipped.

Fix: This tool prefixes every line, including empty ones.

Using a very long prefix.

Fix: Use a short consistent prefix for cleaner results.

FAQ

What does Prefix Lines do?

It adds the same prefix to every line in the text.

How do I enter the prefix?

Put the prefix on the first line, then a blank line, then the text.

Does it affect empty lines?

Yes. It processes every line in the block.

Can I use symbols like // or - ?

Yes. Short prefixes like //, #, -, or > work well.

How is it different from Suffix Lines?

Prefix Lines adds text at the start of each line, while Suffix Lines adds text at the end.

Use cases

Related tools