Convert PDF to JSON
Extract the text of a PDF as JSON: page sizes, lines or words with their x/y positions, fonts and sizes.
About PDF to JSON
Developers, data analysts and automation builders often need what's on a PDF page and where it is: to pull a total from a fixed spot on an invoice, find form labels, train a model, or check a generated report. This tool reads the PDF on your device and writes structured JSON: the document's title, author and page count, then each page's size, its full text, and either each line or each piece of text with its position (in points from the top-left corner), width, height, font name, bold and italic flags and font size. Because nothing is uploaded, it's safe to use on invoices and statements. Scanned PDFs have no text to extract; run OCR PDF first.
What people use it for
- Find where totals and dates sit on invoices to automate data entry
- Feed PDF text with layout into a script, n8n flow or AI tool
- Test that a generated PDF report contains the right values
- Study how a PDF stores its text (fonts and positions)
How to convert PDF to JSON
- Choose a PDF.
- Pick the detail: lines, every piece of text, or just the text per page.
- Click Convert to JSON.
Questions
Are my files uploaded anywhere?
No. Your files are processed inside your browser and never uploaded. There's no server that receives them, no account and no watermark.
Is it safe to use for confidential files?
Yes. PDF to JSON runs on your own device, so bank statements, contracts and IDs are never sent to a server where they could be stored, read or leaked.
What units are the positions in?
Points (1/72 of an inch), measured from the top-left corner of the page as you see it. x and y are the top-left of each line or piece of text.
Why are some words split into pieces?
PDFs store text in chunks that don't always match whole words. Choose Lines for joined-up text per line, or Every piece for the raw chunks with exact positions.
Does it work on scanned PDFs?
Scans are pictures with no text inside, so the JSON will only have page sizes. Run OCR PDF first to add a text layer, then convert that.
Does it work without internet?
Yes. Once this page has loaded you can switch off Wi-Fi or mobile data and keep using it. Tools you've opened before load even with no connection, and you can install the site as an app from your browser menu.