Next-Gen App & Browser Testing Cloud
Trusted by 2 Mn+ QAs & Devs to accelerate their release cycles

Paste an AI answer and, if you have it, the source it should match. Get a risk score, claim-by-claim grounding, and red-flag checks.
0 of 20000 characters
0 of 50000 characters
Sends only DOIs, ISBNs, arXiv IDs, and capitalized names to doi.org, Crossref, Open Library, and Wikidata. The answer text itself is never uploaded.
Detect Hallucinations
An AI hallucination detector is a tool that checks text written by a large language model for fabricated or unsupported details. NIST AI 600-1 calls this risk confabulation, where GAI systems "generate and confidently present erroneous or false content in response to prompts". This detector scores that risk claim by claim, in your browser.
NIST adds that confabulations include outputs that "contradict previously generated statements in the same context", so the detector checks an answer against your source and against itself.
The OWASP LLM09:2025 Misinformation entry states that "Misinformation occurs when LLMs produce false or misleading information that appears credible". It lists factual inaccuracies and unsupported claims as examples and recommends retrieval-augmented generation and cross-verification.
TestMu AI maintains this detector alongside the Agent Red-Team Scan, which probes an LLM API for prompt injection, and the AI Agent Risk Scorer.
The detector runs five deterministic stages in your browser, then an optional online stage, with no model call:
All text analysis happens in your browser and the answer text is never uploaded. With online verification on, only identifiers and capitalized names leave the page, as individual lookups to public registries.
Try this: load the sample and press Detect Hallucinations. The input "Tuesday, March 3, 2025" returns the Critical flag Weekday mismatch: March 3, 2025 was a Monday.
Deterministic checks verify internal consistency and identifier validity. Grounding verifies agreement with the text you supply, not with the world. Registry lookups confirm that an identifier exists and what it points to; nothing here confirms that a free-text claim is true.
| Check | What it verifies | What it cannot verify |
|---|---|---|
| Grounding | Claim words, numbers, quotes, and names appear in your source | Whether the source itself is correct |
| ISBN | Check digit is valid and an Open Library edition exists (online) | Whether the cited passage is in that book |
| Date and weekday | The date exists and the weekday matches | Whether the event happened that day |
| arXiv ID | Identifier is possible and registered (online) | Whether the paper says what the answer claims |
| DOI and URL | DOI is registered and which article and journal it points to (online); URL host is not a placeholder | Whether the page at a URL exists or supports the claim |
| Statistics and authority phrases | A source is named in the same sentence | Whether the number or study is real |
| People, organizations, journals | Wikidata birth, death, or founding year against the nearest year in the text; Crossref journal registry (online) | Whether the person or body actually did what the text says |
To test agents across many conversations, use the AI Agent Testing Platform; TestMu AI also runs tests across 10,000+ real devices and 3000+ browsers. The AI hallucination guide and LLM testing guide go deeper.
Hallucination and confabulation describe the same failure: a language model confidently stating false or unsupported content. NIST AI 600-1 uses the term confabulation and notes these errors are colloquially called hallucinations or fabrications. NIST adds that confabulations include outputs that diverge from the prompt or contradict earlier statements in the same context.
A hallucination detector cannot confirm that a claim is true in the world. This detector checks agreement with the source text you paste and the validity of dates and identifiers. Registry lookups and Wikidata timeline checks catch invented citations and impossible dates for real people, but no check here judges an arbitrary free-text claim.
Without a source text, the hallucination detector marks every claim as Not grounded and the score reflects risk signals such as invalid dates, broken ISBN check digits, and unsourced statistics. Online verification still runs without a source, looking up DOIs, ISBNs, arXiv IDs, journals, and names. Paste the reference document to add claim-by-claim grounding.
Without a source, the detector catches invalid identifiers and dates, lists and years that contradict themselves, and unsourced statistics. With online verification on, it also flags DOIs, ISBNs, arXiv IDs, journals, and people or organizations that do not exist or whose dates make the story impossible. It cannot catch a plausible claim with no checkable detail.
A URL cannot be fetched from the browser because most sites block cross-origin requests, so the hallucination detector only rejects placeholder hosts such as example.com. DOIs, ISBNs, and arXiv IDs have public registries that allow browser access, so with online verification on they are looked up and a missing record is flagged as invented.
The share of fake AI-generated citations has no single answer, because published estimates vary by study, model, subject, and prompt. This hallucination detector does not estimate a rate. It flags each author-year citation, DOI, arXiv ID, and ISBN in your answer so you can check every reference individually in a library database.
Retrieval-augmented generation does not eliminate hallucinations. OWASP recommends RAG as a mitigation for LLM09:2025 Misinformation, not a cure, because a model can still ignore, misread, or embellish retrieved passages. Pasting the retrieved context as the source in this detector measures exactly that gap by flagging claims whose numbers, names, or wording are missing from the context.
The pasted text is never stored or uploaded. With Verify identifiers online checked, only DOIs, ISBNs, arXiv IDs, and capitalized names are sent as individual lookups to doi.org, Crossref, Open Library, and Wikidata. Untick the box to keep everything local. Nothing is written to cookies or local storage, and a refresh discards your results.
The hallucination detector accepts an answer of up to 20,000 characters and a source text of up to 50,000 characters per run. An uploaded .txt, .md, .json, or .csv file follows the same 20,000 character limit for the answer box. Split longer transcripts or documents into sections and check each section separately.
The hallucination detector is tuned for English: authority phrases such as studies show, absolute words, list counts, and weekday and month names are matched in English only. ISBN check digits, DOI syntax, arXiv identifiers, ISO dates, URLs, and number grounding are language-independent, so those checks still work on answers written in other languages.
The risk score adds a weight per red flag: 15 Critical, 8 High, 4 Medium, 1 Low, capped at 100 without a source. With a source, unsupported claims plus half the partial claims add up to 60 points and flags up to 40. An unregistered DOI or arXiv ID floors the score at 50, High risk.
Did you find this page helpful?
TestMu AI forEnterprise
Get access to solutions built on Enterprise
grade security, privacy, & compliance