PDF to JSON

Export a PDF's text with coordinates and sizes, its annotations and links, form field values, bookmarks and metadata as clean, structured JSON.

Hufanya kazi kwenye kivinjari chako. Faili zako hazitoki kamwe kwenye kifaa. Tazama jinsi ya kuthibitisha

…

Jinsi ya kufanya

  1. 1
    Open the PDF

    Load the document.

  2. 2
    Choose text detail

    Lines, text runs, plain text or none.

  3. 3
    Choose extras

    Annotations, form values, bookmarks and properties.

  4. 4
    Pick pages

    All pages or a range.

  5. 5
    Extract

    Press Extract JSON and check the preview.

  6. 6
    Download

    Save the .json file.

Kuhusu zana hii

Developers, data analysts and anyone feeding documents to scripts or AI tools need PDF content in a structured form, not as a blob of text. This converter reads a PDF in your browser and writes JSON with everything a program usually needs: each page's size and rotation; its text as lines or as individual text runs with x and y coordinates, font size and font family; annotations and links with their rectangles, comments, authors and URLs; the names and values of form fields; the bookmark tree with target pages; and the document properties. Coordinates are measured from the top-left of the page, as most programs expect.

Text detail levels

- **Lines**: text joined into lines with x, y and size. Best for most extraction tasks, such as finding a total on an invoice. - **Text runs**: every run of text as the PDF stores it, with width, size, font and angle. Best for layout analysis. - **Plain text**: one string per page. - **No text**: when you only need forms, links or structure.

Coordinates

Positions are in PDF points (1/72 inch) from the top-left corner, with y increasing downwards. Page width and height are included so positions can be converted to percentages.

Forms

Each field is listed with its name, type (text, check box, radio group, dropdown) and current value, which makes collecting answers from filled forms easy.

Annotations

Comments, highlights, notes and links are listed with their type, rectangle, text, author and URL or destination.

Bookmarks

The outline is exported as a nested tree with titles and page numbers.

Using the JSON

- Parse invoices and statements in Python or JavaScript. - Feed structured text to an AI model with positions, which helps it understand tables and forms. - Build search indexes or accessibility checks.

Formatting

Indented JSON is readable; compact JSON is smaller for large documents.

Privacy for AI tools

Exporting to JSON in your browser lets you inspect and trim what you send to an AI service: remove names or account numbers from the JSON before pasting it anywhere.

Reading order

Lines are listed from the top of the page down, and from left to right within a line. Multi-column layouts may interleave columns; sort by x position in your script to separate them.

Limits

Scanned pages have no text unless OCR was run. Tables are not detected as tables; use positions or a PDF to Excel tool. The JSON follows this tool's own structure, not a published schema. Nothing is uploaded.

Mfano uliotatuliwa

A 2-page supplier invoice exported with lines gives 58 text lines with coordinates; a short script picks the line containing "Total due" at y = 702 and reads 1,250.00, and the form section lists the 4 filled fields of the attached order form.

Kwa ufupi

Maswali yanayoulizwa mara kwa mara

What coordinates are used?

PDF points from the top-left corner of each page, with page width and height included.

Can I get form answers?

Yes. Every field's name, type and value is included.

Does it work on scanned PDFs?

Only if the PDF has an OCR text layer.

Are tables extracted?

Not as tables. Use line positions to rebuild them, or a PDF to Excel converter.

Can I make the file smaller?

Choose compact formatting and plain text or lines instead of text runs.

Is my PDF uploaded?

No. The JSON is built in your browser.

Bila malipo kabisaHakuna ada, hakuna usajili
Faili hubaki za faraghaKila kitu hufanya kazi kwenye kivinjari chako
Rahisi katika lugha yakoInapatikana kwa lugha nyingi