Free Online Tool

PDF to JSON

Get the content of a PDF as structured JSON: the text of every page, each line with its position and size, and the document's details. Ready for scripts, databases and data pipelines.

PDF to JSON

Add · Choose detail · Convert

How to convert a PDF to JSON

  1. Add your PDF

    Drop the file onto the tool or click Choose files.

  2. Choose the detail

    Pages only, lines with positions, or every text piece.

  3. Download

    Press Convert to JSON and download.

Why use it

What this free tool does

Clean structure

pages → text, lines, items.

Positions

x, y and size of each line, in points from the top left.

Bold flag

Lines in bold are marked.

Details

Title, author and dates.

Readable or compact

Indented or minified.

Private

Nothing is uploaded.

What's in the JSON?

The file has the name, page count and details, then a "pages" list. Each page has its number, width, height and full text, plus optionally "lines" and "items" with coordinates.

Coordinates are in PDF points (1/72 inch) measured from the top left corner, which makes it easy to find text in a given area of the page, like a total on an invoice.

Tip: Pulling the same field from many invoices? Use the line positions to find text near a label.

Your files stay on your device

Most online PDF sites upload your documents to their servers. Aleynray Ai does the work inside your browser instead, on your own computer or phone.

Nothing is sent anywhere, so contracts, bank statements, IDs and medical forms stay private, and there is no waiting for uploads.

  • Free, with no sign-up or limits
  • No watermark
  • Files never leave your device
  • Opens password-protected PDFs
  • Works on desktop and mobile

Frequently asked questions

Does it include images?

No, only text and details.

Is it valid JSON?

Yes, UTF-8 and standard JSON.

Scanned PDFs?

Run OCR PDF first so there is text to read.

Is it free?

Yes. There is no sign-up, no limit on files and no watermark.

Are my files uploaded?

No. The tool runs inside your web browser and works on the file on your own device. Nothing is sent to a server, so private documents stay private.

More free PDF tools