TapCub is live — analytics, insights and live chat, free on one platform

Free tool · Files PDF to text: extract the text from a PDF without uploading it

Open a PDF and get its text back as clean paragraphs you can copy, edit or paste into another app. Lines broken by the page layout are joined again, page numbers are dropped, and pages that are only scanned images are flagged. Everything runs in your browser.

  • Files stay on your device
  • TXT or Markdown
  • Opens password-protected PDFs

Extract text from a PDF

Choose a PDF. The text appears below as soon as it is read; change the settings to reshape it, then copy it or download a .txt or .md file.

Extract

No PDF yet. Choose or drop a PDF, or try the sample.

Markdown keeps headings and lists, which helps when you paste a document into an AI chat.

Join lines to get one line per paragraph; keep them to match the PDF line by line.

Leave empty for every page. Examples: 1-3, 5, 8-

Example: one page, rebuilt

A report page with a heading, a paragraph broken over two lines, a hyphenated word, a bullet list and a page number. Here is what the tool makes of it.

Plain text
Quarterly report

Visits grew 18% in the third quarter, mostly from organic search and returning visitors. Mobile now accounts for 61% of all sessions.

What changed

• Search traffic doubled after the help centre was rebuilt.
• Paid campaigns were paused in August.

Next quarter we will test a shorter sign-up form and a new pricing page.
Markdown
# Quarterly report

Visits grew 18% in the third quarter, mostly from organic search and returning visitors. Mobile now accounts for 61% of all sessions.

## What changed

- Search traffic doubled after the help centre was rebuilt.
- Paid campaigns were paused in August.

Next quarter we will test a shorter sign-up form and a new pricing page.

The page number is removed, “pric-” + “ing” is joined back into “pricing”, and the larger type becomes Markdown headings.

Your files never leave this device: they are read and converted by your browser, and nothing is uploaded to TapCub or anyone else. To check, open your browser’s developer tools, go to the Network tab and run the tool: no file is sent.

Version v1.0Updated Update history

Read the result

What the extracted text contains

A PDF stores words as positioned pieces of text, not as paragraphs. The tool puts them back in reading order; here is what to expect.

Paragraphs

Lines that belong together are joined into one paragraph, and a blank line separates paragraphs. Choose “Keep the PDF line breaks” if you need the original lines, for example for poetry or addresses.

Headings and lists

Larger type is treated as a heading, and lines starting with •, – or 1. as list items. In plain text they stay as they are; in Markdown they become #, ## and - so other apps understand the structure.

Pages without text

A page with no characters is almost always a scan or a photo. It is listed under “Characters per page”. Run it through OCR software first, then extract the text.

Tables and columns

Cells come out row by row, separated by spaces. Two-column layouts usually come out column by column, but some PDFs store text in an unusual order; check the result before you rely on it.

The token count is a rough guide for AI tools: about one token per four Latin characters and one per Chinese character.

How to use it

Extract text from a PDF in four steps

The defaults (plain text, joined paragraphs, page numbers removed) suit most documents.

  1. 1

    Open the PDF

    Choose it or drop it on the box. If it asks for a password, type it in the field that appears.

  2. 2

    Pick the output

    Plain text for notes, emails and editors; Markdown for wikis, documentation and AI chats.

  3. 3

    Adjust if needed

    Keep the original line breaks, add page markers, or type a range such as 2-5 to extract only some pages.

  4. 4

    Copy or download

    Copy the text to the clipboard or download it as a .txt or .md file. Check pages flagged as having no text.

How it works

From positioned text to paragraphs

pdf.js, the open-source PDF engine used in Firefox, returns each piece of text with its position and size. The tool rebuilds the reading order from those numbers.

  • Pieces whose baselines are within half a character height of each other form one line; within a line they are sorted left to right
  • A space is added where the gap between pieces is more than 0.15 of the font size; between two Chinese or Japanese characters no space is added
  • A new paragraph starts when the line spacing grows to more than 1.4 times the usual spacing, when the font size changes by more than 15%, or at a list marker
  • A word split as “infor-” / “mation” is joined when the next line starts with a lowercase letter
  • Markdown headings: the size used by most characters is body text; up to three larger sizes become #, ## and ###
Plain text or Markdown
UseChooseWhy
Paste into an email or editorPlain textNo symbols to clean up
Paste into ChatGPT, Claude or another AI chatMarkdownHeadings and lists keep the structure, using few extra tokens
Wiki, Notion, GitHub, documentationMarkdownRenders as headings and lists straight away
Search or compare documentsPlain text, keep line breaksLine numbers match the PDF
Worked example

A 12-page contract, two pages scanned

A contract exported from Word, with a signed page and an appendix that were scanned and added later.

What the tool reports
PagesWhat happensResult
1–10Text read and joined into paragraphsAbout 2,000 to 3,000 characters per page
11 (signed page)Image only, no text layerFlagged: no text (scanned image?)
12 (appendix)Image only, no text layerFlagged: no text (scanned image?)
OutputText of pages 1–10One .txt file; pages 11–12 need OCR

Type 1-10 in Pages to leave out the scanned pages, or keep them in the range to see which page numbers are missing.

Common mistakes

Where PDF to text goes wrong

Most surprises come from what is actually stored in the PDF.

Expecting text from a scan

A scanned page is a picture of words. There is no text to extract until OCR has recognised it.

Trusting complex layouts blindly

Tables, sidebars and text boxes can come out in an unexpected order. Read through the result before you publish or quote it.

Copying page by page

Copying from a PDF viewer breaks every line and repeats headers. Extracting the whole file at once rebuilds paragraphs and drops page numbers.

Uploading confidential documents

Contracts, payslips and medical letters are common reasons to extract text. This tool works in your browser, so there is nothing to upload.

FAQ

PDF to text questions

Still have a question?

Chat with the team behind TapCub — we usually reply within a few hours on business days.

How do I extract text from a PDF?

Open the PDF in the tool above. The text appears in the result box straight away; click Copy, or Download to save it as a .txt file.

Is my PDF uploaded?

No. pdf.js reads the file inside your browser. After the page and the PDF engine have loaded, the tool keeps working with the internet switched off.

Why is the result empty or missing pages?

Those pages contain no text, only an image of text, which is typical for scans and phone photos. The tool lists them as “no text”. They need OCR (text recognition) first.

Can I keep the original line breaks?

Yes. Set Line breaks to “Keep the PDF line breaks”. By default lines are joined into paragraphs, which is better for editing and for AI tools.

Does it work with Chinese, Japanese and other languages?

Yes. Text is read as Unicode, and no spaces are added between Chinese or Japanese characters when lines are joined. Right-to-left scripts come out in storage order, which may need checking.

Can I extract text from a password-protected PDF?

Yes, if you know the password. A password field appears when the file needs one; the password is used only in this tab.

Why are some words run together or split apart?

Some PDFs place each letter separately or use unusual spacing. The tool adds spaces by measuring the gaps, which works for most files; a few, often older ones, still need a quick clean-up.

Changelog

Update history

New features, fixes and data refreshes for this tool, newest first.

  1. · v1.0

    LaunchedFirst release.

Missing something or found an error? Tell us — requests that come up often go into the next update. All tool updates

Next step

Analytics that keep personal data out

TapCub counts visits without cookies and never stores IP addresses, with a compliance centre for stricter regions.

See your data clearly. Find your growth.

Every click, backed by data. Install one line of code and see your first numbers in a minute.

No credit card · Free plans for analytics and chat · Cookieless analytics