Files are processed in your browser, not uploaded. Privacy →
Skip to guide

Extract text

How to extract selectable text from a PDF without OCR

By DeckleUpdated

To extract selectable text from a PDF without OCR, open PDF to text, choose your PDF and choose Extract text. Deckle copies the characters the PDF already stores into a UTF-8 TXT file, with nothing guessed from images. That makes it faster and more faithful than OCR whenever the PDF was created digitally, but it cannot read a scan. Your original PDF is not changed.

PDF to text

Pages become plain text

Selected PDF pages

Order chosen in the review

UTF-8 text

Words without page formatting

Page boundary: U+000C or a blank line

Conceptual illustration · page separators retain boundaries, not columns, fonts or table geometry.

How to extract selectable text with Deckle

  1. Open a page of the PDF in any viewer and drag across a sentence. If the words highlight individually, the page has selectable text.
  2. Open PDF to text and choose the PDF, or drop it onto the page.
  3. Under Pages and order, keep All pages, or choose Choose pages and type the pages you tested, such as 1-3.
  4. Under Between pages, keep Mark where each page ended unless you want one flowing document.
  5. Choose Extract text.
  6. Open the TXT file and compare a sentence with the same sentence in the PDF, including any accented letters or numbers.

If the Verified: line on the result screen reports a high share of selectable text kept, the file holds what the PDF stores. If it says there was no selectable text to compare, the pages are images and OCR is the next step.

Selectable text or OCR: how to tell

There are two ways text gets into a PDF. Software that creates the document (Word, a browser's print to PDF, an invoicing system) writes the actual characters into the file. A scanner or camera writes a picture of the page; the only way to get words out of that is OCR, which recognises letter shapes and adds a hidden text layer.

Sign Selectable text Image only
Dragging across a line Highlights words Draws a box or does nothing
Search in the viewer Finds words Finds nothing
Zooming right in Letters stay sharp Letters turn blocky or blurred
Where it came from Exported from software Scanner, phone camera, fax

A file can be both. A contract might have typed pages followed by a scanned signature page, or a report might include scanned appendices. Test a page from each part of the document, not just the first one. Why is text missing from some pages deals with exactly that case.

Why skip OCR when the text is already there

OCR reads shapes, so it can misread rn as m, 0 as O or a decimal point as a comma. Direct extraction has no recognition step, so a correctly built PDF gives you exactly the characters its author typed. It is also quicker, because there are no images to analyse.

OCR on a page that already has text gains nothing: at best it recognises the same words again, and at worst it adds misreadings. Use OCR only for pages that are images. Native PDF text vs OCR text explains the difference between the two layers.

When selectable text still comes out wrong

Selectable does not always mean clean. Three things can go wrong even without OCR:

  • Reading order. Text is exported in the order the PDF stores it. Columns, sidebars and text boxes can come out interleaved. See why extracted text is in the wrong order.
  • Character mapping. Some PDFs use fonts that do not say which letter each shape represents. The page looks right, but the extracted text shows symbols or nonsense. See why extracted PDF text shows garbled characters.
  • Old OCR layers. A scan that was processed with OCR years ago may have selectable text full of recognition mistakes. Extraction copies those mistakes faithfully.

Tips

  • Test the page that matters most. If you need a table on page 14, select text on page 14, not on the cover.
  • Search the PDF for an unusual word. If your viewer's search finds it, the text is selectable and PDF to text will export it.
  • Keep the PDF alongside the TXT file. The text is easier to search and reuse; the PDF is the record of what the page looked like.
  • Unlock a protected PDF first. If the button says the PDF is locked, use Unlock PDF with the password and extract from the unlocked copy.

Frequently asked questions

Does PDF to text use OCR?

No. It reads the text the PDF already contains. Pages that are only images give no text.

How do I know if my PDF needs OCR?

Try to select a sentence in a viewer, or search for a word you can see. If neither works, the page is an image and needs OCR.

Can extraction change my PDF?

No. Deckle reads the PDF and writes a separate TXT file. The PDF stays exactly as it was.

Will the text keep its formatting?

No. A TXT file stores characters and line breaks. Headings, bold, columns and tables need tidying after you paste the text elsewhere.

  • PDF to text to export selectable text to a TXT file
  • Unlock PDF to remove a password you know before extracting
  • Split PDF to separate typed pages from scanned ones

Sources