DocTable

Customs declaration OCR — declarations and commercial invoices to Excel or JSON

Updated November 2026

DocTable reads customs declarations and the commercial invoices that go with them — scans, phone photos or PDFs, in English, Arabic, Persian and mixed scripts — into Excel or JSON: the declaration reference, importer, exporter and declarant, dates, and each item line with description, HS code, origin, quantity, weight and value as printed. Built for customs brokers and freight teams: up to 100 files per batch, a REST API with webhooks, and $0.035 per page at volume with no subscription. Dense forms are the hardest documents we read, so check every value before you file. Your first 3 pages are free — scan and download, no card needed. After that, $3 buys 20 pages (one-time, no subscription).

Start — upload a document

What gets extracted

Header boxes come back as label/value pairs — whatever the form prints, such as the declaration reference or MRN, declaration type, importer, exporter, declarant, tax or EORI numbers, customs office, Incoterms, currency and totals. The goods section becomes real rows: item number, description, HS or commodity code, country of origin, packages, gross and net weight, and customs value. Only what is printed is returned; empty boxes stay empty.

HS codes are copied, never classified

DocTable transcribes the code printed in the box. It does not suggest, correct or validate an HS or TARIC code and does not calculate duty — a code that is wrong on the form is wrong in the spreadsheet, which is what you want when you are checking someone else's declaration.

Known limits

Dense forms are where reading fails. In our own testing on a crowded one-page customs declaration, between 4 and 11 of its 35 values were missed, depending on the run. A blurry or low-resolution photo can also produce text that looks plausible but is wrong — a consignee name or an address. Scan at full resolution, use the arithmetic check where the form prints totals (item values against the declared total), and check every value against the form before filing.

What it does not do

It does not file declarations, connect to customs systems or check data against them. It turns the paperwork into data you can review, compare and import.

For customs brokers and freight teams

Upload up to 100 files per batch, PDFs up to 500 pages; pages of one document are grouped into one output. Automate with the REST API (asynchronous jobs with progress and an optional webhook) or the MCP server. Pricing is per page with one-time credits — $99 for 2,800 pages ($0.035 per page), and credits do not expire while DocTable is in service. Uploads are processed in memory, not kept after processing and never used for training; the export file is deleted 30 seconds after download (5 minutes at most). A Data Processing Agreement is available on request.

Frequently asked questions

Can DocTable read customs declarations?

Yes — header fields and item lines from scans, photos or PDFs, into Excel or JSON. Dense forms are the hardest case, so check every value before filing.

Does it classify or validate HS codes?

No. It copies the code printed in the box. It does not suggest, correct or validate an HS or TARIC code, and does not calculate duty.

How accurate is it on customs forms?

Less accurate than on invoices or bank statements. In our own testing on a crowded one-page customs declaration, between 4 and 11 of its 35 values were missed depending on the run. Check every value against the form.

Can it read Arabic and Persian customs documents?

Yes, with the same model as English ones. The measured misses above were on a Persian declaration, so review those with particular care.

Does it submit declarations or connect to customs systems?

No. It extracts data from documents; it does not file declarations or check data against customs systems.

Can I use it through an API?

Yes. The REST API returns JSON with fields and item tables; long PDFs run as asynchronous jobs with progress and an optional webhook.

How much does it cost?

From $0.035 per page at volume, no subscription. Your first 3 pages are free — scan and download, no card needed. After that, $3 buys 20 pages (one-time, no subscription).

Related pages