PDF to JSON
Convert PDF files to JSON format.
Click to select files or drag and drop
Multiple PDF files
Your files never leave your device.
How It Works
Upload File
Click or drag and drop your file to begin
Process
Click the process button to start
Download
Save your processed file instantly
Related PDF Tools
Frequently Asked Questions
What does the JSON contain?
The full object structure of the PDF as cpdf reads it: the trailer, catalog, page tree, every dictionary, and each page's content stream parsed into a list of drawing and text operators. It's a complete dump of the file, not a summary.
Is this the right tool to get the text out of a PDF as JSON?
Usually not. The text here is scattered across content stream operators in the order it was drawn, with fonts and positions but no paragraphs. For readable page text in a structured format use Prepare PDF for AI, and for plain text use PDF to Text.
Can I convert the JSON back into a PDF?
Not with SuaFontPDF. The output follows cpdf's own JSON format, which the cpdf command line tool can read back into a PDF, but the browser tool only goes in one direction.
Why is the JSON so much bigger than the PDF?
Content streams are expanded into operator arrays, binary stream data such as images is encoded as text, and every object is written out with its keys, so a JSON file several times the size of the source is normal. Large or image-heavy PDFs produce very large files.
Can I convert multiple PDFs to JSON at once?
Select as many as you like; each is converted in a background worker and the results are packaged into pdfs-to-json.zip with one .json per PDF, named after the source file. A single PDF also arrives as a ZIP.
Does it work on encrypted PDFs?
You're asked for the password before conversion starts and the decrypted copy is serialized. Without the password the object structure can't be read.
What is this useful for?
Inspecting a PDF's internals when debugging a generator, checking what a page's content stream contains, comparing two versions structurally, or feeding the object tree into a script. For document properties alone, View Metadata is quicker.
Is the PDF uploaded to produce the JSON?
No. cpdf runs as WebAssembly in a web worker in your browser, and the JSON is written and zipped on your device before download.