You copied a table out of a PDF. You pasted it into Excel. Every number landed in one cell.
If that sounds familiar, you're in big company. Adobe says more than 400 billion PDFs were opened in its products in the past year. Government statistics, annual reports, research papers and market studies all ship as PDFs. But PDFs were designed to look right on a page, not to hand their numbers over to a spreadsheet.
So people retype. Or they screenshot the table and paste the image into a slide (please don't). Meanwhile, data professionals in Anaconda's survey said they already spend about 38% of their time preparing and cleaning data. Wrestling with a PDF table shouldn't add to that pile.
This guide fixes it. You'll get:
- 4 ways to pull a table out of a PDF, from free to paid
- What to do when the PDF is scanned
- A walk-through using a real government PDF released this month
- 5 chart-ready datasets you can paste straight into ChartGPT
- A clean-up checklist that catches the mistakes most people miss
The quick answer
- Check the PDF type. Try to highlight a single number. If you can, the PDF is text-based. If you can't, it's a scan and needs OCR first.
- Extract the table using copy-paste (tiny tables), Excel's PDF connector, Adobe Acrobat, or Tabula/Camelot.
- Clean it: one header row, no footnote symbols, one unit, oldest period first.
- Paste it into ChartGPT, say what the chart should show, and export PNG, SVG or PDF.
Why PDF tables are so hard to chart
A PDF has no cells. It stores pieces of text and their positions on the page. The "table" you see is an illusion created by alignment and a few lines.
When you copy it, you get text in reading order. Here's one row copied straight out of the Census Bureau's latest e-commerce report:
3rd quarter 2026(p) 1,941,858 347,322 17.9 1.1 1.6 5.6 10.4
Seven numbers on one line, plus a "(p)" footnote marker glued to the label. Extraction tools rebuild the grid by reading either the gaps between text or the ruling lines between cells. The open-source tool Camelot calls these two approaches Stream (it looks for whitespace between text) and Lattice (it detects the lines and where they intersect).
Quick test: Camelot's documentation repeats Tabula's rule of thumb: if you can click and drag to select the text in your table, the PDF is text-based.
Method 1: Copy and paste (best for small, simple tables)
Good for tables under about 10 rows.
- Highlight the table in your PDF viewer and copy it.
- Paste into Excel or Google Sheets.
- If everything lands in one column, split it: Data > Text to Columns in Excel, or Data > Split text to columns in Sheets.
- Watch out for labels with spaces in them ("3rd quarter 2026"). Splitting on spaces will break them apart, so fix those cells by hand.
For a handful of rows, you can also try pasting straight into ChartGPT. It's built to cope with messy pastes such as merged headers, stray totals rows and numbers stored as text, and it asks you when something is ambiguous rather than guessing. If the columns still come out wrong, go through a spreadsheet first.
Method 2: Excel's Get Data > From PDF (best for recurring reports)
Microsoft added a PDF connector to Excel's Get & Transform tools in August 2020. You go to Data > Get Data > From File > From PDF, choose the file, and a Navigator window lists the tables and pages it found. You can load a table directly or click Transform Data to clean it in Power Query first.
Step by step:
- Open a blank workbook and go to Data > Get Data > From File > From PDF.
- Select your PDF.
- In the Navigator, click each detected table until the preview shows the rows you want.
- Click Transform Data, delete rows you don't need, promote the first row to headers, and fix data types.
- Click Close & Load.
The hidden superpower: Power Query records every cleaning step. Next quarter, point it at the new PDF, hit Refresh, and your table (and chart) updates. Microsoft documents the underlying function as Pdf.Tables.
Watch out: Office 2019 Home & Student doesn't offer this import in its interface, and Excel for Mac users have reported that the From PDF option is missing even on current Microsoft 365 builds.
Official guide: Microsoft's announcement of the Excel PDF connector
Method 3: Adobe Acrobat (best for quick one-offs and scans)
Acrobat's online PDF-to-Excel converter pulls tables into an editable Excel file, can process scanned PDFs with OCR, and works from a phone browser. Converting very large PDFs or several files at once requires an Acrobat Studio subscription.
- Online: upload at Adobe Acrobat PDF to Excel, then download the .xlsx.
- Desktop: select Convert, choose Microsoft Excel in the left pane, then pick XLSX.
Check the output. One Acrobat Pro user reported that on a scanned statement, several numbers were merged into a single cell even after running OCR. Always scan the result before charting.
Method 4: Tabula and Camelot (free and open source)
Tabula (no coding)
Tabula is a free, open-source tool made by journalists, with support from organizations including Knight-Mozilla OpenNews and the New York Times. It's MIT-licensed and was developed by Manuel Aristarán, Mike Tigas and Jeremy B. Merrill.
How to use it: launch Tabula, open localhost:8000 in your browser, import your PDF, then click Autodetect Tables or draw a box around the table yourself. Image-based PDFs won't work and return an error. You can export the selection as a CSV or Excel file.
- Download: tabula.technology
- Source code: Tabula on GitHub
Speed tip: Datawrapper recommends uploading only the pages that actually contain your tables, which helps when the tool runs slowly.
Camelot (for Python users)
Camelot now offers five parsers, including lattice for ruled tables, stream for whitespace tables, network/hybrid options, and an optional machine-learning parser for difficult borderless tables, plus an auto mode that picks one for you.
import camelot # "stream" for tables without ruling lines, "lattice" for tables with them tables = camelot.read_pdf("ec_current.pdf", pages="all", flavor="stream") print(tables[0].df) tables[0].to_csv("ecommerce.csv")
Get it: Camelot on GitHub · Camelot docs
Scanned PDF? OCR first
If you can't highlight the text, the page is an image. You have three options:
- Adobe Acrobat online, which runs OCR during conversion (see Method 3).
- Excel's Data from Picture. A Microsoft community moderator suggests copying the table as a picture and using Excel's get data from picture feature to rebuild it in a worksheet.
- Camelot's OCR add-on. Camelot offers an optional [ocr] extra for scanned files.
After OCR, spot-check the digits that machines confuse most: 1 and 7, 0 and 8, and commas versus decimal points.
Worked example: one Census PDF, three charts
Let's use a real PDF that just came out. The Census Bureau's Quarterly Retail E-Commerce Sales report, released November 19, 2026, puts seasonally adjusted US e-commerce at $347.3 billion in the third quarter of 2026, which is 17.9% of total retail sales. E-commerce grew 10.4% from a year earlier, while total retail grew 5.6%.
Source PDF: Census Bureau Quarterly Retail E-Commerce Sales (PDF)
Table 1 in that PDF has four traps that will wreck a chart if you paste it as-is:
- It mixes adjusted and unadjusted rows. For Q4 2025, the unadjusted e-commerce share is 18.9%, while the seasonally adjusted share is 17.3%. Mix them and your chart shows a fake holiday spike.
- Newest quarter comes first. Line charts need oldest on the left.
- Values are in millions of dollars. "1,941,858" is easier to read as $1,941.9 billion.
- "(p)" means preliminary. Strip it from the label, but mention it in your caption.
The number that changed: In its August release, Census reported that e-commerce made up 17.1% of retail sales in Q2 2026. The November PDF, after an annual revision, shows 17.8% for that same quarter. Always pull from the latest release, and date your charts.
Here's the cleaned data, ready to paste.
Chart 1: E-commerce share of US retail (line chart)
| Quarter | E-commerce share of total retail sales (%) |
|---|---|
| Q3 2025 | 17.1 |
| Q4 2025 | 17.3 |
| Q1 2026 | 17.7 |
| Q2 2026 | 17.8 |
| Q3 2026 | 17.9 |
Suggested title: Online's share of US retail rose every quarter, reaching 17.9%
Why a line and not bars? The values sit in a narrow range. ChartGPT always starts bars at zero because a bar's length is the value, and for a close-up on a narrow range it gives you a line chart with a labelled axis instead. Try it in the line chart maker.

Chart 2: E-commerce sales in dollars (column chart)
| Quarter | E-commerce sales ($ billion) | Total retail sales ($ billion) |
|---|---|---|
| Q3 2025 | 314.5 | 1,839.4 |
| Q4 2025 | 320.0 | 1,850.8 |
| Q1 2026 | 329.6 | 1,867.2 |
| Q2 2026 | 341.7 | 1,919.9 |
| Q3 2026 | 347.3 | 1,941.9 |
Seasonally adjusted, not adjusted for price changes. Q3 2026 is preliminary.
Suggested title: US online sales grew from $314.5B to $347.3B in a year
Use the bar chart maker. (Chart only the e-commerce column here. Putting $347B next to $1,942B squashes the bars you care about.)

Chart 3: Growth, e-commerce vs total retail (grouped bar chart)
| Quarter | E-commerce growth vs year earlier (%) | Total retail growth vs year earlier (%) |
|---|---|---|
| Q3 2025 | 5.4 | 3.6 |
| Q4 2025 | 5.0 | 2.3 |
| Q1 2026 | 8.5 | 3.0 |
| Q2 2026 | 11.2 | 5.8 |
| Q3 2026 | 10.4 | 5.6 |
Suggested title: E-commerce grew nearly twice as fast as total retail in Q3 2026
Use the grouped bar chart maker.

One PDF table, three charts, three different stories. That's the payoff of extracting the data properly instead of screenshotting it.
Worked example 2: when the numbers are buried in sentences
Some PDF reports don't put the key figures in a table at all. They state them in paragraphs. The International Energy Agency's annual Global EV Outlook is a good example. Here, "extraction" means reading carefully and building the table yourself.
Pulling the headline figures from five editions of the report:
- Electric car sales doubled in 2021 to a record 6.6 million.
- Sales passed 10 million in 2022, when 14% of new cars sold were electric, up from about 9% in 2021 and under 5% in 2020.
- Sales topped 17 million in 2024, 3.5 million more than in 2023, and that increase alone was larger than all electric car sales in 2020. That put electric cars above 20% of the global market for the first time.
- In 2025, sales rose more than 20% to about 21 million, so one in four cars sold was electric.
- The IEA expects 23 million sales in 2026, or 28% of all cars sold.
Chart 4: Global electric car sales (column chart)
| Year | Global electric car sales (million) | EV share of new car sales (%) |
|---|---|---|
| 2020 | 3.0 | 4 |
| 2021 | 6.6 | 9 |
| 2022 | 10.0 | 14 |
| 2023 | 14.0 | 18 |
| 2024 | 17.0 | 20 |
| 2025 | 21.0 | 25 |
| 2026F | 23.0 | 28 |
IEA headline figures, rounded. 2020 and 2023 are derived from IEA comparisons; 2026F is a forecast.
Pro tip: ChartGPT picks colours automatically and they can't be overridden today, so label forecasts in the category name ("2026F") and in your caption.

Chart 5: EV share of new car sales by market, 2025 (horizontal bar chart)
| Market | EV share of new car sales, 2025 (%) |
|---|---|
| Norway | 97 |
| China | 55 |
| Europe | 28 |
| European Union | 27 |
| World | 25 |
| Türkiye | 20 |
| United States | 10 |
Approximate values as stated by the IEA. Norway led with about 97% of new car sales being electric, while the EU's share came in just under 27%. Close to 55% of new cars sold in China were electric, Europe reached 28% with 4.2 million sales, and Türkiye passed 20%. The US stayed just under 10%.
Use the horizontal bar chart maker, which is designed for rankings and long labels.

The clean-up checklist (run this before you paste)
- [ ] One header row. Merge multi-line PDF headers into one clear label per column.
- [ ] No footnote markers. Remove (p), (r), *, ¹ from labels and numbers.
- [ ] One series type. Don't mix adjusted and unadjusted, or actuals and forecasts, without labelling them.
- [ ] One unit. Convert millions to billions, and put the unit in the header.
- [ ] No totals or subtotal rows, unless the total is what you're charting.
- [ ] Oldest to newest for anything over time.
- [ ] Latest release. Statistical agencies revise their numbers.
- [ ] Spot-check three numbers against the original PDF.
- [ ] Credit the source in your chart caption, with the release date.
Which chart fits your PDF table?
| Your table shows... | Use this chart | Make it in ChartGPT |
|---|---|---|
| A value over time | Line chart | Line chart maker |
| A few categories compared | Bar chart | Bar chart maker |
| A ranking or long labels | Horizontal bar | Horizontal bar maker |
| Two or three series side by side | Grouped bar | Grouped bar maker |
| Totals and what they're made of | Stacked bar | Stacked bar maker |
| Parts of one whole | Donut or pie | Donut chart maker |
| A relationship between two measures | Scatter plot | Scatter plot maker |
Not sure? If you don't name a chart type, ChartGPT chooses one from the shape of your data: time gets a line, categories get bars, and shares of a total get a donut.
Tools at a glance
| Tool | Best for | Cost | Scanned PDFs |
|---|---|---|---|
| Copy and paste | Tiny tables | Free | No |
| Excel Get Data > From PDF | Recurring reports (Windows, Microsoft 365) | Included with Microsoft 365 | Use Data from Picture |
| Adobe Acrobat PDF to Excel | Fast one-offs | Free online; subscription for large or batch files | Yes, with OCR |
| Tabula | Free point-and-click extraction | Free, open source | No |
| Camelot | Automating in Python | Free, open source | Optional OCR add-on |
| Smallpdf PDF to Excel | Browser-based conversion | Commercial | Check plan |
| ChartGPT | Turning the clean table into a chart | Free to try, no sign-up | n/a |
Stop retyping. Start charting.
PDF tables feel locked, but they're not. Pick your extraction method, run the clean-up checklist, and let the chart do the talking. Your data is already in that PDF. It just needs a way out.