Batch text search
Search many text files at once for keywords or regular expressions. See every hit with its line number, character range and highlight, combine patterns with per-line AND / OR, include context lines and export the whole result set as a TXT / CSV / JSON report. Files are read locally only.
Runs in your browserEvery computation happens in your browser — your data never leaves this device.
Searched line by line; up to 64 MB per file, 200 files per run and 256 MB in total. Nothing is uploaded or written to disk.
Up to 50. Plain mode matches literally — switch the matching mode for regular expressions.
Search results
Hits are listed per line with highlights; the report can be exported as TXT / CSV / JSON.
Pick files and enter search terms to see where they match
What this tool does
- Find lines where "user" and "login" appear together in a pile of logs, read them with line numbers and context, then export a report
- Use a regex to locate every phone number, order ID or IPv4 address and export CSV for a spreadsheet
- Collect hits from many config or export files as JSON and feed it to a script
Example
Input
server.log: boot ok user alice login GET /index 200
Output
files=1 matched=1 hits=1 patterns=2 patterns=user|login mode=plain operator=and case-sensitive=false context=0 server.log lines=3 hits=1 2: user alice login
Search terms are user and login with AND (both must be on the same line): only line 2 qualifies, and the report shows the file name, line count and the matching line with its number.
Frequently asked questions
How is this different from "Batch file filter"?
This is search: it answers "where did it match" — line numbers, character ranges (highlighted in the UI), optional context lines and a TXT / CSV / JSON report, without touching or packing your files. "Batch file filter" answers "which files should I keep": after a file-level match it packs whole files (or only the matching lines) into a ZIP. Use this one to locate content, that one to take the files with you.
How do AND and OR work here?
The relation is evaluated **per line**: AND needs all search terms on the same line (user and login must share the line), OR needs any of them. In regex mode matching is still per line, where ^ and $ mean the start and end of that line, and a pattern cannot span lines.
How large a set can it search?
The UI caps a single file at 64 MB, 200 files per run and 256 MB in total. Searching needs the file contents in memory to match line by line (especially with regex), so it cannot stream and discard like the line counter. For huge sets, narrow with command-line grep -rl and upload the smaller selection.
What do "context lines" and "hits listed per file" do?
Context lines (0–10) shows that many lines before and after each hit, which helps you judge the situation; the report marks them as `line- before` and `line+ after`. Hits listed per file (200 by default, 0 for unlimited) limits how many hits are expanded in the UI and the report; extra hits are still counted and summarised at the end.
What is the difference between the export formats?
TXT carries line numbers and context, handy for reading or pasting into a ticket; CSV is `file,line,column,end,patterns,text` with 1-based character columns (end inclusive) for spreadsheets; JSON contains each file's hits with ranges, matched pattern indices and context lines for scripts. All three only read the file content and upload nothing.
Do case, full-width characters and multi-byte characters affect columns?
Case is insensitive by default and can be turned on. Columns are JavaScript string indices (UTF-16 code units): CJK and emoji count as one index each while an emoji surrogate pair counts as two; full-width and half-width characters are different characters and never treated as equal. The highlight and the CSV columns use the same indexing, so they always agree.
Keywords:batch text searchgrep multiple filessearch text filesregex search