Home › PDF Tools › PDF to Text Converter

PDF to Text Converter

Drop a PDF and get its text back as plain, editable text, page by page. Copy a single page, copy everything or save it as a .txt file, all inside your browser.

Last updated:

Pages–
Words–
Characters–

Pages

Each page will be listed here with its own Copy button.

Advertisement
Advertisement

How to use the PDF to Text Converter

  1. Choose a PDF by dropping it into the box or clicking to browse.
  2. Optionally set a page range and choose whether to add page markers or join hyphenated words.
  3. Press Extract text. Each page appears in its own panel and the combined text fills the big box.
  4. Copy or download: copy one page, copy everything, or download the whole text as a .txt file.

What text can be extracted from a PDF?

A PDF can hold its words in two very different ways, and that decides what this converter can do:

PDF typeHow it was madeText extraction
Digital (text) PDFExported from Word, Google Docs, a browser or an invoicing appWorks: the exact characters are stored in the file
Searchable scanScanned, then processed with OCRWorks: the hidden OCR text layer is read
Image-only scanScanner or phone camera, no OCRNo text: the page is a picture of letters
MixedDigital pages with inserted scansText pages work, scanned pages come out empty

A quick test: open the PDF in any viewer and try to select a word with the mouse. If you can highlight it, this tool can extract it.

How the text is rebuilt

Inside a PDF, text is not stored as sentences but as many small fragments, each placed at an exact x and y position on the page. The converter reads those fragments with pdf.js and puts them back together:

  • New line when the next fragment sits more than about half a line height lower or higher than the previous one.
  • Blank line (a paragraph break) when the vertical gap is larger than roughly two line heights.
  • Space between fragments on the same line when there is a visible horizontal gap and neither side already has one.
  • Hyphen joining (optional): a word split like exam- / ple at a line end becomes example.

Page range examples

You typePages extracted (in a 12-page PDF)
33
1-41, 2, 3, 4
1-3, 7, 10-121, 2, 3, 7, 10, 11, 12
9-9 to the last page (9, 10, 11, 12)
-2The first two pages

Pages are always output in page order, and duplicates are ignored, so 5, 2, 2-3 gives pages 2, 3 and 5.

Frequently asked questions

Why is the extracted text empty for some pages?

Those pages are most likely scanned images, so there is no text layer to read. This tool reads the real text inside the PDF; scanned pages need OCR (optical character recognition) software to turn the picture of letters into text.

Is my PDF uploaded to a server?

No. The PDF is opened and read by pdf.js running in your browser. The file and its text never leave your device, so it is safe for contracts, statements and other private documents.

Does it keep the formatting?

It keeps line breaks and blank lines between paragraphs, which is what plain text can hold. Fonts, colours, images and tables are not kept; table cells come out as text separated by spaces. Use PDF to Word if you need the layout.

Can it open password-protected PDFs?

Yes, if you know the password. The tool asks for it, and the PDF is decrypted locally in your browser. PDFs that only restrict copying usually open without a password.

Why do some words appear broken or in the wrong order?

PDFs store text as positioned fragments, not as sentences. Most files come out in reading order, but multi-column layouts, rotated text or unusual fonts can mix the order. Ticking Join hyphenated words fixes words split at line ends.

Is there a size limit?

There is no fixed limit. Files of a few hundred pages work fine on a typical computer; very large files simply take longer because every page is processed on your device.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

PDF to WordConvert PDF files to editable Word documents.PDF to JPGTurn PDF pages into high-quality JPG images.Split PDFExtract pages or split a PDF into separate files.PDF Metadata EditorView and edit a PDF's title, author, subject, keywords and dates, or clear them all.Image to Text (OCR)Extract text from images, screenshots and photos with OCR in 25+ languages, right in your browser.Online NotepadPrivate notepad that autosaves notes in your browser, with find, word count and .txt download.PDF Text CleanerFix text copied from a PDF: join broken lines, undo hyphen splits, drop page numbers and headers.PDF ViewerOpen and read PDF files in your browser with zoom, search, thumbnails and fullscreen.JPG to PDFCombine JPG photos into one PDF with page size, margins and orientation options.PowerPoint to PDFConvert PPTX slides to PDF, one page per slide at the original slide size. Batch files, no upload.OCR PDFMake scanned PDFs searchable and copyable with OCR in 70+ languages, or export the text.PDF to ExcelExtract tables from PDF files into an Excel spreadsheet (XLSX) or CSV, right in your browser.PDF to PNGConvert PDF pages to PNG images with custom DPI and transparent background.Word to PDFConvert Word DOCX documents to PDF.Image to PDFConvert JPG, PNG, WEBP and more into a PDF.Text to PDF ConverterTurn plain text or a .txt file into a clean PDF with your font, size, margins and page size.HTML to PDF ConverterPaste HTML and CSS, preview it as pages and download a PDF, safely in your browser.Markdown to PDF ConverterWrite or paste Markdown, preview it with a clean theme and export a polished PDF in seconds.Excel to PDF ConverterConvert Excel and CSV sheets into tidy, paginated PDF tables with repeated headers.Extract Images from PDFPull every embedded photo and graphic out of a PDF as PNG or JPG, or save pages as images.PDF to PowerPointTurn every PDF page into a PowerPoint slide (PPTX) in 16:9, 4:3 or the PDF's own size.PDF to MarkdownConvert PDF to clean Markdown with headings, lists, tables, bold, italics and links.PDF to HTMLConvert PDF to a clean, responsive HTML page or an exact positioned layout, in your browser.PDF to Long ImageStitch all PDF pages into one tall PNG or JPG image, with gap, width and page range options.PNG to PDFConvert PNG images to one PDF, keeping transparency or filling it with white or any color.HEIC to PDFConvert iPhone HEIC photos into one PDF in your browser, with page size, margins and reordering.CSV to PDFTurn a CSV file into a clean, paginated PDF table with repeating headers.EPUB to PDF ConverterConvert EPUB e-books to PDF with images, page size, font size, margins and clickable bookmarks.PDF to TIFF ConverterConvert PDF pages to multi-page or single-page TIFF in color, grayscale or black and white.RTF to PDF ConverterConvert RTF documents to PDF with fonts, tables, images and page size options.SVG to PDF ConverterConvert SVG files to vector PDF with page size and fit options, or merge many SVGs into one PDF.TIFF to PDF ConverterConvert single and multi-page TIFF scans to PDF with page size and compression options.WEBP to PDF ConverterConvert one or many WEBP images to a PDF with page size, margins, layout and reordering.Add Image to PDFPlace a logo, photo or signature image on any PDF page. Drag, resize, rotate and set opacity.Compress PDF to 100KBShrink a PDF to 100KB or less automatically, keeping every page and page size.HTML to Word ConverterConvert HTML code or pasted rich text into an editable Word .docx document.Image to Word ConverterTurn JPG, PNG or screenshot text into an editable Word (.docx) document with OCR, in your browser.PDF ConverterConvert Word, Excel, PowerPoint, images, text, HTML or EPUB to PDF, and PDF to JPG, PNG, Word or text.PDF to CSVExtract tables from a PDF to CSV files, with draggable column lines to fix the columns.PDF to SVGConvert PDF pages to scalable SVG vector files, with text kept as text or as paths.PDF to WEBPConvert PDF pages to small, sharp WEBP images with a DPI choice and a quality slider.PDF to EPUBConvert PDF to a reflowable EPUB e-book with chapters, headings, images and a table of contents.Scanned PDF to Word (OCR)OCR scanned PDFs or page photos into an editable Word document with rebuilt paragraphs.Word to JPGTurn every page of a Word .docx document into a JPG image, free and in your browser.Cursive Writing WorksheetMake cursive tracing worksheets from any text: joined letters, dotted and faded rows. PDF.EPUB MakerWrite or import chapters, add title, author and cover, and export a valid EPUB 3 e-book.Images to PowerPointTurn photos into a PowerPoint .pptx deck, one image per slide, with captions and 16:9 or 4:3.LaTeX to PDFCompile LaTeX to PDF in your browser with a TeX engine, live preview, log and PDF download.Merge Word DocumentsCombine several .docx files in any order into one Word document, with page or section breaks.PDF to FlipbookTurn a PDF into a page-turning flipbook with zoom and fullscreen, and export it as an HTML ZIP.PowerPoint ViewerOpen and present .pptx files in your browser with thumbnails, speaker notes and full screen.Whiteboard Photo to PDFClean up whiteboard and blackboard photos: straighten, remove glare, whiten, then save as PDF.DjVu to PDFConvert DjVu scans and books to PDF, with resolution, compression and page range options.EML to PDFConvert .eml emails to PDF with sender, recipients, date, formatted body, images and attachments.MOBI to PDFConvert DRM-free MOBI, AZW and AZW3 e-books to PDF with chapters, images and page size options.MSG to PDFConvert Outlook .msg emails to PDF with headers, formatted body, images and attachment list.ODT to PDFConvert OpenDocument Text (.odt) files to PDF with headings, lists, tables and images.EPS to PDFConvert EPS and PostScript files to vector PDF in your browser, cropped to the artwork.
See all 53 PDF Converters →