Zero Data Retention · Direct 10 MB Binary Image Upload

Image to Excel OCR API for Automated Table Pipelines

Turn JPG, PNG, and WebP photos or screenshots of printed tables into deterministic Excel (.xlsx), UTF-8 CSV, and JSON rows in one REST call—including borderless layouts and bilingual Arabic–English sheets.

2 credits / image ($0.0116 on Pro) • 100 free images on signup • Auto-refund on errors
POST /v1/image-to-excel
curl -X POST "https://api.structocr.com/v1/image-to-excel" \
  -H "x-api-key: YOUR_API_KEY" \
  -F "file=@./price-sheet-photo.jpg"
RESPONSE 200 OK (SYNTHETIC SPECIMEN)
{
  "success": true,
  "mode": "tables",
  "document": {
    "tables": [{
      "id": "table_1",
      "title": "Pricing Schedule",
      "headers": ["SKU", "Description", "Qty", "Price"],
      "rows": [
        ["SKU-101", "Steel Bracket", "24", "$18.50"],
        ["SKU-102", "Hex Bolt Pack", "50", "$9.00"],
        ["SKU-103", "Mounting Plate", "12", "$42.00"]
      ]
    }]
  },
  "usage": { "pages_succeeded": 1, "credits_charged": 2 }
}
Vision Table Extraction Engine

Convert Any Table Image into Spreadsheet Rows Without Templates

Plain image-to-text OCR strips away column alignment and dumps broken lines into text strings. StructOCR parses visual grid structure directly into rectangular arrays ready for Excel, Google Sheets, and SQL.

Photos, Screenshots & Scans

Extract clean rows from smartphone photos of printed sheets, WhatsApp price lists, cropped screenshots, and 150+ DPI scans (JPG, PNG, WebP).

Borderless Grid Alignment

Detects whitespace-aligned columns, wrapped descriptions, and empty cells so every row matches headers.length without column drift.

Bilingual Arabic & Global UTF-8

Preserves mixed RTL Arabic and LTR English columns, European accents, and currency symbols—ready for Excel UTF-8 workbooks.

XLSX, CSV & Sheets Ready

Deterministic headers[] and rows[][] serialize in two lines to openpyxl .xlsx, Node exceljs, RFC-4180 CSV, or Google Sheets API.

Built for n8n & Low-Code

One multipart HTTP Request node plus our ready-to-import n8n template turns incoming photos into Excel files or Google Sheets rows.

Strict Zero Data Retention

In-memory execution only: zero storage bucket writes, raw_response: null in audit logs, and automatic credit refunds on failed calls.

Printed JPG pricing schedule photo converted into structured Excel (.xlsx), CSV, and JSON rows
End-to-End Pipeline

From Phone Photos & Screenshots to Production Spreadsheets

Send supplier price lists, warehouse count clipboards, financial snapshots, or bilingual Arabic–English tables via direct binary upload—or test in your browser with our free Image to Excel converter and n8n automation guide.

01

POST Binary Image

Upload a JPG, PNG, or WebP up to 10 MB via multipart/form-data to /v1/image-to-excel.

02

Vision Table Parsing

Visual layout extraction aligns bordered and borderless columns, even on phone photos.

03

Export XLSX or Sync

Write headers[] and rows[][] directly into Excel (.xlsx), UTF-8 CSV, SQL, or Google Sheets.

Deterministic Contract

Clean Rectangular Rows Ready for Excel, CSV & BI

Every row inside document.tables[].rows matches the exact column count of headers[], preventing shifted spreadsheet columns in downstream Python, Node.js, or n8n pipelines.

Detected Table Arrays
document.tables[].headers[] & rows[][]
Multi-Table Sheet Names
document.tables[].id & title (1 worksheet per table)
Document Metadata
document.summary.document_type / title / language
Optional Key-Value Fields
document.fields (returned when mode=auto)
Optional Schema Payload
custom_data (when schema field list or JSON Schema is passed)
Transparent Usage Meter
usage.pages_succeeded / credits_per_page / credits_charged

Extraction Modes

Tables Only (Default)mode="tables" (default)

Returns: document.tables[] with id, title, headers[], and rectangular rows[][] arrays

Best for: Direct Excel (.xlsx) workbook generation, CSV exports, Google Sheets sync, supplier price sheets

Tables + Header Metadatamode="auto"

Returns: document.summary, key-value document.fields, plus every detected table in document.tables[]

Best for: Photographed quotes, order forms, inventory sheets with store/date headers above the grid

Custom JSON Schemamode="json" + schema

Returns: Strict schema-locked custom_data (up to 50 fields, depth 4) with null for absent values

Best for: ERP/database ingestion where fixed column names and numeric types must be enforced

Automating in n8n?

Download our ready-to-import n8n workflow template to capture JPG/PNG uploads from forms, Gmail, or Google Drive and write extracted rows straight to Excel (.xlsx) or Google Sheets.

Read the n8n Image to Excel setup guide
Interactive Sandbox

Test Image to Excel Extraction Live

Drop a JPG, PNG, or WebP table image below to inspect the structured grid, download an .xlsx file, and copy the exact POST /v1/image-to-excel snippet.

Live Demo: Image to Excel Converter

No registration required. Try an instant sample or upload a JPG, PNG, or WebP table image up to 10 MB.

Drop a JPG, PNG, or WebP table image here, or click to browse

JPG · PNG · WebP (or scanned PDF) · max 10 MB · photos, screenshots & bilingual tables

Try instant synthetic sample:
Zero data retention · Files deleted immediately after processing · Never used for AI training
Ready for Production

Integrate in 5 Minutes with Python, Node.js, Go, PHP, C#, Java, or n8n

Full multipart examples (including direct openpyxl Excel generation and n8n Code node expansion), status codes, and zero-retention specs are documented in our API reference.

Image to Excel API Frequently Asked Questions

Ready to Build with StructOCR?

Get your API key in under a minute. New users receive 200 free credits to test Passport, VIN, License Plate, Container, Receipt, HIN, Driver License, ID Card, Vehicle Registration, Weighbridge Ticket, ATM Cassette and Invoice OCR APIs.

✓ No credit card required · ✓ Instant API key · ✓ Full API access