Document to Spreadsheet Converter
Extract tables from PDF, Word, and HTML documents into Excel (.xlsx) or CSV — rows and columns kept as close to the original layout as possible. Everything runs in your browser.
Drag & drop your document here
Supports .pdf, .docx, .html, .csv, .tsv, .txt — tables detected automatically
What is the Document to Spreadsheet Converter?
This free, browser-based tool extracts tabular data out of documents and rebuilds it as a real spreadsheet — an Excel .xlsx workbook or a .csv file — while keeping the rows and columns as close to the original layout as possible. Unlike a plain "PDF to text" extractor that flattens everything into one unstructured stream, this tool detects where columns and rows actually are and places each value into its own cell. It works entirely in your browser: your document is read locally and never uploaded to any server.
How to Convert a Document to a Spreadsheet
- Upload your document — drag and drop a PDF, Word (.docx), HTML, CSV, TSV, or TXT file onto the upload zone, or click "Browse File."
- Let it detect the tables — the tool analyzes the layout and reconstructs the rows and columns automatically. For PDFs it reads the position of every piece of text on the page to infer the grid.
- Adjust options if needed — for PDFs, use the column gap sensitivity slider to control how aggressively columns are split. Choose whether each page/table becomes its own sheet or everything merges into one.
- Preview the result — review the reconstructed grid in the preview, switching between sheets with the tabs.
- Download or copy — export a multi-sheet Excel
.xlsxworkbook, download the current sheet as CSV, or copy the CSV to your clipboard.
How Table Detection Works
PDF documents
PDFs do not store tables as tables — they store text at x/y coordinates on a page. This tool reads the position and width of every text fragment, groups fragments that share a vertical position into rows, and then finds the empty vertical "gutters" that run down the page between columns. Each fragment is assigned to the column its position falls into, reconstructing the grid. This whitespace-projection approach is robust for genuine tabular layouts because real column gutters stay empty across most rows. The column gap sensitivity slider controls the minimum gutter width that counts as a column break.
Word (.docx) and HTML documents
Word and HTML documents store tables explicitly as table elements. The tool reads those tables directly — including cells that span multiple columns — so the output matches the source structure exactly. Each table in the document becomes its own sheet by default.
CSV, TSV, and TXT files
Delimited text files are parsed with automatic delimiter detection (comma, tab, semicolon, or pipe) following RFC 4180 quoting rules, then handed straight to the spreadsheet export so you can turn any delimited file into a proper Excel workbook.
Common Use Cases
- Turn a PDF financial report, invoice, or bank statement into an editable Excel spreadsheet
- Pull data tables out of a Word document into rows and columns for analysis
- Extract an HTML table from a saved web page into CSV or Excel
- Convert a delimited .txt or .tsv export into a real .xlsx workbook
- Rebuild a printed price list, schedule, or roster into a sortable spreadsheet
Tips for the Best Results
- Text-based PDFs work best. If a PDF is a scanned image (no selectable text), there is no text to position — this tool cannot extract it, and you would need OCR first.
- Tune the gap sensitivity. If columns are merging together, lower the sensitivity value. If a single column is being split in two, raise it.
- Use "separate sheets" for multi-page reports where each page is a distinct table, and "merge" when one table continues across pages.
- Complex layouts with merged headers, nested tables, or heavy prose between rows may need light cleanup afterward — pair this with the CSV Cleaner.
Frequently Asked Questions
Is my document uploaded to a server?
No. All processing happens entirely in your browser using JavaScript. Your document is read locally and never leaves your device, so it is safe for confidential or proprietary files.
What file formats can I convert?
PDF (.pdf), Word (.docx), HTML (.html/.htm), and delimited text (.csv, .tsv, .txt). Older .doc files are not supported — save them as .docx first.
Will the spreadsheet look exactly like the original?
It reconstructs rows and columns as closely as the source allows. Word and HTML tables map almost exactly because the structure is explicit. PDFs are reconstructed from text positions, so clean tabular layouts convert very well, while complex or irregular layouts may need minor cleanup.
Can it handle scanned PDFs?
Not directly. Scanned PDFs are images with no selectable text. This tool works from the text layer of a PDF, so a scanned document would first need to be run through OCR to add a text layer.
Does it export real Excel files?
Yes. The Excel download is a genuine .xlsx workbook (not a renamed CSV), and multi-page or multi-table documents export as a multi-sheet workbook.