Convert PDF to Excel
Convert → Convert PDF to Excel
The Convert PDF to Excel API extracts tables and data from a PDF into an Excel file. You send the PDF as Base64 (docContent), docName, qualityType (Draft/Quality), mergeAllSheets, language, outputFormat, ocrWhenNeeded, and IsAsync. The API returns the Excel file (or 202 + Location for async). Use the tester below to try it; more details are in the sections that follow.
Try the Convert PDF to Excel API
Endpoint: POST /api/v2/ConvertPdfToExcel · Required: api-key, docContent, docName, qualityType, mergeAllSheets, language, outputFormat, ocrWhenNeeded, IsAsync
Use the form below to send your API key and PDF (Base64). Set quality, merge sheets, language, OCR, and formatting options; the response is the Excel file (or polling URL when async). No code required—fill the fields and click Send request.
Overview, parameters, and use cases
- Overview
- Parameters
- Use cases
What is Convert PDF to Excel?
This endpoint converts a PDF into an Excel spreadsheet, extracting tables and data. You provide the PDF (Base64), docName, qualityType (Draft/Quality), mergeAllSheets (combine sheets or keep separate), language (for OCR), outputFormat (preserve formatting), ocrWhenNeeded, and IsAsync. The API returns the Excel file or a Location URL for async.
Key features
- Tables and data – Extracts tables, text, and structured data from PDF.
- Quality – Draft (faster) or Quality (better accuracy).
- OCR – ocrWhenNeeded and language for scanned PDFs.
- Async – IsAsync returns 202 with Location URL for polling.
Use when you need PDF tables or data in Excel. For PDF to Word use Convert PDF to Word; for JSON to Excel use Convert JSON to Excel.
API parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| api-key | string | Yes | Your PDF4me API key, Base64 encoded. Get it from the dashboard. |
| docContent | base64 | Yes | PDF file content (Base64). |
| docName | string | Yes | Name of the source PDF. |
| qualityType | string | Yes | Draft or Quality. |
| mergeAllSheets | boolean | Yes | Combine all sheets into one (True) or separate (False). |
| language | string | Yes | OCR language (e.g. English). |
| outputFormat | boolean | Yes | Preserve original formatting when possible. |
| ocrWhenNeeded | boolean | Yes | Use OCR for scanned PDFs. |
| IsAsync | boolean | Yes | Enable asynchronous processing. |
When to use Convert PDF to Excel
- Reports – Convert financial reports or data tables from PDF to Excel.
- Structured data – Extract tabular data from PDFs for analysis or editing.
- Scanned PDFs – Use OCR to convert scanned tables to Excel.
For request/response schemas and code samples, see Convert PDF to Excel in the PDF4me API docs.
Prerequisites
Before using this endpoint, make sure you have:
- A valid PDF4me API key (Get your API Key)
- A PDF document in Base64 format
Response Format
The API returns an Excel file:
- Status 200: PDF to Excel conversion completed immediately - binary Excel file content in response body
- Status 202: Request accepted and processing asynchronously - use the Location header URL to poll for results
For asynchronous requests, poll the Location URL until status 200 is returned with the Excel file.