How HTML to PDF works
HTML to PDF takes HTML markup you paste into the editor, sanitises it with DOMPurify to strip scripts and unsafe attributes, renders it on an off-screen canvas using html2canvas, and encodes the result into a PDF with jsPDF. The whole pipeline runs inside your browser tab; no HTML code or rendered output is transmitted to any server. This makes it suitable for converting HTML snippets containing personal data that you would not want to paste into an online service.
Understand the output format before you rely on it. The PDF pages are raster images, not vector text. Text in the output is not selectable, not searchable, and cannot be reflowed. External resources such as images referenced by URL are blocked by browser CORS policy and will not load. Inline styles and embedded CSS work, but complex layouts with custom web fonts or advanced CSS grid may not render accurately. For document-faithful conversion of full web pages, a headless browser running server-side is the more appropriate tool.