Skip to main content
100% Local

Text Search

Search for words, phrases or regular expressions in any text file — like grep in your browser.

100% local
Input
Result

The result will appear here

Learn more

Everything about text search online

Why use an online text search tool?

When you need to find specific patterns in large text — log files, code dumps, data exports or documents — scrolling manually is impractical. This tool keeps only the lines that contain your word or match your regular expression, with the number of matching lines and optional context lines around each one. Think of it as a browser-based grep that requires zero setup and works on any device.

Common use cases

Searching through application logs for error codes or stack traces. Finding all occurrences of a variable, function, or string in code snippets. Locating specific entries in large CSV or JSON data dumps. Checking if a document contains specific keywords or phrases. Counting occurrences of patterns in research data or text corpora. Quick lookups when you don't have access to command-line tools like grep.

Features & details

Plain text or full JavaScript regex search, case-sensitive or not. Matching or non-matching lines (like grep -v), with 0 to 10 context lines (like grep -C). Windows (CRLF) and Unix line endings are both handled. A pattern that would backtrack forever is stopped instead of freezing the page. Copy the result or download it as a .txt file. Runs entirely in your browser — nothing is uploaded or stored.

How it works

Search text in 3 steps

  1. Paste or upload text

    Paste your text directly or upload a text file from your device.

  2. Enter search pattern

    Type a word, phrase, or regex pattern. Results update in real time.

  3. Export results

    Copy matching lines to clipboard or download as a .txt file.

Practical guides

Get the most out of Text Search

Powerful search

This tool lets you search through text files using literal strings or regular expressions, similar to the grep command.

Results include context lines and match counts for easy navigation through large text files.

Regex & context lines

Privacy first

Your text data is processed entirely in your browser. Nothing is sent to any server.

Search through confidential logs, code, or documents with complete privacy.

100% browser-side processing
Frequently asked questions

Text Search — FAQ

Everything you need to know about our text search tool