Find and replace words or phrases in pasted text or common text files. Match whole words, preview every result, undo or redo changes, and keep your files private in your browser.
Find and replace words or phrases in pasted text or a plain-text file. The compact live preview shows only the text: each found phrase is highlighted in yellow and its replacement follows immediately in green. The match count appears separately, and the complete processed text is shown in the Result box. File reading and text processing happen locally in your browser.
Paste text or open a TXT, MD, CSV, TSV, LOG, JSON, XML, HTML, CSS, JS, or PHP file. Enter the text to find and its replacement; the match count, colored text preview, and Result update as you type. The preview contains no labels or extra match details; the color key next to Live preview identifies yellow as found text and green as its replacement. The preview is limited to 120 pixels high and scrolls when needed. Select Match case when capitalization matters, or Whole words only to avoid changing a word inside a longer word. Use Undo or Redo to step through text and option changes. Choose Use result as new input to continue editing the current result with different find-and-replace options; on narrow screens, that action moves to its own row.
Original text:
Hello world! Welcome to the world of WebTextTools.
Find: world
Replace with: universe
Preview: Hello worlduniverse! Welcome to the worlduniverse of WebTextTools.
Result (2 matches):
Hello universe! Welcome to the universe of WebTextTools.
You can open common text-based files such as TXT, Markdown, CSV, TSV, LOG, JSON, XML, HTML, CSS, JavaScript, and PHP. The browser reads the selected file locally; its contents are not uploaded. Download the finished result as a plain TXT file, which can be opened in any text editor.
Undo and Redo restore the text and find-and-replace options together, so the preview stays in sync. Use the buttons or Ctrl+Z and Ctrl+Y (Command+Z and Command+Y on Mac). The tool keeps up to 100 recent editing states for the current page.
All text replacement is performed locally in your browser. Selected files are read by the browser and are never sent to our server. Text is not stored by this tool after you leave the page.