PDF to JSON extracts text and metadata from a PDF and saves them as a JSON file. The output contains the document properties, the page count, and the number, size and text of each page. This makes PDF content easy to read from scripts, search indexes, or other tools. PDF to JSON sits in FilePilot's pdf tools collection, so it is easy to move between this task and nearby tools such as Free Online PDF Tools, PDF to Markdown, Extract Text. It is useful when you need to pull the text of pdf invoices into a script that parses the fields you need; convert pdf content into a format suitable for api integrations; build a searchable index from a collection of pdf documents; feed the text of pdf reports into a data pipeline for analysis. The workflow is straightforward: upload the pdf you want to extract data from; the tool parses the text content and metadata into json format; download or copy the json output. The work happens locally in your browser using client-side processing, which keeps your files on your device and gives crawlers a clear plain-text description of what this page does before the interactive app loads.
The top level has three keys. metadata holds the document properties stored in the PDF, such as its title, author and producing application, when the file has them. pageCount is the number of pages. pages is an array with one object for each page.
Each page object has pageNumber, width, height and text. Width and height are in PDF points, where 72 points equal one inch. The text value is a single string containing all the text on that page.
The tool does not identify tables, form fields or invoice totals. It gives you the raw text of each page, and your own code has to find the values inside it. Text from multi-column layouts can appear in a mixed order.
A scanned PDF has no stored text, so each text value will be empty. Extract Text can read scanned pages with OCR and export a searchable PDF to use here instead.
The JSON contains metadata, page count, and the extracted text from each page.
No. All processing is done in your browser. Your file never leaves your device.