Text tool

Remove Prefix Each Line

Paste text and remove the same prefix from every line locally.

In-browser processingNo account requiredPrivacy details ↗

Remove a prefix from each line

Enter text and a prefix.

A QUICK WALKTHROUGH

How to use this tool

  1. Paste up to 50,000 characters.
  2. Enter the literal prefix and choose whether it must be present.
  3. Remove the prefix, then copy or download the result.

Literal prefix removal

The exact prefix is removed from nonblank lines. With “only if present” enabled, nonmatching lines remain unchanged; when disabled, the same number of leading characters is removed.

Preserved structure

Blank lines and LF, CRLF, or CR line endings remain unchanged. Input is limited to 50,000 characters and output to 500,000 characters.

GOOD TO KNOW

Common questions

Is the prefix treated as a pattern?

No. It is matched as literal text.

Are blank lines changed?

No. Blank and whitespace-only lines remain unchanged.

Are line endings preserved?

Yes. Original line separators are retained.