PDF to JSON

Extract structured data from PDFs

Each field gets a type, such as text, number, date, yes or no, or a list, plus a short description that tells the AI what to look for. Values must appear in the document: anything not stated is left empty instead of guessed, and you can correct values beside their pages before exporting. The field list is saved in this browser, ready for your next batch. It runs on an on-device model or your own API key, and with a key the text is sent to that provider.

Also known as extract data from PDF, PDF data extraction, PDF parser to JSON and PDF fields to JSON.

  1. Choose one or more PDFs.
  2. Define your fields, or switch to pasting a JSON Schema, then select Extract data.
  3. Review the values and download JSON, a CSV row per file, or the schema.

Read the PDF to JSON guide

PDF to JSON: questions and answers

How do I extract data from a PDF to JSON?

Choose one or more PDFs and define your fields under Fields, or switch to pasting a JSON Schema. Select Extract data, review each document’s values beside its pages and correct them. Then download JSON for one document or all of them, a CSV with a row per document, or the JSON Schema itself.

What field types can I extract from a PDF?

Text, number, whole number, date, yes or no, currency code, or a list of text. Give each field a short description to tell the AI what to look for. You can define up to 40 fields, and your field list is remembered in this browser for the next batch.

Can I paste my own JSON Schema?

Yes, if it describes an object. Properties can be strings, with date format, enum, pattern and length limits, numbers or integers with a minimum and maximum, booleans, or arrays of those or of simple objects such as line items. Nested objects, $ref, oneOf and allOf aren’t supported, and superPDF says which property to change.

What happens when a value isn’t in the document?

It is left null rather than guessed, and the AI’s suggestion is shown with a button to use it anyway. Values that must be worked out, such as a total of several figures or an age from a date of birth, are marked as not found. Export waits until every value matches its field.

How much of a long PDF does the extraction read?

With a model on this device, about 7,000 characters, taken from the passages that best match your fields. With your own API key, about 60,000, and that text goes from your browser to your provider. For a very long file, a key gives the AI much more to work with.

Related tools