PDF Table to SQL finds the tables inside a PDF and turns them into database-ready data. Drop a price list, product catalog or financial sheet, check the detected columns and types, then export SQL INSERT scripts for PostgreSQL, MySQL, SQLite or SQL Server, an Airtable-ready CSV, JSON, or an Airtable table schema. Everything runs in your browser, so your documents are never uploaded.
What does this tool do?
Prices, stock lists and financial statements often arrive as PDF. Copying them into Excel breaks columns, merges wrapped lines and turns numbers into text. This converter reads the position of every word on the page, finds rows and columns, repairs wrapped cells and detects data types, so the result can go straight into a database or Airtable base.
It handles multi-page tables with repeated headers, group headings such as category names, currency symbols, negative numbers in brackets, percentages and dates. For a plain spreadsheet export, use our PDF to Excel tool.
How to convert a PDF table to SQL in 4 steps
- Add your PDFDrag a PDF with tables onto the upload card, click Browse, or import it from Google Drive or Dropbox. Tables are detected in your browser.
- Check the detected tablesReview each table in the preview. Rename columns, change a data type, untick columns you do not need, or adjust the detection settings.
- Pick the formatChoose SQL (PostgreSQL, MySQL, SQLite or SQL Server), Airtable CSV, JSON or an Airtable schema, then set the options.
- Generate and downloadClick Generate, read the output, then download the file or copy it. Several CSV tables download as one ZIP.
Export formats
| Format | Output | Good for |
|---|---|---|
| SQL | CREATE TABLE and multi-row INSERT for PostgreSQL, MySQL, SQLite or SQL Server | Loading data into a database, seeds and migrations |
| Airtable CSV | UTF-8 CSV, ISO dates, plain numbers, checkboxes as "checked" | Importing into an Airtable base |
| JSON | Array of objects with typed values (numbers, booleans, dates) | APIs, scripts and NoSQL imports |
| Airtable schema | Create-table JSON with field types | Creating the table through the Airtable API |
How data types are detected
| Detected type | Examples | SQL type (PostgreSQL) |
|---|---|---|
| Integer | 557, (640,000), 1.250.000 | INTEGER or BIGINT |
| Decimal | $1,234.50, Rs. 2,500.00, 18.4% | NUMERIC(p,s) |
| Date | 12/03/2024, 2024-03-12, 12 Mar 2024 | DATE |
| Boolean | Yes / No, True / False | BOOLEAN |
| Text | 00123 (leading zeros), names, descriptions | VARCHAR(n) or TEXT |
Codes with leading zeros, such as SKUs and ZIP codes, stay as text so no digit is lost. You can override any column type in the table preview.
Limits you should know
- Text PDFs only. Scanned pages are images. Run OCR first.
- Heuristic detection. Tables are found from alignment, not drawn lines. Always check the preview before importing.
- Merged cells keep their text in the first column they cover.
- Check dates and decimals. Choose the day-first or month-first order and the number format if your data is ambiguous.
- Review before production. Run the script on a test database first.
Your data stays private
- Local processing. The PDF is read with pdf.js and the scripts are built in your browser.
- Nothing is uploaded. Read our privacy policy for details.
Tips for clean results
- Set First row manually if a table has no header or the header looks like data.
- If two columns merge, raise Column split to High. If one column splits, lower it.
- Use Group heading rows to turn category lines into a column you can filter on.
- Rename columns in the preview so your SQL column names are exactly what you want.
Related PDF tools
Frequently asked questions
Is the PDF table to SQL converter free?
Is my PDF uploaded to a server?
Which databases are supported?
How are tables detected?
Does it handle tables that continue on the next page?
How does it choose column types?
Can I import the result into Airtable?
What about numbers like 1.234,56?
Can I rename columns or exclude some?
Does it work on scanned PDFs?
Ready to move your PDF table into a database?
Drop your PDF, check the columns and download SQL, CSV or JSON in seconds.
Convert PDF now