PDF Tools
HTML to PDF
Convert an HTML file or pasted HTML code into a paginated PDF. Choose the paper size, orientation and margins, preview the result and download it. The page is rendered in a sandbox in your browser; scripts do not run.
Runs locally in your browser
Linked files such as style.css or images/logo.png cannot be loaded. Use inline styles or full https:// addresses.
Preview
Done! Your file is ready.
How to use
- Open an .html file or paste HTML code, including inline CSS.
- Choose A4 or Letter, portrait or landscape, and margins. The preview shows how the content will flow onto pages.
- Select Convert to PDF and download the file, or use the print option for selectable text.
Examples
Archive an email template
Inline CSS, tables and embedded images are captured as they appear in the browser.
newsletter.html with inline styles
newsletter.pdf on A4 pages
Save generated report markup
Landscape suits wide tables; long content continues onto further pages.
<h1>Report</h1><table>…</table> pasted as code
report.pdf in landscape
How the conversion works
Your HTML is placed in an isolated frame at the width of the chosen paper size. The rendered result is captured and cut into pages with the margins you selected, then saved as a PDF. Because the capture is visual, the PDF looks like the browser rendering, including fonts that are available on your device.
When to use print instead
For documents that need selectable text, links and the smallest file size, choose Print with selectable text. It opens the browser’s print dialog for the same sandboxed page; select Save as PDF as the destination.
To create an editable Word document from HTML instead, use HTML to Word.
Frequently asked questions
Is the PDF uploaded?
No. The file is read and processed in your browser tab, and the result is created on your device. Nothing is sent to FormatForDev or any other server.
Can I enter a website address?
No. Browsers do not allow one site to load another site's pages for conversion. Save the page as HTML or copy its code instead.
Is the text selectable in the PDF?
The standard conversion captures the rendered page as images, so text is not selectable. Use 'Print with selectable text', which opens your browser's print dialog where you can save as PDF.
Why are some images or styles missing?
Files referenced with relative paths, such as style.css or images/logo.png, are not available to the converter. Use inline styles and data URLs or absolute https addresses.
Does JavaScript run?
No. The HTML is shown in a sandbox with scripts disabled, which keeps the conversion safe.
What are the limits?
HTML up to 5 MB and up to 50 pages of output.