When you need a PDF's content in a form a script can actually work with, plain text usually isn't enough — you want structure. This tool walks every page of your PDF with pdf.js, groups the text into lines using each item's position on the page, and outputs a clean JSON document with one entry per page. It's a starting point for scripts, search indexes, or data pipelines, generated entirely in your browser.
How to use the pdf to json tool
- 1
Upload your PDF
Drop in the file you want to extract structured data from.
- 2
Convert
Click Convert to JSON. Each page's dimensions and text lines are extracted.
- 3
Download
A .json file downloads with a page array containing each page's text lines in order.
Common use cases
Feed a document into a script
Get machine-readable JSON to process PDF content programmatically.
Build a search index
Extract per-page text to index a batch of PDFs for search.
Prototype a data pipeline
Quickly inspect what text content a PDF contains before writing a full parser.
Frequently asked questions
A top-level object with the source filename, page count, and a pages array — each page has its number, width, height, and an array of text lines in reading order.