# Chat with a PDF

> Ask questions about a PDF and get answers with page citations from an AI that runs in your browser. Long documents supported, nothing is uploaded.

- URL: https://www.tooljig.com/chat-with-pdf
- Category: [On-device AI](https://www.tooljig.com/category/ai.md)
- Runs: On-device AI in the browser (WebGPU or WebAssembly); nothing uploaded
- Price: free, no account needed

## What it does

Drop a PDF, contract, report or text file and ask questions about it. The document is read in your browser and indexed on the spot; the on-device model then works through it like a researcher, searching for passages, scanning for exact terms, reading the most relevant pages and citing them as [p. 12]. Click a citation to see the page. Because the model reads a window at a time, documents of hundreds of pages work even with a small model. The model runs inside your browser tab. Its weights download once from Hugging Face and can stay on your device; your text and files are never uploaded.

## How to use it

1. Drop a PDF or text file (or paste text).
2. Ask a question; watch the search and read steps as they happen.
3. Click a page citation to check the source text.

## Good to know

- Scanned PDFs (pictures of pages) have no text layer, so the model cannot read them; a warning appears if most pages are empty.
- Search combines keyword ranking (BM25) with exact matching, then the model reads whole pages for detail.
- Small models can make mistakes. Check important answers against the source; tool results and page citations make that quick.

## FAQ

### Is my PDF uploaded?

No. pdf.js extracts the text in your browser and the AI model runs locally. You can disconnect from the internet after the model has loaded and it keeps working.

### How long can the document be?

Hundreds of pages. The model never needs the whole document in memory at once: it searches, then reads the pages it needs, keeping only what fits its context window.

### How big is the download, and does it happen every time?

The first run downloads the model once (about 250–600 MB depending on the model; the exact size is shown before you start). It is kept in your browser's storage by default, so later visits load it in seconds and work offline. You can turn that off or delete stored models on the model manager page.

### Will it work on my computer or phone?

Any recent Chrome, Edge, Safari or Firefox works. With WebGPU (most laptops and desktops from the last few years) replies stream quickly; without it the model runs on the CPU, more slowly. Phones work best with the smallest models.

## Guides

- [How to chat with a PDF without uploading it](https://www.tooljig.com/blog/how-to-chat-with-a-pdf-privately.md): Ask questions about a long PDF and get answers with page citations from an AI model that runs in your browser, so the document never leaves your device.

## Related tools

- [AI Document Summarizer](https://www.tooljig.com/ai-summarizer.md): Summarize long PDFs, reports and articles with an AI model that runs in your browser. Short, medium or detailed, with an optional focus. Nothing uploaded.
- [PDF Viewer](https://www.tooljig.com/pdf-viewer.md): Open and read a PDF in your browser: page thumbnails, a large page view with keyboard navigation, page sizes and count. Private, nothing is uploaded.
- [AI Entity Extractor](https://www.tooljig.com/ai-entity-extractor.md): Extract people, companies, places, dates, amounts or any labels you name from text with GLiNER2, running in your browser. Export JSON. Free and private.
