HTML is a web format - browsers can render it, but you cannot reliably share it as a document. When you convert HTML to PDF, you get a fixed, printable file that looks the same everywhere. This is useful for saving web content, generating reports from HTML templates, archiving emails, or producing printable invoices from HTML code.
Q: Will CSS styles be included?
A: Yes, if you include the CSS inline or in a style tag within your HTML. External CSS files from URLs may not load due to browser security restrictions.
Q: What about images?
A: Images embedded as base64 data URIs will work. Images from external URLs may not load if blocked by CORS policies.
Q: Is my HTML code private?
A: Yes. Everything runs in your browser. Nothing is sent to any server.