PDF to JSON — Free Online Tool

Extract PDF text as structured JSON with page, position and font data. PDF to JSON is a free online tool from the ToolsRift PDF Tools collection. It runs entirely in your browser — nothing to install, no signup, and your data never leaves your device.

Loading PDF to JSON

How to use PDF to JSON

Upload a PDF, choose whether to include coordinates and font sizes, and the tool returns a JSON document with one entry per page and one entry per line of text. Copy it or download a .json file.

Frequently asked questions

What does the JSON contain?

A page count, then for each page its width, height and every line of text. With coordinates enabled, each line also carries its x/y position on the page and its font size.

Why do I need coordinates?

Positions let you reconstruct layout — identify columns, headers and footers, or find the value that sits to the right of a known label. Turn them off if you only want the words.

What are the coordinate units?

PDF points, measured from the bottom-left corner of the page. There are 72 points to an inch.

Does it work on scanned PDFs?

No — a scan has no text layer to extract. OCR the document first.

More PDF Tools

PDF Table Extractor
Detect tables in a PDF and export them as CSV spreadsheets
PDF Chunker for RAG
Split PDF text into overlapping token-sized chunks for embeddings and RAG
PDF Blank Page Inserter
Insert one or more blank pages into a PDF at any position, sized to match or A4/Letter
PDF Page Reverser
Reverse the order of all pages in a PDF so the last page becomes the first
PDF Page Duplicator
Duplicate a chosen PDF page one or more times, inserting the copies right after it
PDF Rotate Page Range
Rotate only specific pages of a PDF by page number or range, leaving the rest untouched

← View all PDF Tools