Does PDF to Text Keep Formatting? We Tested 5 PDFs

Words, accents and reading order came through. Line breaks, tables, hyphens and scanned pages didn't. Here's what we found and how to fix each one.

· 6 min read

An open silver laptop on a wooden desk beside a blank sheet of white paper and a wooden pen holder
Photo by markusspiske on Pixabay (Pixabay Content License)

Mostly the words, not the formatting. We ran five test PDFs through Pocklit's PDF to Text tool. From the four that contained real text, 907 of 909 words came out in the right reading order, even from two- and three-column layouts, along with 56 of 57 accents, quotes, dashes and symbols. What didn't survive: line and paragraph breaks, table columns, and two words split by a hyphen at the end of a line. The scanned page gave no text at all.

We tested: PDF to text: what survives. 1. Words come through: 907 of 909, in reading order. 2. Accents and symbols too: 56 of 57: é, curly quotes, em dash, ½, °C. 3. Line breaks don't: each page comes out as one line. 4. Scans have no text: they need OCR first.
What we found, at a glance.

What came through

All five PDFs were made from the same short, made-up garden report, laid out five ways: a plain two-page document saved from Chrome, a two-column newsletter, a LibreOffice report with real footnotes and a table, a justified three-column page with hyphenated line ends, and a scanned page. The full method is at the end.

Bar chart of what survived Pocklit's PDF to Text in our test: words in reading order 99.8% (907 of 909), accents, quotes, dashes and symbols 98.2% (56 of 57), table rows in order 100% (15 of 15), line and paragraph breaks 0% (0 of 49), words split by a line-end hyphen rejoined 0% (0 of 2), words on the scanned page 0% (0 of 156).
The words survive; the layout doesn't.

Reading order held up in every layout we tried. In the newsletter and the three-column page, the text came out one column at a time, top to bottom, the way you'd read it. That's because the programs that made these PDFs stored each column's text in order. The order you get follows the order the text is stored in the file, so a PDF made another way can come out differently.

Accents and symbols came through as written: café, naïve, curly quotes, em dashes, ½, 38 °C and $1,240. The one miss was a time range, 9:00–12:00, that wrapped onto a new line right after the dash in the newsletter. It came out as "9:00– 12:00", with a space after the dash.

What didn't: breaks, tables, hyphens and page numbers

  • Line and paragraph breaks. PDF to Text puts each page's text on a single line under a "Page 1" heading. None of the 49 breaks between headings, paragraphs, list items, table rows and notes survived. Bullets came out only where the document had typed them as characters (the LibreOffice report); in the two Chrome PDFs they vanished.
  • Tables. All 15 rows of our three tables came out complete and in order, but only single spaces separate the cells. "A2 Runner beans 17.0 9" gives no sign of where "Runner beans" ends and the next column begins.
  • Hyphens at line ends. When a word is split with a hyphen at the end of a line, the hyphen is part of the PDF's text. Both cases on our typeset page stayed split: "com- pared" and "Wednes- day".
  • Headers, page numbers and footnotes. The running header and page numbers ended up in the text: at the end of each page for the Chrome PDFs, and with the header first for the LibreOffice report. Footnote numbers turned into ordinary numbers after the word, as in "wheelchairs 2", and the notes followed the page's last paragraph.
Top: part of the two-column newsletter PDF, with a four-column harvest table, a paragraph with footnote 2 after the word wheelchairs, and two footnotes. Bottom: the text PDF to Text extracted from it, all on one line. The table cells run together separated by spaces, the footnote number appears as wheelchairs 2, the notes follow the paragraph, and the page header and Page 1 of 1 come last.
Highlighted: the table, a footnote number, and the page header and number, all run into one line of text.

Why a scanned PDF gives you no text

A scanned page is a photo of a page. You can see letters in the picture, but there's no text stored behind it, so there's nothing to extract. Our scanned test page came back as "(No selectable text found on this page.)"

That's also the usual answer to "why can I copy text from some PDFs and not others?" A PDF made from a document stores its text, so you can select single words and copy them. If you can't select single words on a page, it's probably a scan. A PDF can also carry a setting that asks viewers to block copying, which some viewers follow.

To get text from a scan, you need OCR (optical character recognition) first, and PDF to Text doesn't do OCR. One free option is Google Drive: right-click the PDF in Drive and choose Open with, then Google Docs. Google's help page says files should be 2 MB or smaller, and that lists, tables, columns and footnotes probably won't be recognized. Unlike PDF to Text, which works in your browser, this means uploading the file to Google.

How to fix each problem

ProblemFix
No paragraph breaksAdd them back where you need them. For a long document, extract a few pages at a time with the Pages box (for example 3-5), so you work in smaller pieces.
Text copied from a PDF viewer breaks at the end of every linePaste it into the Whitespace Cleaner and tick "Remove all line breaks".
Words split by a hyphen, like "com- pared"Search for a hyphen followed by a space to find them. When the same word repeats, fix every copy at once with Find and Replace.
A header in the middle of the textIt's the same on every page, so one Find and Replace with an empty "Replace with" box removes it everywhere.
Page numbers and footnote numbersDelete them by hand. Page numbers change from page to page, and footnote numbers sit right after the word they belonged to.
A table in one long lineFor a short table, rebuild the columns from the rows, which stay in order. For a long one, ask the sender for the original spreadsheet or document.
A scanned pageRun OCR first, as above.

Before you fix anything by hand, extract only the pages you need. Typing 2 or 4-6 in the Pages box gives you a shorter file to clean up.

A bug our test caught

Our first run found a problem in PDF to Text itself. In the justified newsletter, seven words containing the letter pairs fi, fl and ff came out broken, such as "fi nally", "fl owers" and "o ff icial". The PDF stored those letters as separate pieces, and the tool put a space between every piece. On November 20 we changed it to add a space only at a line end or across a visible gap. That fixed all seven words and left the text from the other test PDFs unchanged. The results above are from the fixed version.

How we tested

We wrote a made-up report of about 240 words with paragraphs, a bulleted list, a four-column table, two footnotes and characters that often cause trouble (é, ï, curly quotes, dashes, ½, °C, and letter pairs like fi and fl that fonts often join into one shape). From it we made five PDFs: a two-page document saved as PDF from Chrome; a justified two-column version, also from Chrome; a report exported from LibreOffice Writer 24.2 with real footnotes and page numbers; a justified three-column page set line by line with the reportlab library, with two hyphenated line ends; and a scan, made by turning page one into a slightly tilted, grainy picture with no text behind it. On November 20, 2026, each file went through PDF to Text in Chromium, choosing the file and clicking Extract text as a visitor would.

We compared words with punctuation and capital letters removed, and counted a word as in reading order when it appeared in the same sequence as the original. The limits: one short document, PDFs made digitally rather than paper run through a real scanner, and one tool. Other converters, and PDFs made by other programs, can give different results; some converters keep line breaks, for example.

Frequently asked questions

Does PDF to text keep formatting?

No. In our test the words came through almost perfectly (907 of 909, in reading order), but line and paragraph breaks, table columns and the page layout did not. Pocklit's PDF to Text puts each page's text on one line.

Why can I copy text from some PDFs and not others?

A PDF made from a document stores its text, so you can select and copy it. A scanned PDF is a picture of a page with no text stored behind it, so there is nothing to copy until you run OCR on it.

How do I get text out of a scanned PDF?

Run OCR (optical character recognition) first. One free option is Google Drive: right-click the PDF and choose Open with, then Google Docs. Google says files should be 2 MB or smaller and that tables, columns and footnotes probably won't be recognized.

Why does text from a PDF have broken words like "com- pared"?

The word was split with a hyphen at the end of a line, and that hyphen is part of the PDF's text. Search for a hyphen followed by a space to find these words and join them back up.