Convert a PDF to HTML

Produce a small, readable HTML file from a PDF's text — escaped, sectioned by page and ready to paste into a CMS.

Convert a PDF to HTML

Drop a PDF here

Or choose a file from your device

One PDF at a time · max 50 MB

The text layer is read in this tab — nothing is uploaded.

    No PDF added yet.

    Extracted text

    Three steps — nothing to install

    1. Add a PDF

      One file up to 50 MB, read in this tab.

    2. Choose pages

      All pages or a range. Each page becomes its own section.

    3. Download the HTML

      A complete .html file with inline CSS, or copy the source from the preview.

    What the HTML is — and is not

    This is a text conversion, not a visual replica. Each page becomes <section class="pdf-page" data-page="3">, each paragraph a <p> with line breaks preserved, and heading-sized lines become <h2> or <h3>. Every character is escaped, so a document that talks about <script> shows the word rather than running code.

    The result is not pixel-identical to the PDF: fonts, margins, columns, tables, images and page furniture are gone. What survives is semantic text that a browser, screen reader or search engine can actually parse — which is often the point of converting at all.

    Why HTML instead of plain text

    HTML keeps the paragraph boundaries and the heading hierarchy that plain text throws away, and it opens as a page rather than a wall of monospaced lines. That makes it a better starting point for a blog post, a help article or a knowledge base entry.

    It is also a reasonable intermediate step: paste the body into a CMS and let its editor normalise the rest. If you need Markdown instead, the PDF to Markdown page writes that directly; if you need the exact appearance, keep the PDF or render the pages as images.

    Limits worth knowing before you publish

    The file carries a tiny inline stylesheet and no scripts, images or external fonts, so it works offline and has nothing to block. The text order is the same line-by-line reconstruction the text mode uses, so a two-column page comes out interleaved. A scan has no text layer and produces almost nothing.

    Because the output is plain text in a new file, links in the original are not carried across. If the document is a set of references, expect to re-add the links by hand — or keep the PDF, where they still work.

    Frequently asked questions

    Is anything uploaded?No. The PDF is read with pdf.js in this tab and the HTML file is written locally.
    Will it look exactly like the PDF?No. It is a text conversion with headings and paragraphs; layout, fonts, images and tables are not reproduced.
    Is the HTML safe to publish?The text is HTML-escaped, so characters like < and & are printed rather than interpreted, and the file contains no scripts. Review the wording as you would any imported text.
    Can it convert a scanned PDF?No. There is no text layer to read and this tool does no OCR.
    Are hyperlinks kept?No. A PDF link is an annotation over an area, not part of the text, so it is not recreated in the HTML.
    Does it change my PDF?No. The PDF is read only; the HTML is a separate download.