---
title: "Extract data from PDF with AI: with page citations | Docsi"
description: "Extract data from PDF with AI: names, dates, amounts and numbers as JSON, each with its page. Name your fields or let the model choose them."
url: https://docsi.si/tools/extract-data-from-pdf/
updated: 2026-11-18
---

[Docsi](https://docsi.si/) / [Tools](https://docsi.si/tools/) / [AI](https://docsi.si/tools/#ai)

# Extract data from PDF with AI

Pull structured fields (names, dates, amounts, numbers) out of a document as JSON.

Search & AI

**Extract data from PDF with AI uses your own AI key**

It runs in the Docsi app, free. Add the key of any OpenAI-compatible service, or point it at a local model, and Docsi shows the exact text before anything is sent.

[Open it in the app](https://docsi.si/app/?tool=ai.extract)

**Runs on**: Your device, plus the AI you choose

**Files uploaded**: Only text you approve

**Price**: Free

**Account**: Needed, with your own AI key

**Updated**: 18 November 2026

Name the fields you want, such as invoice number, vendor, total and due date, and get them back as JSON. Each field comes with its value, which the model is told to copy word for word from the text, and the page it was found on, or null when it is not there. Leave the list empty and the model picks the six to twelve most useful fields for that kind of document. As with every AI tool in Docsi, you see the text before it is sent and nothing goes until you approve it.

## How to extract fields

1. **Open it in the app** This tool runs in the Docsi app, free and with no account. It opens ready to use.
2. **Add your document** It is read on your device first.
3. **Set the options** Adjust fields, or keep the defaults.
4. **Approve what is sent** Docsi shows the exact text that will go to the AI model. Nothing is sent until you agree.
5. **Run and save** The result appears in the conversation. Download it, or carry on with another request on the same file.

## When to use extract data from PDF with AI

**Invoices from many suppliers**: Different layouts, same fields. Ask for invoice number, date, vendor, total and due date and get the same JSON shape from each one.

**Key terms from contracts**: Parties, effective date, term, notice period and governing law, each with the page to check it on.

**Forms and applications**: Pull names, dates of birth, reference numbers and addresses out of filled forms into structured data.

**Feeding another system**: JSON drops straight into a spreadsheet, a script or an import, without retyping.

## Tips for a better result

**Name fields the way the document does**: “due_date” or “payment due date” both work. Clear names get better values than vague ones like “info”.

**Put important fields early in long files**: Extraction reads the opening part of the document, so a field that only appears deep in a long report may come back null.

**Check nulls before you trust them**: Null means the value was not found in the text that was read. Look at the page before concluding it is not there.

**For Indian GST invoices, try the on-device extractor**: Invoice data extraction reads invoice fields, GSTINs, taxes and line items without AI and checks the arithmetic.

**Scans need OCR first**: Run Make a scanned PDF searchable on a scanned file so there is text to extract from.

## Options

**Fields**: Field names to extract, e.g. `["invoice_number", "vendor", "total", "due_date"]`. Empty = let the model pick the obvious fields for this document type.

## Private by design, even with AI

Most AI document tools upload the whole file. Docsi reads the document locally, shows you the exact text it wants to send, and waits for your approval. Every request is written to an activity record you can review later.

In the app you can also type what you want: “extract”, “pull out”, “get the fields”, “structured data”, “invoice data”.

## Questions

### How do I extract data from a PDF into JSON?

Open the PDF in Docsi, list the fields you want or leave the list empty, approve the text shown, and the result is a JSON object with each field's value and page number.

### What does the output look like?

One entry per field, each with a value and a page, for example {"total": {"value": "₹1,18,000.00", "page": 1}}. The model is asked to copy each value word for word, and it is null when it was not found.

### Can I extract tables or line items?

It is built for single fields such as names, dates, amounts and numbers. For invoice line items use Invoice data extraction, which reads tables without AI.

### Can I extract data without sending text to a cloud AI?

Yes. Choose a local model, such as Ollama, in the AI settings, or your own OpenAI-compatible endpoint with your own key.

### Is my document uploaded?

Only the text you approve is sent to the AI model, and Docsi shows it to you first. The file itself stays on your device. You can also connect your own API key or a local model, in which case nothing passes through Docsi.

### Is it free?

Yes. Docsi charges nothing. The AI part uses your own key for any OpenAI-compatible service, or a local model on your computer, so you pay your AI provider directly or nothing at all.

### Does it work on a phone or tablet?

Yes, in any modern browser. Very large files are limited by the memory of the device, so a laptop handles them better than a phone.

## Related tools

[Ask the document Answer a question from the document's text, with page citations.](https://docsi.si/tools/chat-with-pdf/)[Work out which tool to use Choose the right tool for a request the offline matcher could not place.](https://docsi.si/tools/work-out-which-tool-to-use/)[Say what happened Turn what a tool just did into a sentence worth reading.](https://docsi.si/tools/say-what-happened/)[Summarize Summarize a document.](https://docsi.si/tools/summarize-pdf/)

## Extract fields, and 153 more tools.

[See all tools](https://docsi.si/tools/)[Open the app](https://docsi.si/app/)
