How to convert a PDF to JSON
- Upload the PDF in the box above. The limit is 8MB per file.
- Click Extract Tables. The converter looks for tables on every page.
- Click Export to JSON. The JSON file downloads to your computer.
Ordinary tables convert at no cost and with no account. Uploaded files are deleted automatically after 24 hours.
What the JSON file looks like
Every table has a list of columns and a list of rows. Each row is an object, and the keys are the column names from the PDF.
{
"tables": [
{
"table": 1,
"columns": ["Item", "Qty", "Price"],
"rows": [
{ "Item": "Paper", "Qty": "2", "Price": "1,250.00" },
{ "Item": "Toner", "Qty": "1", "Price": "89.90" }
]
}
]
}- Encoding is UTF-8.
- All values are strings, as printed in the PDF.
- If a table has no header row, the keys are Column 1, Column 2 and so on.
- Repeated column names get a number, for example Price_2, so no value is lost.
Reading the file in code
In Python, load the file with json.load and walk through data["tables"][0]["rows"]. In JavaScript, use JSON.parse and the same path.
Other formats
The same extraction also gives you Excel and CSV, so you can download all three. Need a different structure? Try PDF to XML or PDF to CSV. To go the other way, use JSON to PDF.
Questions and answers
How do I convert a PDF to JSON?+
Upload the PDF on this page, click Extract Tables and then Export to JSON. The converter finds the tables in the PDF and writes each row as a JSON object.
Does it convert the whole PDF to JSON?+
No. It exports table data only: rows and columns. Headings and paragraphs around the tables are left out. If the PDF has no tables, there is nothing to export.
Are numbers saved as numbers?+
No. Every value is a string, exactly as printed in the PDF. A value like 1,250.00 means different things in different countries, so the file keeps it as it is and your code decides how to read it.
What happens with several tables?+
They all go into one file. The tables array has one entry per table, in the order they appear in the PDF.
Can I convert a scanned PDF to JSON?+
Yes. When the PDF is a scan, the converter runs text recognition (OCR) first. For hard scans, deep extraction reads the page like a person does; you see one page of the result before you pay.
How long do you keep my PDF?+
Uploaded files and results are deleted automatically after 24 hours.