How Do You Convert a PDF to JSON?
You convert a PDF to JSON by adding it to QuickCatPDF's PDF to JSON converter and clicking Convert to JSON. The file describes the document as data: each page with its size, and the headings, paragraphs, lists, tables and pictures on it, in reading order.
Tick Include word positions to also get every piece of text with its position, font and size. The PDF is converted in your browser and never uploaded, and it's free with no sign-up.
How to Convert a PDF to JSON With QuickCatPDF
Converting to JSON takes four steps.
- Click Select PDF files or drop your PDFs on the page (up to 20).
- Tick Include word positions if you need the position of every word.
- Type a range in Pages if you only need part of the PDF.
- Click Convert to JSON, then download the file.
What Does the JSON Look Like?
The structure is the same for every PDF, so code can rely on it.
{
"source": "report.pdf",
"title": "Annual Review 2026",
"pageCount": 4,
"units": "points (1/72 inch), origin top-left",
"pages": [
{
"number": 1, "width": 595.3, "height": 841.9,
"blocks": [
{ "type": "heading", "level": 1, "text": "Annual Review 2026" },
{ "type": "paragraph", "text": "This review covers the year…" },
{ "type": "list", "ordered": false, "items": [{ "level": 0, "text": "Customers increased by 25 percent" }] },
{ "type": "table", "rows": [["Region", "Q1"], ["North", "120"]] }
]
}
]
}
In our test, a 4-page report became 7 KB of JSON in about half a second, with the title as a level-1 heading, both lists with their items and the table with every row.
What Are Word Positions For?
Word positions adds a words list to each page: every text piece with x, y, w (width), h (height), font, size, bold and italic. That's what you need to find text in a fixed place on a form, to draw boxes over a page, or to build your own layout analysis. Coordinates are in PDF points from the top-left corner of the page.
For tables only, PDF to Excel gives a spreadsheet, and for readable text with headings, use PDF to Markdown.
Frequently asked questions
Is PDF to JSON free?
Yes, free with no sign-up, no watermark and no limit on files.
Is my PDF uploaded?
No, the JSON is created in your browser, so sensitive documents stay on your device.
Does it work with scanned PDFs?
Yes, scanned pages are read with text recognition (OCR) first; the page is marked with "ocr": true.
Can I get XML instead?
Yes, PDF to XML writes the same structure as XML. For text meant for AI tools, use PDF to Markdown for LLMs, and for tables only, PDF to CSV.
Last updated: