Find and Replace Text Online

Paste plain text, preview controlled replacements, remove line breaks, or clean duplicate lines without uploading a document.

Find and replaceRemove line breaksDuplicate cleanup
100% free, runs in your browser, nothing is uploaded.

Related guides: How to Find and Replace Text in Microsoft Word

Find and replace pasted text

Paste plain text, enter the text to find and its replacement, then review the result before copying or downloading it. Match case distinguishes uppercase and lowercase forms. Whole word limits a match so a short term is less likely to alter part of a longer word.

This browser tool does not open or preserve a Microsoft Word DOCX file, formatting, tracked changes, comments, tables, fields, headers, footers, or page layout. For Word's own workflow, including the Ctrl+H shortcut and Replace All precautions, read How to Find and Replace Text in Microsoft Word.

Remove line breaks or duplicate lines

Use the line-break mode for text copied from a PDF, email, or narrow column when unwanted wraps interrupt sentences. Duplicate-line mode keeps the first occurrence of each line and can optionally trim surrounding whitespace before comparison. Both operations change plain text, so check paragraph boundaries, lists, addresses, and code before using the output.

FAQ

How do I find and replace text without opening Word?

Paste the text, enter the find and replacement values, then copy or download the updated text from the result box.

How do I remove line breaks from text?

Open the Remove Line Breaks tab and choose whether to replace breaks with spaces or delete them.

How do I remove duplicate lines in a document?

Use the Remove Duplicate Lines tab. It keeps the first version of each repeated line.

How do I add or delete a line break in text?

Add line breaks manually in the input area, or use the line break mode to delete or replace existing breaks.

Related tools

Find and replace with regex patterns

Regular expressions let you match patterns instead of fixed strings. Common regex replacements: \s+ replaces multiple spaces with a single space, ^\s+|\s+$ trims leading and trailing whitespace, and \b\w+ matches whole words for bulk replacements.

This browser tool supports basic regex in the find field. Use capture groups with ($1) syntax to reorder or transform matched text. For example, (\w+),\s*(\w+) matches "Last, First" and can reorder to "First Last" using $2 $1 as the replacement. Always test regex patterns on a small sample before applying to large documents.