Skip to content

PDF to JSON

Extract text, positions, metadata and bookmarks from a PDF as JSON — free, private, in your browser.

Drop a PDF here

We read its text layer in your browser and turn it into JSON.

Files never leave your deviceMultiple filesUp to 2 GB

Reads the text already inside the PDF. No OCR — scanned pages (images of text) come out empty.

Need the reverse? Turn JSON data into a formatted document with JSON to PDF. Password-protected file? Unlock PDF first.

Advertisement

Getting the text out of a PDF and into a program usually means copy-pasting page by page or sending the file to a conversion service. This converter reads the PDF’s own text layer with pdf.js inside your browser tab and writes it out as JSON. Simple mode gives you each page as a list of text lines, ready for search indexes, scripts, or an LLM prompt. Detailed mode keeps every text run with its x/y position and font size, so you can rebuild layouts, find headings by size, or pull values from fixed positions on a form. Document metadata (title, author, dates) and the bookmark outline with page numbers are included in both modes. The file is never uploaded. One honest limit: there is no OCR, so scanned PDFs that are only images of text produce empty pages.

How to convert a PDF to JSON (text, positions, metadata)

  1. 1Drop a PDF into the box or tap to choose one from your device.
  2. 2Wait while the text layer is read page by page in your browser.
  3. 3Pick Simple (pages as text lines) or Detailed (text items with x/y positions and font sizes).
  4. 4Preview the JSON, then click Download JSON or copy it to your clipboard.

Export PDF text and metadata as JSON

Extract PDF text as JSON

Simple mode emits each page as a list of text lines for search indexes, scripts, or prompts. There is no OCR — scanned pages that are only images come out empty.

Export PDF text positions and metadata

Detailed mode records x/y positions and font sizes per text run, plus document metadata and the bookmark outline. Positions help locate fixed fields but are not reliable table extraction — multi-column layouts can merge lines.

Use cases

  • Feed PDF text into a script, database, or search index as structured JSON.
  • Prepare a report or paper as page-by-page text for an AI or LLM prompt.
  • Locate headings or fixed-position fields on forms using font size and coordinates.
  • Export a PDF’s bookmarks and metadata for cataloguing or QA checks.

Technical details

  • Coordinates are in PDF points (1/72 inch) with the origin at the top-left of the page; y is the text baseline.
  • Lines are rebuilt from text positions, so multi-column layouts can merge side-by-side columns into one line.
  • No OCR: scanned or image-only pages have no text layer and appear with empty lines.
  • Password-protected PDFs must be unlocked first.

Processing on your device

Supported file processing happens in your browser without a document upload for processing.

Free access

No paywall, no premium tier, no hidden fees.

Check the result

Keep the original and inspect the output before using or sharing it.

No Watermarks

No sign-up, no branding, no watermark on your output.

Frequently asked questions

Do these tools work offline?

Once the page has loaded, most tools run entirely in your browser without an internet connection. Your files and data never leave your device.

Does this upload my file?

No. Your file stays on your device the whole time. LoveMyFile runs entirely in your browser, so nothing is uploaded to a server, queued in the cloud, or copied off your computer.

Is this free?

Yes. Every tool is free and unlimited — no account, no paywall, and no daily caps. Because the work happens locally in your browser, there are no per-file or per-page charges.

Does it work offline?

Yes. Once the page has loaded, the tools run entirely in your browser, so you can disconnect from the internet and keep working. AI-powered tools download a small model on first use and then also run offline.

Related tools

Advertisement