Create PDFs

HTML to PDF

Convert simple HTML text and basic structure into a PDF.

Your PDF is processed entirely in your browser and is never uploaded to a server. Images and text also stay in your browser.

About this tool

This tool converts simple HTML snippets and is not equivalent to printing a webpage. It lays out supported text structures without preserving exact webpage styles or pixel positions.

How to use it

  1. Paste the HTML snippet you want to convert.
  2. Set paper size, font size, line spacing, margins, and alignment.
  3. Generate the PDF and review any processing notices.
  4. Download the file and check headings, lists, tables, and page breaks.

Features

  • Supports text structures in headings h1–h6, paragraphs, line breaks, lists, quotes, horizontal rules, and simple tables.
  • Keeps the text inside strong, em, inline code, and pre elements. Inline bold, italic, and other styling is simplified.
  • Links become plain text and do not open webpages automatically.
  • Removes scripts, embedded pages, forms, and event behavior. External images and CSS are not loaded.

Fonts and layout

  • English, Chinese, and Japanese use a font provided by this site. It loads when you generate text, and the required glyphs are saved in the PDF.
  • Text wraps to the available width while keeping manual line breaks. Continuous Chinese text and long English words wrap when needed, and long content flows onto new pages.
  • Some emoji and uncommon characters may be missing from the font. Read the notice and check the download. Color emoji are not guaranteed.
  • Only limited HTML is supported. Custom CSS, complex layouts, webpage interactions, and images are omitted. Tables use a simplified layout, so review the download.

Limits

  • Creating a multipage file takes time and memory. Choose an image count or text length that suits your device.
  • Special characters and complex layouts may need adjustments. Check the generated file.

Privacy

Your PDF is processed entirely in your browser and is never uploaded to a server.

Images, text, and generated results are also processed only in your current browser. Your input is not saved automatically. Download any results you want to keep before clearing or leaving the page, and keep your original files.

FAQ

Can I convert a complete webpage?

No. This tool handles simple HTML snippets. It is not equivalent to printing a webpage and does not visit webpage addresses you enter.

Is all CSS supported?

No. Custom CSS is ignored. Content is laid out using the tool's page and text settings.

Will script elements run?

No. Scripts and event behavior are removed, and the HTML does not run as a webpage.

Are external images loaded?

No. External images, styles, embedded pages, and other remote resources in the HTML are not loaded.

Are Chinese and Japanese supported?

Common Chinese, Japanese, and English text is supported, with the same font and page-break behavior as Text to PDF.

Back to the tool directory