DailyOnWeb
VI

Chuyển đổi HTML sang PDF

Dán mã HTML của bạn hoặc tải lên một tệp .html, chọn kích thước trang và tải xuống tệp PDF. Mọi thứ diễn ra ngay trong trình duyệt của bạn.

hoặc thả tệp .html vào bất kỳ đâu trong khung này

Thả tệp HTML của bạn để tải

Mã HTML của bạn được chuyển đổi trực tiếp trong trình duyệt và không bao giờ được tải lên.

Hình ảnh và phông chữ phải được nhúng (đường dẫn dữ liệu) hoặc phục vụ kèm theo tiêu đề CORS. Không thể tải đường dẫn tệp tương đối từ mã đã dán và các tập lệnh (script) sẽ không được chạy.

Tệp HTML tối đa 2 MB.

Quảng cáo

What does HTML to PDF do?

It renders your HTML and CSS and saves the result as a PDF with the page size and margins you choose.

Private by design

Your HTML is converted on your device and is never uploaded to our servers.

Why use our HTML to PDF tool?

Files stay private

Everything runs in your browser, with no upload.

Live preview

See how your page looks before you create the PDF.

Two ways to save

Create a PDF directly, or print with selectable text.

Free to use

No sign-up, no watermark, no software to install.

Convert HTML to PDF Online for Free

Use the DailyOnWeb HTML to PDF tool to turn HTML code or an .html file into a PDF. It is handy for invoices, reports, email templates and saved web pages.

How to convert HTML to PDF

  1. Paste your HTML into the editor, or upload an .html file.
  2. Use the Preview tab to check how it looks.
  3. Choose page size, orientation and margin.
  4. Click Create PDF and download the result.

Create PDF or Print?

  • Create PDF gives a PDF that looks like the preview. Pages are saved as pictures.
  • Print / Save as PDF uses your browser, so the text stays selectable and searchable.

Tips

  • Embed images and fonts as data URLs, or use https links that allow cross-origin loading.
  • Scripts are not run, so use plain HTML and CSS.
  • Reduce the file size with Compress PDF afterwards.

HTML to PDF is free, private and works on phones, tablets and computers.

Câu hỏi thường gặp (FAQs)

Công cụ liên quan

Quảng cáo