PDF to HTML
Turn a PDF into a clean HTML page: headings by font size, paragraphs, lists and correct Arabic direction, with optional page images. You get one self-contained .html file.
The tool
How to use
- Choose a PDF. We read the text and show a preview.
- Pick the content: structured text, text + page images, or page images only.
- Set a page range if you do not want them all, and toggle page sections and header/footer removal.
- Press “Download HTML” or copy the code.
Privacy & how it works
Processes your data in the browser and stores nothing.
- Engine: pdfjs (open-source libraries bundled with the site).
- Works offline after you open it once.
Frequently asked questions
Will the page look like the PDF?
Not in text mode: you get clean HTML (headings, paragraphs, lists) that fits any screen, without the original columns, tables or fonts. For the same look choose “Text + page images” or “Page images only”.
How are headings and lists detected?
A line whose font is clearly larger than the body text becomes a heading (h1–h3 by size), and lines starting with a bullet, number or letter with a bracket become list items.
My PDF is scanned. Will it work?
Scanned pages contain no text. Choose “Page images only”, or run an OCR tool first and convert its result.
Why is the Arabic text garbled?
Some old PDFs store Arabic in a private encoding. Run the OCR tool on the file and convert its output instead.
Is my file uploaded?
No. Reading and conversion happen in your browser, and images are embedded in the HTML file itself.