PDF to JSON Converter
Extract the text, metadata and text positions of a PDF as structured JSON – for all pages or the pages you choose. Convert PDF text and metadata to JSON.
or drop your file anywhere on this page
Processed in your browser, never uploaded
How to Convert a PDF to JSON
- Add your PDF – Drop the file into the box above. Page thumbnails appear so you can see what you are converting.
- Choose the pages – Type ranges such as 1-5,8 or click the thumbnails. Leave "all" to convert every page.
- Choose the output – "Structured JSON" gives pages with their text, "Raw Text" gives only the text, and "Metadata Only" gives the document properties. Turn on text coordinates if you need the position of every text item.
- Convert and save – Click "Convert", check the result, then copy it or download the .json file.
What the JSON Contains
- Document properties – Title, author, subject, keywords, creator, producer, creation and modification date, and PDF version – when they are stored in the file.
- One entry per page – Page number, width and height in points, rotation and the extracted text.
- Text coordinates – Optionally every text item with its x and y position, width, height and font name – useful for finding fields in forms or invoices.
- OCR for scans – Scanned pages can be read with text recognition (OCR) in several languages, including Arabic, Chinese and Japanese.
When to Convert PDF to JSON
- Feeding PDF text into a script, a database or an AI tool that expects JSON.
- Pulling values such as invoice numbers or totals out of PDFs that always have the same layout, using the text coordinates.
- Checking which metadata a PDF contains before you publish it.
- Only need the text? PDF to Text gives a plain .txt file.
PDF to JSON Converter: Good to Know
- The JSON describes text, not layout: tables become separate text items, not rows and columns. For tables, use PDF to Excel.
- OCR results can contain errors, and coordinates are not available for OCR pages.
- Password-protected PDFs have to be unlocked first.
- Everything runs in your browser – your file is not uploaded to our server. For OCR, the recognition data for the chosen language is downloaded the first time.
PDF to JSON – Frequently Asked Questions
What is a PDF to JSON converter?
It reads the text and properties of a PDF and writes them in JSON, a structured text format that programs can read easily.
Can I get the position of the text?
Yes. Turn on "Include text coordinates" to get the x and y position, size and font of every text item.
Does it work with scanned PDFs?
Yes, with the OCR option. Choose the language of the document for the best results.
Can I convert only some pages?
Yes. Enter page numbers or ranges, or click the thumbnails.
Are tables converted to rows and columns?
No. Table cells are extracted as text items. Use PDF to Excel to keep a table structure.
Is my file uploaded?
No. The conversion runs in your browser, so the PDF stays on your device.
Is it free?
Yes – no sign-up and no watermark.
Related tools: JSON to PDF for the opposite direction, PDF to XML for XML output, and PDF to Excel for tables.
Not sure which format fits your goal? See Convert PDF Guide.