Markup in, a paginated PDF out
A page saved from a wiki, an email exported as HTML, documentation written as .html that has to travel as a PDF: the markup is read as a browser reads it, and the document structure is laid out on real pages — heading levels, paragraphs, nested lists, tables, block quotes and preformatted blocks.
- Document structure honoured: h1–h6, p, ul/ol, table, blockquote, pre
- Bold, italic and monospace runs become real type faces
- Scripts, forms, iframes and styles are skipped, never executed
- Link text is kept and the http(s) address follows it
Drop the file, choose the sheet
- 1
Drop the .html or .htm file
The parser reads the body; nothing on the page is fetched.
- 2
Set page size and orientation
Portrait for prose, landscape for wide tables.
- 3
Set margin and base text size
Headings scale from the base size.
- 4
Convert
You get a selectable-text PDF whose pages follow the document order.
HTML to PDF — common questions
Why does my PDF not look like the web page?
Because the styling lives in CSS and in images, and this tool reads structure rather than rendering a page. If the appearance matters, use your browser’s own Print and choose Save as PDF — that renders the real layout. This page is for when you need the document, not the design.
Where did my images go?
They are not downloaded — a tab that converts a text file should not be reaching out to the network on your behalf. An <img> with an alt attribute prints that alt text in brackets, which is what a reader would have seen had the picture failed to load.
Is it safe to convert HTML from a source I do not trust?
The file is parsed as text and its markup is read for structure. Scripts, form controls, embeds and iframes are skipped, so nothing in the document is executed. It is still wise not to convert files you would not open.
Will my links still be clickable?
They are printed as text with the address in parentheses after them, which survives printing and copying. They are not link annotations, because the output is a laid-out text layer rather than an interactive document.
What about tables with colspan?
Cells are read row by row and the table is ruled to the widest row, so a spanned header prints as one wide cell with the columns below it. Deeply irregular layouts simplify; a clean data table comes across exactly.
Related free tools
- PDF to JPGExport pages as images
- JPG to PDFCombine images into a PDF
- Image to PDFPNG, WebP, GIF, BMP or TIFF
- Text to PDFTXT file to a paginated PDF
- Markdown to PDFMD to a formatted PDF
- CSV to PDFSpreadsheet export as a table
- All 41 toolsEvery tool is free and unlimited