How to Clean Up a List Copied from a PDF
Copying a list or table out of a PDF rarely comes out clean. The specific mess is usually one of three things: extra spaces scattered through the text from justified formatting, a single table row split across two lines because a cell wrapped visually, or stray page numbers and repeated headers mixed in with your actual data. Each has a specific fix - retyping the whole thing isn't one of them.
Quick answer
Run the pasted text through a Quick Clean pass first (trims whitespace, collapses doubled spaces, removes blank lines), then filter out any short junk lines like standalone page numbers or repeated table headers. This handles the three most common PDF-copy problems without retyping anything.
Clean your pasted list now. Free, no account needed.
Open Data Cleaner →Problem 1: extra spaces between words
PDFs using justified text (both the left and right margins perfectly straight) insert extra space between words to stretch each line to the full column width. That spacing is purely visual in the original document, but it comes along when you copy the text out.
Fix: paste into the Data Cleaner and run Quick Clean, or enable Remove Extra Spaces individually - every run of multiple spaces collapses to one, regardless of how many extra spaces got inserted.
Problem 2: one row splits into two lines
PDF text extraction works from visual position on the page, not the table's real row/column structure. If a cell's content wrapped onto a second visual line in the original table (a longer product name, a multi-line address), copying it often carries that line break along as a literal new line - so one logical row becomes two lines of pasted text.
Fix: there's no fully automatic fix for this one, since detecting "this line is really a continuation of the previous row" depends on knowing your specific data's shape. The Text Fixer's Join or delete-marker options can help if the split follows a predictable pattern (for example, always splitting after a fixed number of fields) - otherwise, a manual pass on the smaller list of affected rows is usually faster than trying to force a general rule onto irregular wrapping.
Problem 3: page numbers and repeated headers mixed into the data
If you copied a multi-page table, the header row and a page number often get copied in again on every page - so your list has the real header text or a lone number appearing repeatedly in the middle of your data, not just at the top.
Fix: these junk lines are usually either very short (a bare page number) or an exact repeat of the header text. Paste into Filter Lines and use Shorter Than to catch short standalone numbers, or Exact match on the known header text, then remove all matches in one pass.
Getting a cleaner copy in the first place
- Use Adobe Acrobat Reader if you have it. It generally preserves table structure and spacing more accurately than an in-browser PDF viewer, which more often flattens multi-column layouts into one jumbled stream.
- Copy smaller sections at a time. One table or one page's worth of data preserves structure better than selecting an entire document at once.
- Check for a "Save as Text" export option. Some PDF readers can export the whole document as plain text directly, which sometimes handles structure more predictably than a manual select-and-copy.
Putting it together
- Run Quick Clean in the Data Cleaner first - trims whitespace, collapses extra spaces, removes blank lines.
- Filter out short junk lines and repeated headers in Filter Lines.
- If the list still has stray formatting - inconsistent casing, currency symbols, mixed number formats - a second pass through Data Cleaner's other presets handles the rest.
Need the full data-cleaning walkthrough?
See every Data Cleaner preset, from null values to date formats.