PDF 转 JSON

将 PDF 文件转换为 JSON 格式。

点击选择文件 或将文件拖放到此处

多个 PDF 文件

您的文件从未离开您的设备。

使用方法

1

Upload File

点击或拖放您的文件到此处

2

Process

点击处理按钮开始

3

Download

立即保存处理后的文件

相关 PDF 工具

Merge PDF

Free online merge PDF tool

Compress PDF

Free online compress PDF tool

Split PDF

Free online split PDF tool

Edit PDF

Free online edit PDF tool

Rotate PDF

Free online rotate PDF tool

常见问题

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 BentoPDF. 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.