How text is stored in a PDF
A PDF is built for display, not editing. Text is positioned on each page, character by character or word by word, rather than stored as flowing paragraphs. Extraction tools read that text layer and rebuild it in reading order.
That is why extracted text sometimes needs tidying. Line breaks may appear in odd places and columns or tables can come out in a different order from what you see on the page.
Text-based PDFs versus scanned PDFs
Not every PDF has text inside it. There are two broad kinds:
- Text-based PDFs: created from a word processor, a website or a design tool. The text layer exists and can be extracted directly
- Scanned PDFs: made from photos or scanner output. Each page is just a picture, with no text layer at all
How to tell which one you have
Open the PDF and try to select a word with your cursor. If you can highlight individual words, the file has a text layer. If the whole page highlights as one block, or nothing highlights, it is a scan.
A text extractor can only return text that exists in the file. Scanned pages need optical character recognition (OCR) first, which reads the image and creates text from it.
How to extract text from a PDF in your browser
- Open the PDF to Text tool and choose your file. It is read locally and never uploaded.
- Wait for the progress indicator while the pages are processed.
- Review the extracted text for line breaks, columns and special characters.
- Copy the text or download it as a text file.
Because the work happens on your device, long documents depend on your computer's memory rather than your internet speed.
Cleaning up extracted text
- Remove repeated headers, footers and page numbers that appear on every page
- Join lines that were split in the middle of a sentence
- Check tables, since cells may come out as separate lines
- Look at hyphenated words that were broken across lines
- Compare a few paragraphs against the original PDF to confirm nothing is missing
For multi-column layouts, extracting one page at a time can make the reading order easier to follow.
When extraction returns nothing or gibberish
- Empty result: the PDF is almost certainly a scan with no text layer, so it needs OCR
- Strange symbols: the file may use a custom font encoding that does not map cleanly to normal characters
- Password protection: protected files usually need to be unlocked before the text can be read
- Text drawn as shapes: some designs convert text to outlines, which removes the underlying characters
If the PDF opens fine but extraction fails, try copying a short passage manually in a PDF viewer to confirm whether the text layer is intact.
Frequently asked questions
Can I extract text from a scanned PDF?
Not directly. A scanned PDF contains pictures of text, not text itself. You need an OCR tool to recognise the characters in the image first.
Will the layout and fonts be kept?
No. Extraction returns the text content only. Fonts, colours, images and exact positioning are not part of a plain text export.
Why is my extracted text in the wrong order?
PDFs store text by position, not by reading order. Columns, sidebars and tables can be read in a different order from what you see on the page.
Is it safe to extract text from a confidential PDF online?
It is safe when the tool works in your browser. A local extractor reads the file on your device, so the document is never uploaded.
Extract text from a PDF in seconds
No upload, no account. Your file never leaves your device.