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

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.

Generate PDF: What You Get

When to Generate a PDF from HTML or Text

Generate PDF: 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.