OneKitTools logoOneKitTools
Back to PDF

HTML to PDF

Convert HTML content to a PDF document

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

  1. 1Paste or type your HTML code into the editor. Full HTML with inline CSS is supported.
  2. 2Choose a page size (A4, Letter, etc.) and orientation (portrait or landscape).
  3. 3Adjust the margins to control spacing around the content.
  4. 4Click 'Convert to PDF' to generate the document.
  5. 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