Find and replace text
Find and replace words or phrases in any text, with options for case-sensitive and whole-word matching, or powerful regular expressions. See every match highlighted before you replace.
Runs in your browser. Nothing is uploaded.Using regular expressions
Tick Regular expression for pattern matching. Use $1, $2 in the replacement for captured groups, and \n for a new line. Examples:
\s+→ a single space: collapse repeated spaces.(\w+)@(\w+)→$1 at $2: rewrite email addresses.^\d+\.\s*→ nothing: remove numbering from the start of lines.
Questions
Is my text uploaded?
No. Everything happens in your browser.
Can I undo a replacement?
Press Ctrl+Z (Cmd+Z on a Mac) in the text box, or paste your original text again.
More free tools
Wheel spinner
Spin a wheel to pick a random name, prize or decision.
Random name picker & teams
Pick names at random without repeats, or make fair teams.
Flip a coin
Heads or tails, with a tally and streaks.
Dice roller
Roll up to 10 dice, from d4 to d20.
Working days calculator
Working days between dates, skipping UK bank holidays.
Invoice generator
Make a professional invoice with VAT and save it as a PDF.
Merge PDF
Combine several PDFs into one file, in any order.
Compress PDF
Make PDFs smaller for email and uploads.