Chat with PDF

Ask questions about a document with a model that runs on your own machine, and check the pages it cites.

The document, your questions and the answers all stay on your device. Nothing is sent to a model API.

Built and maintained by Udit Agarwal

Get a summary instead of asking

About Chat with PDF

A model small enough to run in a browser cannot hold two hundred pages in its context, so handing it the whole document is not an option. The document is cut into overlapping passages instead, and for each question the passages that share the most distinctive words with it are found and only those are read. Every answer lists the pages it drew on, and those passages are shown in full underneath, so a claim can be checked against the document rather than taken on trust. The model runs on your own hardware through WebGPU; the document and your questions stay on the device.

Features

  • The document is cut into overlapping passages with their page numbers kept
  • Retrieval weights rare words above common ones, so a distinctive term wins
  • Every answer cites the pages it used, with the passages shown underneath
  • Nine models from 350 MB to 2.2 GB, cached after the first download
  • Follow-up questions keep the recent conversation in view
  • Warns when a document has too little text to question
  • Copy the whole conversation as text

How to use the Chat with PDF

  1. Drop the PDF onto the page
  2. Pick a model — the first use downloads it once
  3. Ask a question, or start from one of the suggestions
  4. Read the answer and open the cited passages to check it

Example

Input

lease.pdf — "What notice period does either party have to give?"

Output

Two months in writing, by either party. (p. 3) · Answered from Page 3

The passage it used is shown underneath so the claim can be verified.

Common errors & troubleshooting

  • The browser cannot run the model. — It needs WebGPU, which desktop Chrome and Edge provide. Without it, the PDF Summarizer works and Extract Text gives you the words to use elsewhere.
  • Almost no text could be read. — The PDF is a scan. Run it through text recognition first; there is nothing to retrieve from a page with no text layer.
  • The answer is confidently wrong. — Small models do that. Open the cited passages — if the answer is not in them, it was invented, and a larger model usually helps.
  • The first question is very slow. — The model is downloading, which happens once and then it is cached. Later questions start immediately.

Frequently asked questions

Is my document sent to a server?
No. The text is extracted in this tab, the retrieval runs here, and the model runs on your own GPU. The model weights are downloaded once from a public host and cached by your browser.
Why does it only read a few passages?
Because a model of this size has a limited context. Feeding it the four most relevant passages gives better answers than truncating the document at an arbitrary point.
Which model should I pick?
Start with the 1B recommended one — around 750 MB, and good enough for straightforward questions. Move up if the answers feel thin, and note that the larger models need a capable GPU.
Can it answer questions that span the whole document?
Poorly. Retrieval finds passages, so "what does clause 7 say" works well and "summarise every obligation across 200 pages" does not. Use the summarizer for the second kind.
Do the citations guarantee the answer is right?
They let you check it, which is the point. Small models still misread a passage they were given, so the citation is a starting point for verification rather than a proof.

Related tools

  • PDF Summarizer — Summarise a long PDF section by section, on your device.
  • PDF to Text — Extract selectable text from a PDF as plain text or Markdown.
  • PDF OCR — Recognise the text in a scanned PDF and make it searchable.
  • Audio to PDF Transcript — Transcribe a recording on your device and export it as a PDF, SRT or VTT.
  • Compare PDFs — Diff the extracted text of two PDFs line-by-line.
  • PDF Read Aloud — Listen to a PDF read out loud, passage by passage.
  • PDF Privacy Scanner — Find the metadata and personal data hiding inside a PDF.

Guides

More PDF tools

  • Make PDF Look Scanned — Give a digital PDF the tilt, grain and grey tone of a page that went through a scanner.
  • TIFF to PDF — Convert single or multi-page TIFF files, including fax scans, into one PDF.
  • PDF to TIFF — Render PDF pages into a multi-page TIFF in colour, greyscale or black and white.
  • Deskew PDF — Straighten crooked scanned pages automatically, with a per-page angle you can adjust.
  • PDF Bookmark Editor — Add, rename, nest and reorder the bookmarks in a PDF, or generate them from headings.
  • PDF Attachments — List, extract, add or remove the files embedded inside a PDF.
  • Remove PDF Annotations — Strip comments, highlights, drawings and stamps from a PDF, keeping links if you like.
  • Remove Images from PDF — Blank out the pictures in a PDF for a lighter, text-only copy, keeping logos if you choose.
  • PDF Inspector — See a PDF’s version, page sizes, fonts, images, forms, security and standards claims.
  • PDF Font Finder — List every font a PDF uses, which pages use it and whether it is embedded.
  • Extract Links from PDF — Collect every clickable link and written URL in a PDF, with page numbers, as CSV.
  • PDF Word Counter — Count words, characters and pages in one or more PDFs, with a per-page breakdown.

See all PDF tools (85) · All tools