About HTML to PDF
Convert raw HTML code into a properly formatted PDF document with customizable page size, orientation and margins.
How to use HTML to PDF
- 1Paste or type your HTML code into the editor. Full HTML with inline CSS is supported.
- 2Choose a page size (A4, Letter, etc.) and orientation (portrait or landscape).
- 3Adjust the margins to control spacing around the content.
- 4Click 'Convert to PDF' to generate the document.
- 5Preview the result and download the PDF when satisfied.
Tips
- Include inline CSS styles for best rendering — external stylesheets are not loaded during conversion.
- Use page-break-before or page-break-after CSS properties to control where pages split.
- For invoices or reports, use HTML tables with border styles for clean, professional layouts.
- Landscape orientation works great for wide tables or dashboard-style layouts.
Related tools
OneKitTools TeamUpdated 2.21.4