PDF to JSON
PDF to JSON writes a structured file that contains the document’s file name, page count, title, author, and, for each page, its size plus one string of extractable text. The conversion runs in your browser. It is not a complete dump of PDF objects, fonts, or content streams. Pages without a text layer appear with empty text fields.
The fields that appear in the JSON
The root object lists the original file name, total page count, and any document-level metadata that can be read (commonly title and author). Each page is an object that records its width and height in points together with a single text property.
The text property holds every extractable character from that page concatenated in roughly reading order. No separate arrays for words, lines, or bounding boxes are produced.
The JSON is pretty-printed and UTF-8 encoded so it can be opened in any text editor or parsed by a local script.
How the extraction works
The tool uses the browser’s PDF reading libraries to walk the page content streams and collect text-showing operators. Absolute coordinates and font information are used only to decide reading order; they are not written into the output.
Image-only pages, pure vector drawings, or pages whose text is rendered as paths contribute an empty string. Metadata fields that the PDF does not contain are simply omitted or set to null.
Because the entire parse happens locally, you can safely convert documents that contain personal or confidential information.
What this JSON is not
It is not a low-level PDF object dump, nor does it include embedded images, form fields, annotations, or outline entries as structured data. For those purposes use the dedicated extract tools.
Soft free-tier page or size limits may be shown on the tool page; stay inside them to avoid memory pressure in the browser. Encrypted PDFs must be unlocked first.
After download, validate a sample of pages against the source. If text is missing or jumbled, the PDF may use non-standard encodings or overlapping text that a simple extractor cannot fully resolve.
How to use this tool
- 1Open the PDF to JSON tool and check the URL.
- 2Select a PDF that contains a text layer.
- 3Start the export; processing stays in the browser.
- 4Download the .json file.
- 5Open it and inspect the document-level fields and the first few page objects.
- 6Confirm that image-only pages show empty text strings.
- 7Use the JSON in any local script or archive it alongside the original PDF.
Tips and limitations
- Exports file name, page count, title, author, page size, and one text string per page.
- Not a full PDF object dump.
- Image-only pages produce empty text fields.
- The PDF never leaves the browser.
- Unlock encrypted files before converting.