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.
Se ejecuta en tu navegador. Tus archivos nunca salen de tu dispositivo. Cómo comprobarlo
…
Cómo hacerlo
- 1Open the PDF
Load the document.
- 2Choose text detail
Lines, text runs, plain text or none.
- 3Choose extras
Annotations, form values, bookmarks and properties.
- 4Pick pages
All pages or a range.
- 5Extract
Press Extract JSON and check the preview.
- 6Download
Save the .json file.
Sobre esta herramienta
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.
Ejemplo práctico
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.
Datos rápidos
- Categoría: Convertir desde PDF
- Funciona en tu navegador, sin registro y sin subir nada.
- Lo que introduces se queda en tu dispositivo.
- Disponible en inglés.
- Contenido revisado por última vez:
- Fuente oficial: ECMA-404 The JSON Data Interchange Syntax
Preguntas frecuentes
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.
