InTab

HTML to PDF

Turn HTML with its CSS into a PDF: choose page size, orientation and margins.

PDF & Files: Make PDFs from HTML, Markdown and Word; merge, split and convert. It runs in your browser, so nothing you enter is uploaded.

What it does

HTML to PDF turns HTML and its CSS into a PDF. Choose the page size, orientation and margins, check the paged preview, then save. It suits reports, receipts, certificates and documents you build from a template.

How to use it

  1. Paste your HTML (with <style> blocks) into HTML, or click Sample.
  2. Set the page size, orientation and margins.
  3. Check the preview.
  4. Click Save as PDF and choose Save as PDF as the printer in the dialog.

Example

<style>
  h1 { color: #4f46e5; }
  .total { font-weight: bold; text-align: right; }
</style>
<h1>Monthly report</h1>
<p>Revenue grew 12% in October.</p>
<p class="total">Total: 48,200</p>

Good to know

  • Scripts are removed for safety, so content built by JavaScript will not appear. Paste the final HTML.
  • Use print CSS for page control: page-break-before: always starts a new page, and @media print styles apply only to the PDF.
  • Images and fonts must be reachable by URL or embedded as data URLs; the Image to Base64 tool can embed images.

FAQ

Can it convert a live web page by URL? No. Open the page in your browser and use its own print dialog, or copy the HTML here.

Why do backgrounds disappear? Turn on Background graphics in the print dialog's settings.

More PDF & Files tools

  • PDF Tools: Merge, split, rotate and reorder PDFs, or turn images into a PDF.
  • Markdown to PDF: Write Markdown and export a styled PDF with colour themes and highlighted code.
  • Word to PDF: Convert .docx Word documents to PDF in your browser, keeping headings, lists, tables and images.
  • Markdown to PowerPoint: Write slides in Markdown and download a PowerPoint deck with themes, tables, code and speaker notes.
  • PDF Viewer: Read PDFs in your browser: zoom, rotate, jump to a page, select text and print.
  • Word Viewer: Open .docx files without Word, with a headings outline, zoom and print.
  • Excel Viewer: Open .xlsx, .xls, .ods and .csv spreadsheets with sheet tabs, formulas and search.
  • PowerPoint Viewer: Open .pptx presentations with slide thumbnails, speaker notes and a full-screen show.
  • PDF to Word: Get the text of a PDF into an editable Word .docx file, with headings and paragraphs.
  • CSV ↔ Excel Converter: Convert CSV to Excel (.xlsx) and Excel sheets to CSV or JSON, with a preview.