Out of a document

Convert PDF to plain text

The text layer, without invented structure.

On this device

Extract the text layer

The result appears here before download, so you can read and copy it immediately.

    Opened on this device · never transmitted

    What this tool does, exactly

    Reads the characters already stored in the PDF and restores them into visual line order. It does not guess headings or tables, and it says plainly when the pages are scans with no text layer.

    What it keeps
    Words, line order and optional page-break markers in a UTF-8 .txt file.
    What it leaves out
    Fonts, images, layout, columns and inferred document structure. Use PDF to Markdown when headings and tables matter.
    Marking the pages
    The tick box under the file is on by default. With it on, each place where a PDF page ended is written into the text as a line reading --- Page break ---. Turn it off for one unbroken run of text.
    Reading the result
    The text appears in a box on this page before anything is downloaded, with a button that copies it. The summary counts lines, and the download is named after your file with .txt in place of .pdf.
    Scanned pages
    A scan contains pixels rather than characters. The tool names empty pages and offers no empty file when the whole PDF is a scan; OCR a PDF is the right tool then.

    About this tool

    Why is no text found?

    The PDF is probably a scan: its letters are pixels, not stored characters. Use OCR a PDF to recognise them.

    How does plain text differ from Markdown?

    Plain text keeps lines and words only. Markdown also infers headings, lists, emphasis and tables from their appearance.

    Does the PDF get uploaded to make the text?

    No. The text layer is read inside this browser tab and the .txt bytes are made here.

    Can I keep one page per block of text?

    Yes, by leaving the page-break marker on. Each page's text is then separated from the next by a line that says where the PDF page ended, which is easy to search for or to split on.

    More out of a document tools · All 55 · How they work