imagetodoc
Merged Cells · Embedded Merged-Cell Table Extractor · Private & Free

How to Convert Paper Tables & Invoices Without Breaking Merged Cells

Solve the #1 OCR nightmare on invoices, reimbursement forms, and purchase orders: multi-row merged headers, red stamps, and misaligned amount columns.

6 min read · Updated 2026-12-04 · 100% On-Device Rust WASM
Quick Answer · Bottom Line Up Front

Merged headers and multi-row summary blocks break plain OCR because naive parsers assume every row has the same number of vertical dividers. By deskewing the paper first, mapping column centers across the full table height, and emitting real OOXML colSpan/rowSpan definitions, you keep every item aligned with its exact price and quantity.

The 3 Formatting Traps Inside Real Paper Invoices & Forms

Academic benchmark datasets usually test clean, black-and-white uniform grids. Real office paperwork is far messier. Almost every commercial purchase order, VAT invoice, or vendor statement hits at least one of these three layout traps:

  • Hierarchical merged headers: A top banner cell like Billing Breakdown spans columns 3 through 5, while row 2 splits into Quantity, Unit Price, and Line Total. Naive converters push row 2 values into columns 1–3, misaligning the entire spreadsheet.
  • Shaded zebra stripes & colored headers: Light blue or gray header fills turn solid black under basic threshold filters, completely erasing white or dark-gray header text.
  • Ink stamps and signatures over totals: Circular red stamps frequently cross the bottom-right grand total cell. Aggressive grayscale conversion turns red ink black right on top of the digits.

Run the Local Merged-Cell Table Extractor Right Here

Embedded Tool: Merged-Cell Table Extractor 100% On-Device · Rust WASM

Drop your invoice or complex table photo (preserves merged cells)

Drag & drop JPG / PNG / WebP / iPhone HEIC or press Ctrl/⌘ V · Never leaves your browser
Try a real skewed sample:
Multi-Page Workbench ↗

Keep the filter set to Magic Cleanup (avoid harsh B&W when your form has shaded headers or red stamps). Try clicking the Invoice Table sample pill above to see how a skewed purchase order with merged headers and a red circular stamp reconstructs cleanly.

Fast 15-Second Financial Audit Before Importing to Accounting

Never trust any automated extractor blindly with money. Use this 3-point check right inside the live preview before saving:

  1. Check the bottom-right Grand Total first: Compare it directly against the cleaned scan pane on the left.
  2. Spot-check decimal alignment: Scan the numeric column in the preview to verify no comma was misread as a decimal point (e.g., 1,200 vs 1.200).
  3. Export Side-by-Side Word if submitting for approval: Switching to Word (.docx) Image + Text creates a permanent audit trail pairing the original cleaned scan with the editable table.

Common Issues Handled

  • Grouped parent headers like "Unit Cost | Qty | Tax" shifting one column left in Excel
  • Red approval stamps overlapping subtotal numbers and confusing B&W thresholding
  • Zebra-striped shaded rows dropping light-colored header text during binarization
  • Item descriptions wrapping onto two lines and creating phantom empty rows

How Local Processing Works

  1. Applies local illumination leveling (Magic mode) instead of harsh black-and-white thresholding so shaded header bars and red ink stamps stay legible.
  2. Solves 4-point perspective distortion so vertical column alignment holds true from Row 1 down to the Grand Total line.
  3. Builds a canonical cell matrix with explicit horizontal and vertical merge spans rather than guessing tabs or spaces.
  4. Lets you visually audit every single quantity and total alongside the cleaned scan before exporting to .xlsx or .docx.

Capabilities & Honest Limitations

What Works Best

  • Vendor purchase orders, packing slips, VAT invoices, and reimbursement claims
  • Shaded financial tables where Magic Cleanup preserves colored row contrast
  • Forms combining a key-value header block with an itemized line-item table below

Honest Limitations

  • Faint dot-matrix carbon-copy receipts (pink/yellow slips) often have very low contrast; photograph under bright diffuse daylight for best legibility
  • Nested sub-tables inside a single cell may flatten into multi-line text inside that cell

Frequently Asked Questions

Why should I use Magic Cleanup instead of B&W for invoices with stamps?

Magic Cleanup preserves color luminance separation so red stamps and light-gray table shading remain visually distinct from black printed digits, preventing smudged characters.

Can I paste the converted Word table into Excel or export .xlsx directly?

Both work seamlessly. Select Excel (.xlsx) Tables in the dropdown for a direct spreadsheet download, or export Word (.docx) if you need the table embedded inside a written report.

Is it safe to convert confidential vendor invoices here?

Yes. Every step — image decoding, deskewing, OCR, and .xlsx creation — runs strictly inside your browser tab with zero server transmission.