PDF to HTML Converter
Turn the text of a PDF into one HTML page, with a section for each page.
or drop files here
PDF Format
Portable Document Format
A document format created by Adobe and standardized as ISO 32000. It keeps text, fonts, images and layout the same on any device.
- fixed page layout
- embedded fonts
- vector and raster content
HTML Format
HyperText Markup Language
The standard markup language for web pages, maintained by the WHATWG as the HTML Living Standard. It describes the structure of a page with elements and attributes.
- text-based markup
- elements and attributes
- styled with CSS
How to convert a PDF to HTML
The PDF's text is read in your browser and written as one HTML file named after your PDF.
Upload your PDF.
We read the text of each page in order and write it as paragraphs, in a section for each page.
Download the HTML file and open it in a browser, or edit it in any text or web editor.
What to know before converting PDF to HTML
- Only the text is kept: no layout, fonts, tables, images or links.
- Each page becomes a section, and each paragraph a p element.
- A scanned PDF has no text to read, and there is no OCR.
- A PDF that needs a password to open can't be converted.
- The limits are 2,000 pages, 20 million characters and two minutes.
About PDF files
What is a PDF file?
PDF stands for Portable Document Format, and Adobe made it. The idea came out of John Warnock's Camelot project, started in 1991, and by 1992 it was PDF. Warnock wanted one file that any application could produce and any device could show or print identically. The way it draws a page derives from PostScript and is free of any device or resolution. ISO took in PDF 1.7 as standard 32000-1 in 2008, then PDF 2.0 as 32000-2 in 2017.
Inside, a PDF blends text, vector drawings and raster pictures, plus links, bookmarks, form fields, annotations and media. Images in it can be compressed losslessly with Flate or with JPEG. Fonts have to be embedded for the pages to match on every machine. Particular jobs have their own subsets, namely PDF/A to archive, PDF/X to print and PDF/UA for accessibility. You meet PDFs as forms and contracts, as e-books and as print-ready files. The difference between real text and a picture of text matters here: a scanned invoice looks readable to you but gives a converter no characters.
Programs that open PDF files
Windows
- GIMP: brings PDF pages in as images, and wants the password for a protected file.
Mac
- Apple Preview: shows pages and thumbnails.
Linux
- Evince: the GNOME document viewer.
- Okular: renders through Poppler.
Web
- Acrobat online: opens an uploaded PDF in the browser for annotation, and may need an account.
Mobile
- Adobe Acrobat Reader shows PDFs on both Android and iOS, and a PDF saved on an Android device opens in Firefox for Android.
Windows and Mac
- Firefox: has a built-in PDF viewer with annotations.
PDF and HTML compared
- Extensions and media types: .pdf uses application/pdf.
- What each stores: a PDF fixes where each word and picture sits on a page. HTML describes a document's structure with elements and attributes, and CSS supplies how it looks.
- Who maintains it: ISO 32000 for PDF, and the WHATWG's Living Standard for HTML.
- Resources: a PDF embeds fonts and images. The HTML this page writes holds only text and one inline style, so it has no separate files to lose when you move it.
This converter writes one HTML page from the PDF's text. Each source page becomes a section, and each paragraph a p element. A paragraph breaks at an empty line, at a font size change of more than a fifth, or at a gap well above the page's usual line spacing, and a word split with a hyphen at a line's end keeps its hyphen. Nothing else survives: no images, tables, links, annotations or form fields.
Other ways to convert PDF to HTML
- Poppler pdftohtml (command line): run
pdftohtml input.pdf output.html. The-soption makes one HTML file for all pages,-casks for complex output and-iskips images. It writes into the current working directory. - pdf2htmlEX (command line): run
pdf2htmlEX input.pdf, which writes an HTML file named after the PDF into the current directory, or into the folder you give with--dest-dir. For CJK characters it needspoppler-data, which it bundles a copy of.
Choose one of these when you need more than the text, for example the images, and this page when you want the words as light HTML.
Problems with PDF files
- No words to extract: the PDF is a scan or blank. Use an OCR program first. When only some pages lack text, this page converts the rest and names the ones without.
- Two columns run together: the PDF stores text in a different order than you see it. Compare the HTML with the page, especially where a sentence crosses a column.
- A password blocks it: open the PDF with the password in a viewer and save or print an unprotected copy.
- A damaged PDF is refused: a file that is empty, isn't a PDF or is cut short past repair stops with a message saying it may be damaged or incomplete.
- A viewer shows wrong fonts or a blank page: Firefox can do this with some PDFs. Download the file and try another viewer.
- A site's PDF won't open in Firefox: an incorrect MIME type on the server can stop Firefox from using its viewer. Download the file and open it from disk.
- Asian characters disappear: those fonts need character-map data this page doesn't include. Use another extractor for that file.
Frequently Asked Questions
Everything you need to know about our converter
How do I convert a PDF to HTML?
How do I convert PDF to HTML for free?
What does the HTML keep from my PDF?
Why are my tables, images and links missing?
Why does it say my PDF has no text to extract?
Can I convert a password-protected PDF?
Why are my two columns mixed together?
How large a PDF can I convert to HTML?
Is the HTML file safe to open?
Why is my Chinese, Japanese or Korean text missing?
Browse All Tools
Browse by category instead of one giant mixed list.
Convert Tools
Convert image, audio, video, document, and data files directly in your browser.