About PDF to HTML
A PDF is a print format: text sits at exact coordinates on fixed-size pages. HTML is a flow format: the browser decides where lines wrap and how sections stack. Converting between them means deciding whether to preserve the page geometry or produce normal reflowable text.
This tool preserves the geometry: each PDF page becomes a page-sized section with absolutely positioned text spans, inline CSS and the original page dimensions. The result is one standalone .html file that opens without assets, keeps the visual order of the text and can be styled or edited afterwards; complex layout and embedded fonts can still differ slightly.
What this tool does
Standalone HTML file
The download is a single .html file with inline CSS and no external assets, so it opens in any browser.
Positioned text
Each text item keeps its PDF coordinates inside a page-sized container, preserving the visual reading order and layout.
Page sections
Every page is its own section with the original width and height, so multi-page documents stay organised.
Escaped and safe
Text is HTML-escaped, so symbols and angle brackets in the PDF cannot inject markup into the page.
Links preserved
Link annotations in the PDF become clickable anchors on the HTML page when they point to a URL.
Runs locally
pdf.js reads the file and the HTML is assembled in the browser tab; nothing is uploaded.
How to use PDF to HTML
- 01
Add the PDF
Drop a PDF of up to 50 MB or click to browse; the page count is read locally.
- 02
Set the page range
Leave the range empty for all pages or enter pages such as 1-3, 5. Up to 50 pages per run.
- 03
Convert to HTML
Click Convert to HTML; each page's text items and links are extracted and positioned.
- 04
Review the result
The workspace reports pages and text size; download the file and open it in a browser to inspect the layout.
- 05
Download the HTML
Download the .html file; it opens without any other files and can be edited in a text editor.
Supported formats and limits
- Input
- Output
- HTML
- Processing
- Client-side, in your browser. Nothing is uploaded.
- Maximum size
- Up to 50 MB · 50 pages
- Requirements
- Chrome, Edge, Firefox or Safari · A PDF with a selectable text layer
Limitations worth knowing
- Text only: images, vector graphics, backgrounds and embedded fonts are not carried into the HTML.
- Positions are approximate; unusual kerning, rotated text and overlapping lines can look uneven.
- Internal links and links drawn without annotations are not reconstructed; only external URL annotations become anchors.
- 50 pages per run and 50 MB per PDF; very dense pages produce large HTML files.
Privacy and file handling
The PDF is read and the HTML file is generated entirely in this browser tab with pdf.js. Nothing is uploaded or stored, and closing the page discards the document and the generated file.
Read the full privacy policy
