Loading…

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
PDF 2-Up (2 Pages Per Sheet)
Place two PDF pages side by side on each sheet to save paper when printing
PDF 4-Up (4 Pages Per Sheet)
Arrange four PDF pages in a 2x2 grid on each sheet for compact handouts
PDF Page Resizer
Resize every PDF page to a standard A4 or Letter size, scaling content to fit
PDF Metadata Remover
Strip title, author, subject, keywords and producer metadata from a PDF for privacy
PDF Viewer
View and preview PDF files directly in your browser with zoom and page navigation controls
PDF Page Counter
Quickly count the number of pages in any PDF document without opening it

← View all PDF ToolsBrowse all 1,100+ tools →