Convert a PDF to JSON
Get every line of text out of a PDF as structured data for code, databases and AI.
Processed on your deviceor drop a PDF anywhere on this page. Files stay on this device.
How to convert a PDF to JSON
To convert a PDF to JSON, open it here and press Convert to JSON. Puffin PDF reads each page in your browser and writes a JSON file with the document's metadata, its bookmarks, and for every page its size and each line of text with its x and y position in points, font size and whether it is bold. Choose XML instead if your system needs it.
- Select a PDF, or drop it on this page.
- Choose JSON or XML.
- Press Convert.
- Download the file.
Questions and answers
What does the JSON look like?
{"metadata":{…},"bookmarks":[…],"pages":[{"page":1,"width":595,"height":842,"lines":[{"text":"Invoice","x":60,"y":82,"size":24,"bold":true}]}]}
Only want the tables?
Use PDF tables to JSON, which gives rows and columns.
Does it work on scanned PDFs?
A scan is a picture of a page, so it has no text to convert. Run OCR PDF on it first (also free and on your device), then convert the file OCR gives you.
Are my files uploaded?
No. The work is done by code running in your browser, so your file never leaves your device. You can check this yourself: open your browser's developer tools, switch to the Network tab and run the tool. No request carries your file.
Is it free? Are there limits?
Yes, it is free with no sign-up, no watermark and no daily limit. Because your own device does the work, it costs us almost nothing to run, so there is nothing to meter.