Document Converters
HTML to PDF Converter
Convert HTML to PDF in your browser — paste code or open an .html file, choose paper size, orientation and margins, and save a PDF with sharp, selectable text.
How to use
- 1Paste HTML or open an .html file.
- 2Choose paper size, orientation and margins.
- 3Press Print → Save as PDF (best quality), or download an image-based PDF directly.
Frequently asked questions
Why is Print → Save as PDF recommended?
It uses the browser's print engine: text stays selectable and searchable, and page breaks follow your CSS.
Can I convert a live website URL?
Paste the page's HTML (View source → copy). Converting by URL needs a server to fetch the page.
How do I force a page break?
Add style="page-break-before: always" (or break-before: page) to an element.
Two conversion paths, two different trade-offs
"Print → Save as PDF" hands the page to your browser's own print engine — the same one that handles every webpage you've ever printed — so the output has real, selectable, searchable text, and page breaks follow your CSS exactly (including any page-break-before rules). "Download PDF (image)" instead renders the page to a canvas and slices it into JPEG images laid onto PDF pages, which produces a file directly without the extra "choose Save as PDF in the print dialog" step, at the cost of text that's no longer selectable or searchable — it's pixels, not characters. The image path exists mainly as a one-click fallback for simple pages or quick sharing; for anything you'll want to search, copy text from, or print professionally, the Print path is the better choice.
Controlling the page with real CSS, not a settings panel
Paper size, orientation and margins are written directly into an @page CSS rule injected into your document's head, which is the actual mechanism browsers use to control printed output — so what you set here is exactly what a browser's print engine will honor. The "print backgrounds" toggle flips on print-color-adjust: exact, which is also why background colors and images in HTML often vanish when printed normally — browsers suppress them by default to save ink unless a page or tool explicitly requests otherwise. To force a new page at a specific element, adding style="page-break-before: always" (or the modern break-before: page) is a standard CSS instruction this tool's preview and Print path both respect.
What it can't do: live URLs and running scripts
This converts HTML you paste or a local .html file you open — it can't fetch a live website by URL, because that requires a server to retrieve the page on your behalf; the workaround is viewing the page's source in your browser and pasting that HTML in directly. Any scripts embedded in your HTML are also inert: the preview renders inside a sandboxed iframe that blocks script execution, so a page relying on JavaScript to build its content (for example, a chart drawn by a JS library after load) won't render that dynamic part — only what's present in the static markup and CSS converts.
Example: a monthly invoice template with a logo and a totals table
Say you've built a simple HTML invoice with an embedded base64 logo, a styled table of line items, and a yellow-highlighted payment-terms note using a CSS background color. Pasting that HTML in, setting paper to US Letter with 15mm margins, and clicking "Print → Save as PDF" with "Print backgrounds" checked produces a PDF where the yellow note box and table borders render exactly as styled, and the line-item text remains selectable so a bookkeeper can copy a line into another document. If that same invoice references a company logo hosted on a different domain rather than embedded, the "Download PDF (image)" path will attempt to fetch and inline it — but a cross-origin image blocked by CORS silently gets skipped rather than breaking the whole conversion.
Related tools
- Word to HTML Converter
Convert Word documents (.docx) to clean, semantic HTML — headings, lists, tables, links and images — ready to paste into a website or CMS. Preview, copy or download.
- Jupyter Notebook to HTML & PDF
Turn a Jupyter notebook (.ipynb) into a clean web page or PDF without installing Jupyter: Markdown with typeset maths, highlighted code, tables, plots and coloured error messages. Hide the code for a report-style version.
- PDF to JPG
Turn every page of a PDF into a sharp JPG image at the resolution you need. Many pages download as a ZIP.
- CBZ to PDF & PDF to CBZ Converter
Convert comic book archives (.cbz) to PDF, or PDFs to CBZ for comic readers. Pages keep their original images and order, manga can be set to read right to left, and title and series details carry over through ComicInfo.xml.
- Add Page Numbers to PDF
Number the pages of a PDF — choose position, format (1, Page 1 of 10), starting number, font size and which pages. Runs in your browser.
- Bates Numbering & Exhibit Stamps
Add Bates numbers (prefix, zero-padded number, suffix) to every page of one or many PDFs, continuing across files, with optional confidentiality legends and EXHIBIT A, B, C stamps, plus a CSV production log.