# Import PDF data into Google Sheets

Learn how to import tables and text from PDF files into Google Sheets. Use copy, paste, Google Drive preview, or OCR for scanned pages.

Importing PDF data into Google Sheets means moving rows, columns, or text from a PDF file into a spreadsheet you can sort and edit. You can often copy a table straight from a PDF and paste it into a sheet. For scanned pages, an OCR tool can turn the image into text first. 

- Copy a table from a PDF and paste it into a cell to split rows and columns.
- Use the Google Drive PDF preview to select and copy tabular data.
- Scanned PDFs need OCR before the text can be imported.
- Clean the pasted data if blank rows or merged cells appear.
- Watch for header rows that paste into the wrong column.
 

## What PDF Data Import Means 

PDF data import is the act of moving the contents of a PDF file into a spreadsheet. The goal is to get numbers and labels into cells where you can filter and sort them. The process depends on how the PDF was made. 

A PDF made from a word processor or spreadsheet stores text as text. You can often select that text and copy it. A scanned document stores only pictures of the pages. An OCR tool can read those pictures and produce text. 

Your first step is to know which kind of PDF you have. Open the file in a PDF reader and try to select a sentence. If the cursor highlights individual words, the file has a text layer. If it draws a box around a whole page, the file is scanned. 

## Copy a Table Directly from a PDF 

Many PDFs have tables where each row is one line of text or a set of cells. You can copy the table and paste it into a spreadsheet. The pasted data often fills one cell per PDF row. 

Click the first cell of the table in the PDF and drag to the last cell. Press Control C on Windows or Command C on a Mac. In Google Sheets, click one cell and press Control V or Command V. 

Google Sheets may paste everything into the first cell. If that happens, click the paste icon and choose 'Split text to columns'. Then pick the separator that the PDF used, such as a comma, a tab, or a space. 

- Click a cell in the PDF and copy the table.
- Click one cell in Google Sheets and paste.
- Choose Split text to columns if rows do not split.
- Pick the separator that matches the PDF layout.
- Delete any extra rows that held page numbers.
 

## Use Google Drive PDF Preview 

Google Drive can open a PDF file in a preview mode that keeps its layout. The preview lets you select text from tables without another PDF tool. This is useful when your PDF is stored in Drive. 

Right click the PDF file in Google Drive and choose Open with, then Google Docs. Google Docs converts the PDF into an editable document. You can then copy the table and paste it into a sheet. 

The conversion may take a minute and may not match the original PDF line for line. Check that the rows and columns kept their alignment. Move any headers that shifted into wrong cells. 
| Step | Action | Result | 
| 1 | Open the PDF in Google Drive | Preview shows the file | 
| 2 | Click Open with Google Docs | Text becomes editable | 
| 3 | Select and copy the table | Data is ready to paste | 
| 4 | Paste into Google Sheets | Sheet fills with rows | 
| 5 | Clean up alignment | Data matches the PDF |  

## Import Scanned PDF Pages with OCR 

A scanned PDF is a set of pictures. To import its data into Google Sheets, you need OCR or optical character recognition. OCR software reads the letters in the images and turns them into text. 

Google Drive can run OCR on a scanned PDF file. Upload the PDF to Drive, right click it, and choose Open with, then Google Docs. The tool will present editable text below the original page image. 

The OCR text may include errors, especially with numbers or small fonts. Compare the text against the PDF and correct any wrong characters. Then copy the data into Google Sheets. 

- Scan the pages at a clear resolution before importing.
- Upload the scanned PDF to Google Drive.
- Open the file with Google Docs to run OCR.
- Compare the text with the original page images.
- Copy the corrected data into Google Sheets.
 

## Handle Tables That Split into Many Rows 

Some PDF tables use one line per PDF row. When you paste that data, each line becomes a row in the sheet. The columns may end up in one cell with spaces between them. 

Spreadsheet import works by splitting each pasted line at a separator. In Google Sheets, select the pasted column and use Data then Split text to columns. Choose a custom separator if the PDF used commas or tabs. 

Another method is to copy each column from the PDF separately. Paste one column, then paste the next column beside it. This gives you control but takes more time for wide tables. 
| Method | Best for | Drawback | 
| Copy whole table | Small tables | One cell per PDF row | 
| Split text to columns | Regular separators | Fails with spaces | 
| Copy each column | Complex layouts | Needs many pastes | 
| Open with Google Docs | PDFs in Drive | May shift formatting | 
| OCR then copy | Scanned files | May have errors |  

## Clean Up Pasted PDF Data 

Pasted data from a PDF often brings extra spaces, blank rows, or stray page numbers. Cleaning these by hand can prevent wrong totals later. A few minutes of checking makes the sheet reliable. 

First remove completely empty rows that came from gaps in the PDF. Next find the header row and make sure each column label matches its data. Merge or delete cells that repeated every page. 

If numeric columns pasted as text, use the VALUE function or multiply by 1 to convert them. For leading spaces, use the TRIM function on a helper column. Then copy the helper column and paste as values. 

## Bring PDF Data into an Existing Sheet 

You can add PDF data to a sheet that already holds other information. Paste the new rows below or beside the existing ones. Keep the same column order for easy sorting. 

If the PDF table has a different column order, insert a blank row and move the pasted cells. Use the freeze header row option so the labels stay visible while you scroll. Then check that filters include the new rows. 

For repeated imports from the same kind of PDF, save a template sheet with the right columns. After each paste, use Data cleanup then Remove duplicates to catch rows you copied twice. 

## Keep Headers Aligned After Import 

A common trouble is a header row that pastes into the wrong column. This happens when the PDF uses multi-line headers or merged cells. Fix the header before you work with the data. 

Click on the header cell and type the correct label. If a header spans two columns, repeat the label in both cells. Then select the full header row and use the bold and fill options to make it stand out. 

You can also use the TRANSPOSE function if the PDF put headers down the first column. Select the data, copy it, and paste special with transpose. This swaps rows and columns so headers go across the top. 

## PDF to Google Sheets Questions 

### How do I import a PDF table into Google Sheets without retyping? 

Yes, you can copy a table from a PDF and paste it into Google Sheets. If the data lands in one cell, use Split text to columns and choose the separator. You can also open the PDF with Google Docs to copy the table. 

### Can Google Sheets import data from a scanned PDF? 

Yes, but a scanned PDF needs OCR first. Upload the scanned file to Google Drive and open it with Google Docs to get editable text. Then copy the text into Google Sheets and check for OCR errors. 

### How do I get data from a PDF into Google Sheets using Google Drive? 

You can use the Google Drive PDF preview. Right click the PDF in Drive and choose Open with, then Google Docs. The document shows the text in an editable form that you can copy and paste into a sheet. 

### Why does my pasted PDF data appear in one column? 

That happens when Google Sheets does not know where to split rows. Select the column and choose Data then Split text to columns. Pick the separator that the PDF used, such as a comma or a space. 

### What is the easiest way to get a PDF table into a spreadsheet? 

The easiest way depends on the PDF. For a small text-based table, copy and paste works in minutes. For a large or scanned table, uploading to Google Drive and opening with Google Docs is often faster. 

### How do I convert a PDF to a Google Sheet without losing formatting? 

You cannot convert a PDF directly to a Google Sheet with perfect formatting. The closest method is to open the PDF in Google Docs, copy the table, and then adjust alignment and headers in the sheet.
