Free, no account, 3 runs a day: the tables in a PDF of up to 5 pages come back as JSON, every column typed and every row tagged with its page. Signed in, $0.02 a page, 50 pages free.
PDF to JSON: the tables in a PDF as JSON rows
Drop in a PDF of up to 10 MB, with up to 2 scanned pages, and get output.json: each table with its title, its named and typed columns, its rows in column order and the page each row came from. Excel and CSV files come with it.
Free toolsUpdated
Free without an account, 3 runs a day. Your file is deleted as soon as the run ends.
- Takes
- Digital and scanned PDFs with one or more tables, and images of printed tables
- Gives back
- JSON
- Excel
- CSV
How it works
How the PDF to JSON converter works
Drop in the PDF
Upload a digital PDF, a scan or an image of a printed table. If the PDF is locked, add its password: it's sent with that one run and never stored.
Every table is read
Each table comes back with its title, its printed column names and a type per column: string, number, currency or date. A table that runs across pages stays one table, with repeated headers and footers dropped.
Download the JSON
Grab output.json, plus output.xlsx and output.csv from the same run. The links work for 1 hour, then the result and every file are deleted.
Example
A 2-page price list as JSON
Below is the result for table-larkspur.pdf, a plant nursery price list. Its 1 table runs from page 1 to page 2 with 52 rows under 6 printed columns, and the prices and minimum orders come back as numbers.
POSTapi.parserkit.com/v1/parse?wait=60
curl "https://api.parserkit.com/v1/parse?wait=60" \
-H "Authorization: Bearer $PARSERKIT_API_KEY" \
-F file=@table-larkspur.pdf \
-F preset=generic_tableimport os
import requests
with open("table-larkspur.pdf", "rb") as file:
res = requests.post(
"https://api.parserkit.com/v1/parse",
params={"wait": 60},
headers={"Authorization": f"Bearer {os.environ['PARSERKIT_API_KEY']}"},
files={"file": file},
data={"preset": "generic_table"},
)
job = res.json()
print(job["verification"]["status"], job["verification"]["coverage"])import { openAsBlob } from "node:fs";
const form = new FormData();
form.append("file", await openAsBlob("table-larkspur.pdf"), "table-larkspur.pdf");
form.append("preset", "generic_table");
const res = await fetch("https://api.parserkit.com/v1/parse?wait=60", {
method: "POST",
headers: { Authorization: `Bearer ${process.env.PARSERKIT_API_KEY}` },
body: form,
});
const job = await res.json();
console.log(job.verification.status, job.verification.coverage);{
"id": "job_2tikgoo3g3k5gvq33ox9",
"status": "succeeded",
"preset": "generic_table",
"pages": 2,
"cost_usd": 0.04,
"verification_status": "verified",
"data": {
"tables": [
{
"title": "Prices in EUR per plant, excluding VAT. Minimum order per line in plants.",
"page_start": 1,
"page_end": 2,
"columns": [
{
"name": "CODE",
"type": "string"
},
{
"name": "PLANT",
"type": "string"
},
{
"name": "POT",
"type": "string"
}
],
"rows": [
[
"LH-1001",
"Acer palmatum 'Bloodgood'",
"C10",
"80-100 cm",
24.5,
5
],
[
"LH-1002",
"Acer palmatum 'Sango-kaku'",
"C10",
"80-100 cm",
26.8,
5
],
[
"LH-1003",
"Amelanchier lamarckii",
"C15",
"125-150 cm",
31.2,
3
],
[
"LH-1004",
"Betula utilis 'Doorenbos'",
"C25",
"200-250 cm",
58,
2
],
[
"LH-1005",
"Buxus sempervirens",
"C2",
"20-25 cm",
3.15,
25
],
[
"LH-1006",
"Carpinus betulus",
"C3",
"60-80 cm",
4.9,
25
],
[
"LH-1007",
"Cornus alba 'Sibirica'",
"C3",
"40-60 cm",
4.4,
10
],
[
"LH-1008",
"Cornus kousa 'China Girl'",
"C15",
"100-125 cm",
42.6,
3
],
[
"LH-1009",
"Euonymus alatus 'Compactus'",
"C5",
"40-50 cm",
9.8,
10
],
[
"LH-1010",
"Fagus sylvatica",
"C3",
"60-80 cm",
5.2,
25
],
[
"LH-1011",
"Hamamelis x intermedia 'Arnold Promise'",
"C10",
"60-80 cm",
36.5,
3
],
[
"LH-1012",
"Hydrangea paniculata 'Limelight'",
"C5",
"40-60 cm",
11.9,
10
],
[
"LH-1013",
"Hydrangea macrophylla 'Endless Summer'",
"C5",
"30-40 cm",
12.4,
10
],
[
"LH-1014",
"Ilex crenata 'Dark Green'",
"C3",
"25-30 cm",
5.6,
25
],
[
"LH-1015",
"Lavandula angustifolia 'Hidcote'",
"P9",
"10-15 cm",
1.95,
50
],
[
"LH-1016",
"Ligustrum ovalifolium",
"C3",
"60-80 cm",
3.8,
25
],
[
"LH-1017",
"Magnolia stellata",
"C10",
"60-80 cm",
34.9,
3
],
[
"LH-1018",
"Malus 'Evereste'",
"C25",
"200-250 cm",
64,
2
],
[
"LH-1019",
"Nandina domestica",
"C5",
"40-50 cm",
13.2,
10
],
[
"LH-1020",
"Osmanthus x burkwoodii",
"C5",
"40-50 cm",
14.6,
10
],
[
"LH-1021",
"Photinia x fraseri 'Red Robin'",
"C5",
"60-80 cm",
10.8,
10
],
[
"LH-1022",
"Pieris japonica 'Mountain Fire'",
"C5",
"30-40 cm",
13.9,
10
],
[
"LH-1023",
"Prunus laurocerasus 'Rotundifolia'",
"C5",
"60-80 cm",
9.4,
10
],
[
"LH-1024",
"Prunus serrulata 'Kanzan'",
"C25",
"200-250 cm",
61.5,
2
],
[
"LH-1025",
"Pyrus calleryana 'Chanticleer'",
"C25",
"250-300 cm",
72,
2
],
[
"LH-1026",
"Rhododendron 'Cunningham's White'",
"C10",
"40-50 cm",
22.8,
5
],
[
"LH-1027",
"Rosa 'Gertrude Jekyll'",
"C4",
"40-60 cm",
12.9,
10
],
[
"LH-1028",
"Rosa rugosa 'Alba'",
"C3",
"40-60 cm",
6.4,
25
],
[
"LH-1029",
"Salvia nemorosa 'Caradonna'",
"P9",
"10-15 cm",
2.25,
50
],
[
"LH-1030",
"Sambucus nigra 'Black Lace'",
"C5",
"60-80 cm",
12.7,
10
],
[
"LH-1031",
"Skimmia japonica 'Rubella'",
"C3",
"20-25 cm",
8.6,
10
],
[
"LH-1032",
"Sorbus aucuparia",
"C15",
"150-175 cm",
33.4,
3
],
[
"LH-1033",
"Spiraea japonica 'Goldflame'",
"C3",
"30-40 cm",
5.1,
25
],
[
"LH-1034",
"Syringa vulgaris 'Madame Lemoine'",
"C10",
"80-100 cm",
27.9,
5
],
[
"LH-1035",
"Taxus baccata",
"C5",
"40-50 cm",
11.2,
10
],
[
"LH-1036",
"Thuja occidentalis 'Smaragd'",
"C10",
"100-125 cm",
17.8,
10
],
[
"LH-1037",
"Viburnum opulus 'Roseum'",
"C5",
"60-80 cm",
11.6,
10
],
[
"LH-1038",
"Viburnum tinus",
"C5",
"40-60 cm",
10.9,
10
],
[
"LH-1039",
"Weigela florida 'Bristol Ruby'",
"C3",
"40-60 cm",
5.7,
25
],
[
"LH-1040",
"Anemone x hybrida 'Honorine Jobert'",
"P9",
"10-15 cm",
2.45,
50
],
[
"LH-1041",
"Astilbe chinensis 'Pumila'",
"P9",
"10-15 cm",
2.1,
50
],
[
"LH-1042",
"Echinacea purpurea 'Magnus'",
"P9",
"10-15 cm",
2.35,
50
],
[
"LH-1043",
"Geranium 'Rozanne'",
"P9",
"10-15 cm",
2.9,
50
],
[
"LH-1044",
"Hosta 'Patriot'",
"C2",
"15-20 cm",
4.8,
25
],
[
"LH-1045",
"Nepeta x faassenii",
"P9",
"10-15 cm",
2.05,
50
],
[
"LH-1046",
"Pennisetum alopecuroides 'Hameln'",
"C2",
"30-40 cm",
4.6,
25
],
[
"LH-1047",
"Rudbeckia fulgida 'Goldsturm'",
"P9",
"10-15 cm",
2.15,
50
],
[
"LH-1048",
"Sedum 'Herbstfreude'",
"P9",
"10-15 cm",
1.95,
50
],
[
"LH-1049",
"Stipa tenuissima",
"P9",
"20-30 cm",
2.2,
50
],
[
"LH-1050",
"Verbena bonariensis",
"P9",
"10-15 cm",
1.9,
50
],
[
"LH-1051",
"Calamagrostis 'Karl Foerster'",
"C2",
"40-60 cm",
4.7,
25
],
[
"LH-1052",
"Miscanthus sinensis 'Gracillimus'",
"C3",
"60-80 cm",
7.4,
10
]
],
"row_pages": [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2
]
}
]
},
"verification": {
"status": "verified",
"coverage": {
"values": 319,
"checked": 319
}
},
"outputs": [
{
"name": "output.json",
"bytes": 75337
},
{
"name": "output.xlsx",
"bytes": 10061
},
{
"name": "output.csv",
"bytes": 3109
}
],
"warnings": []
}Real response from . Trimmed to 3 of 6 columns, with bounding boxes, empty fields and file links left out.
Try it on this fileoutput.json for a table, key by key
Where each part of a table lands in the file, with what the Larkspur run returned.
| Key | What it holds | Larkspur run |
|---|---|---|
documents | One entry per file, with its name, pages and data | 1 document, 2 pages |
data.tables | Every table in reading order | 1 table |
title | The table's caption, or the heading above it | Prices in EUR per plant, excluding VAT. Minimum order per line in plants. |
page_start, page_end | The first and last page the table is printed on | 1 and 2 |
columns | Each printed header as a name, with a type: string, number, currency or date | CODE, PLANT, POT and HEIGHT as string; PRICE (EUR) and MIN. ORDER as number |
rows | One array per row, cells in column order: strings, numbers or null | 52 rows, the first LH-1001, Acer palmatum 'Bloodgood', C10, 80-100 cm, 24.5, 5 |
row_pages | The page each row was printed on, in row order | 1 for the first row |
Source: parserkit export formats
What output.json holds
output.json opens with the job id and the preset, then lists each document with its name, pages, status and data. For tables, the data is tables: every table in reading order, each with a title, page_start and page_end, columns with a name and a type, rows as arrays in column order, and row_pages with the page of each row.
Number and currency columns come back as JSON numbers, so the 24.5 in the sample is a number you can sum, not text to parse. Every column carries its type, and a table that spans pages is 1 table rather than one per page, so you never stitch pages back together.
Need fields, not tables?
This converter returns the tables in a PDF. For named fields as JSON, like an invoice's number, dates, line items and totals or a bank statement's transactions and balances, use the invoice, receipt or bank statement converter. Each one returns output.json with those fields, free on the same terms.
For fields you define yourself, from any document, the API takes your own JSON schema; see PDF to JSON with your own schema. The same run on this page also gives you output.csv and output.xlsx, and the PDF to CSV converter explains that CSV.
Free limits, and what signing in lifts
A free run takes one PDF or image (PNG, JPEG, GIF, WebP, TIFF or HEIC) of up to 10 MB and 5 pages, with at most 2 pages scanned. You get 3 runs a UTC day from your address and 10 per /24 network, starting over at 00:00 UTC, and a failed run counts toward them. The upload is deleted when the run finishes, the results and files 1 hour later.
Signing in with Google gives you $1 of free credit, 50 pages at $0.02 a page, with no card. Signed-in jobs take files up to 100 MB and documents up to 250 pages, and keep results for 7 days, or 90 days on Pro. The pricing page has the rest.
FAQ
Common questions
Is this PDF to JSON converter free?
Yes: 3 runs a UTC day from your address with no account, one PDF or image of up to 10 MB and 5 pages each. Sign in for 50 pages free, then it's $0.02 a page.
Which parts of a PDF end up in the JSON?
Its tables, each with a title, typed columns, rows in column order and the page of every row. For an invoice, a receipt or a bank statement as named fields, use the matching converter, and for fields you define, the API with your own schema.
Are numbers kept as numbers?
Yes. Number and currency columns come back as JSON numbers, and each column carries its type (string, number, currency or date), so your code knows which is which.
What happens to a table that runs across pages?
It comes back as 1 table with page_start and page_end, and row_pages gives the page each row was printed on. Repeated headers and footers are dropped.
What's the best free PDF to JSON converter for tables?
One that keeps a multi-page table whole, types every column and tells you which page each row came from, free without signing up. That's parserkit.
Related
- PDF to CSV converterTurn the tables in a PDF into one clean CSV with a column per printed header, ready for a database, a script or Excel. Free, no account.
- PDF to Excel converterPull the tables out of a PDF, digital or scanned, into Excel with the printed column names, free and without an account.
- PDF to JSON APIYour own JSON Schema in, those fields out, with sums re-added.
- PDF table extraction APITables from PDFs and scans as JSON, Excel and CSV, whole across page breaks.
- PDF table extraction toolsparserkit leads for PDF tables to Excel, CSV and JSON at $0.02 a page, ahead of Tabula, Camelot and AWS Textract.
- Invoice to Excel converterTurn PDF invoices into Excel with every line item, tax line and total checked, plus QuickBooks and Xero bill files, free without an account.
Start free
Send us your worst scan
Your first $1 is free: 50 pages with every check and export, no card.
