HTML to PDF

Paste your HTML code below and convert it into a downloadable PDF file.

index.html

Supports headings, paragraphs, lists, tables, bold, and italic.

Files stay private. Deleted automatically.

How to convert HTML to PDF

Paste your HTML

Type or paste your HTML code into the editor. You can paste a full document, a snippet, or anything in between — bare content is accepted too.

Convert to PDF

Click "Convert to PDF". The HTML is laid out onto A4 pages with clean margins and sensible default typography.

Download the PDF

Download your converted PDF instantly. If you need to adjust anything, click "Convert another" to go back to the editor and make changes.

Why convert HTML to PDF with MakeitPDF

Works with any HTML

Paste a full HTML document, a fragment, or plain text with basic tags. Headings, paragraphs, lists, links, and tables all render correctly in the output PDF.

Clean A4 output

Content flows automatically onto A4 pages with comfortable margins. Long documents paginate correctly so no content is cut off between pages.

Secure and private

Your files are processed on secure servers and deleted automatically. We never store or share your documents.

HTML to PDF — FAQ

What HTML tags and elements are supported?

Common document elements are fully supported: headings (h1–h3), paragraphs, ordered and unordered lists, links, tables, bold, italic, and inline styles. JavaScript and external resources such as images from remote URLs are not executed or fetched.

Can I include inline CSS styles?

Yes. Inline styles using the style attribute are applied to elements. You can also include a <style> block in the HTML to define rules that apply across the document.

What page size and margins does the PDF use?

The output uses A4 page size with equal margins on all sides. Content flows naturally across multiple pages if needed, and no content is clipped at page boundaries.

Can I convert a web page URL instead of pasting HTML?

This tool converts HTML code you paste directly. To convert a live web page, open it in your browser, select all, copy the source, and paste it here — or use your browser's built-in Print → Save as PDF option for the fully rendered version.

Are images in my HTML included in the PDF?

Images referenced by remote URL are not fetched during conversion. To include images, embed them as Base64 data URIs directly in the HTML src attribute, for example: src="data:image/png;base64,...".