Skip to main content

Search Text in Files or Any Text

Find a word or a phrase in a pasted text or in several files at once — TXT, logs, CSV, PDF, Word — with every match highlighted. Your files stay on your device.

What is found is counted here.

Your text
TXT, logs, CSV, PDF, Word · several at once
Learn more

Everything about text search online

Finding lines in a big text

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.

Typical searches

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, whole words only if you wish. Several words can be searched at once (separated by commas): each one is highlighted in its own colour and counted, in the text and in every file. Every match is highlighted, and the summary gives both the number of matching lines and the number of occurrences. Matching or non-matching lines (like grep -v), with 0 to 10 context lines (like grep -C): distant groups are separated by "--" and context lines are dimmed. Turn on line numbers to see where each line comes from ("12:" for a match, "12-" for context, as grep -n writes them). 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. The search runs in your browser: your files are not uploaded or stored.

How it works

Search text in 3 steps

  1. Add your text or files

    Paste a text, or choose several files or a folder — TXT, logs, CSV, PDF, Word. They are read in your browser.

  2. Type one or several words

    Type a word, a phrase or a regex — or turn on Several words to look for a list of keywords at once. Results update as you type.

  3. Read, copy or download

    Click a line to see it in its file, then copy the matching lines or download them as a .txt file.

Practical guides

Get the most out of Text Search

Powerful search

This tool finds words in a text or in many files at once — plain text, PDF and Word — like grep or findstr, without the command line.

Search one phrase or a list of keywords: each word gets its own colour and count, with context lines, line numbers and the count per file.

Several words, regex, context

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.

Files read in your browser
Frequently asked questions

Text Search — FAQ

Everything you need to know about our text search tool