HTML to PDF

Paste HTML (or load an .html file), preview it and save a paginated PDF with your chosen page size.

How it works

  • Paste HTML (inline styles work best) or upload an .html file, then preview it exactly as it will be rendered.
  • Choose page size, orientation and margins; the content flows across as many pages as it needs and page breaks inside the markup (page-break-before) are respected.
  • CORS rules still apply: images and stylesheets referenced from other domains must allow cross-origin loading.
  • Rendering uses html2canvas and jsPDF locally — your markup never leaves the browser.