N
NJHTools

PDF to Text

Extract text from a PDF free in your browser: every page is read with line breaks kept, ready to copy or save as a .txt file. No upload, no signup. For scanned PDFs, use OCR instead.

Your PDF never leaves your device. It is processed locally in your browser, not uploaded to any server.

How to verify: open DevTools → Network, then use the tool. No request carries your file.

Drag a PDF here, or click to choose a file

Processed on your device. Your files are never uploaded.

How to convert PDF to text

  1. Drop a PDF onto the page, or click to choose one.
  2. The text of every page appears in the box within seconds.
  3. Turn page separators on or off, then click Copy text or Download .txt.

How line breaks are kept

A PDF stores text as positioned fragments, not as lines and paragraphs. This tool reads the fragments with Mozilla's PDF.js in the order they were written, starts a new line when the baseline moves down, adds a blank line for larger gaps, and inserts spaces between words that are positioned apart. Multi-column layouts usually come out column by column. Tables come out as rows of text, not as a grid; to rebuild a table, paste the text into a spreadsheet and split it into columns. Korean, Chinese and Japanese text is extracted with the right characters, and the .txt file is saved as UTF-8.

Scanned PDFs need OCR

Scanned documents and photos saved as PDF contain pictures of text, not text, so there is nothing to extract. The tool tells you which pages have no text layer. For those, convert the pages with PDF to JPG and run them through Image to Text (OCR), which recognises the words in your browser.

Your file stays on your device

Text is extracted inside your browser; the PDF is never uploaded or stored. Open DevTools → Network while converting and you'll see no request carrying your file. PDFs that need a password to open can't be read until they are unlocked. See all PDF tools.

Frequently Asked Questions

How do I extract text from a PDF?↓

Open the PDF on this page. The text of every page is extracted right away and shown in a box, with line breaks kept. Click Copy text, or Download .txt to save it as a file.

Why is no text found in my PDF?↓

The PDF is most likely a scan or photo, so its pages are images without a text layer. Convert the pages to images with PDF to JPG, then use Image to Text (OCR) to recognise the words.

Does it keep line breaks and paragraphs?↓

Yes. A new line starts wherever the text moves to a new baseline, and larger vertical gaps become blank lines between paragraphs. Fonts, colours and table grids are not kept, because the output is plain text.

Does it work with Korean, Chinese or Japanese PDFs?↓

Yes, as long as the PDF has a proper text layer. The .txt file is saved as UTF-8 with a byte order mark, so it opens correctly in Notepad, Excel and other editors.

Is my PDF uploaded?↓

No. The text is extracted in your browser with Mozilla's PDF.js and the file never leaves your device. The DevTools Network tab shows no request carrying your PDF.

Related Tools

All PDF Tools →

Last updated: