Generate PDF
Create a PDF from HTML or text
Preview (page width and margins)

Use {{title}} and {{date}} to insert the document title and today’s date. Scripts in your HTML are never run. Images from other websites appear only if that site allows cross-origin loading (embedded data: images always work). Each PDF page is a high-resolution image of the rendered content, so the text in the PDF cannot be selected or searched. Pages break at blank lines where possible; add style="break-before: page" to start a new page. Everything happens in your browser – nothing is uploaded.

How to Create a PDF from HTML or Text

  1. Enter your content – Type or paste HTML or plain text, open an .html or .txt file, or start from the example.
  2. Set up the page – Choose the page size (A4, Letter, Legal, A3, A5), orientation and margin, and give the document a title.
  3. Check the preview – The preview shows your content at the real page width.
  4. Create the PDF – Click "Create PDF" to download it.

What You Get

When It Helps

Good to Know

Creating PDFs from HTML – Frequently Asked Questions

How do I convert HTML to PDF?

Paste the HTML, choose the page size and margins, check the preview and click "Create PDF".

Can I convert a web page by its URL?

No. Paste the HTML code or open a saved .html file instead.

Is the text in the PDF selectable?

No. The pages are saved as high-resolution images so that every language and design looks exactly as in the preview.

How do I start a new page?

Add style="break-before: page" to the element that should start on a new page.

Is my content uploaded?

No. The PDF is created in your browser, so your content stays on your device.

Is it free?

Yes – no sign-up and no watermark.

Explore the full collection of tools in the PDF Utilities.