Fuzzy Text Search

Paste your text, type a query, and get the best-matching snippets ranked by relevance — typos and all. Everything runs in your browser; nothing is uploaded.

Try:
Ranked matches

About this tool

Fuzzy Text Search finds the passages in your text that best match what you are looking for — even when the words are misspelled. Paste a document (or several, one after another), type a query, and get back the matching snippets ranked by relevance, with the matched words highlighted in «guillemets». It is a browser-local search box for a single body of text: no index to build, no upload, no sign-up.

Unlike a plain find-in-page, it tolerates typos (via edit distance), matches partial words, can require all query words or any of them, and sorts the strongest matches to the top so you read the best passages first.

Worked example

Paste this text:

Shipping policy: orders are dispatched within two days.
Send returns to our adress on file and include the receipt.
Refunds are processed within five working days.
Contact support if your package is delayed or lost.

Search for address with Fuzziness = 1. The document only contains the misspelling adress, but it is one edit away, so you get:

1 match for "address"

#1  line 2  score 70
Send returns to our «adress» on file and include the receipt.

The score is 70 (a one-typo fuzzy match) rather than 100 (an exact match), and the matched word is highlighted. Try the Match all words preset to require every query word in the same snippet, or switch Rank by to sentence or paragraph to change how the text is cut into snippets.

How ranking works

Each snippet gets a 0–100 score: an exact word match scores highest, a prefix/substring match a little lower, and a fuzzy (typo) match lower still — the more of your query words a snippet contains, the higher it ranks. Ties are broken by position, so earlier matches come first.

Limits and edge cases

FAQ

What does "fuzzy" search actually mean here?

It means typo tolerance. Each word in your query is compared to the words in the text using edit distance (the number of single-character insertions, deletions, or substitutions to turn one word into the other). With Fuzziness = 1 a word matches if it is at most one edit away — so color finds colour, and adress finds address. Set Fuzziness = 0 for exact (and prefix) matches only.

Can I search a PDF or Word document?

Not directly — this tool searches text you paste, and a PDF/DOCX is a binary file. Extract the text first with Document Text Extract (PDF, DOCX, EPUB) or PDF Extract Text, then paste the extracted text into the box here. Plain-text and markdown files can be pasted as-is.

What is the difference between "Any word" and "All words"?

With Any word (OR) a snippet is a hit if it contains at least one of your query words — useful for broad searches. With All words (AND) a snippet must contain every query word to be a hit — useful when you want passages that mention several things together, like package delayed.

Why does "Rank by" offer line, sentence, and paragraph?

It controls how the text is cut into snippets before ranking. Line treats each line as one snippet (best for logs, lists, or config), Sentence splits on ./!/?, and Paragraph splits on blank lines (best for prose). The location shown with each result (line 2, sentence 5, …) is numbered in whichever unit you pick.

Is my text uploaded anywhere?

No. The search runs entirely in your browser via WebAssembly. Your text never leaves the page — there is no server call, no account, and nothing is stored.

Developer & Automation Access

Run it from the terminal

Same engine as this page, headless — via the gizza CLI:

gizza tool fuzzy-doc-search "address" 'text=Shipping policy: orders are dispatched within two days.
Send returns to our adress on file and include the receipt.
Refunds are processed within five working days.'

New to the CLI? Get gizza →

Open it by URL

Pre-fill and auto-run this tool with query parameters — the names match the API/CLI:

https://gizza.ai/tools/fuzzy-doc-search/?query=address&text=Shipping%20policy%3A%20orders%20are%20dispatched%20within%20two%20days.%0ASend%20returns%20to%20our%20adress%20on%20file%20and%20include%20the%20receipt.%0ARefunds%20are%20processed%20within%20five%20working%20days.&match=any&fuzziness=1&case_sensitive=true&whole_word=true&unit=line&max_results=10