Skip to content

Convert PDF to JSON online

Runs in your browser — this file is never uploaded

Pull a PDF's text out as structured JSON — one entry per page, each holding that page's lines — for feeding into a script, a database, or anything that wants the pages kept apart rather than joined into one file.

This is the same text extraction as PDF to Text, reshaped: instead of one plain file with every page run together, you get an array your own code can loop over, filter, or search page by page.

Your file never leaves your device. Extraction runs entirely in your browser, so nothing is uploaded, stored, or scanned.

or drop them here — nothing is uploaded

How to pdf to json

  1. Add your PDF

    Drop one PDF into the box, or click to browse.

  2. Extract and download

    Press PDF to JSON. A .json file downloads with page count and each page's lines.

Frequently asked questions

Is my file uploaded anywhere?

No. Extraction runs in your browser using JavaScript, so your file stays on your device. You can confirm this by opening your browser devtools Network tab while working — there are no upload requests.

What does the JSON look like?

A top-level object with the file name, the page count, and a `pages` array — each entry has a `page` number and a `lines` array of strings, one per reconstructed line on that page.

Why did I get pages with an empty lines array?

That page has no selectable text layer — usually because the PDF, or that specific page, is a scan: a picture of a page rather than real text. This tool extracts existing text; it cannot read text out of an image.

Does this preserve tables or columns as structured data?

No — each page's content becomes a flat list of lines, reconstructed from character position on the page. A table's rows and columns are not recognised as such; they come through as whatever lines happen to fall out of the layout.

Is there a plain-text version instead?

Yes — PDF to Text gives you the same extraction as one plain .txt file, in reading order.

Can this convert a password-protected PDF?

Not directly — unlock it first, using a password you know.