Convert HTML to PDF
Paste your HTML or upload an .html file, pick a page size and download the PDF. Everything happens in your browser.
หรือวางไฟล์ .html ไว้ที่ใดก็ได้ในกล่องนี้
วางไฟล์ HTML ของคุณเพื่อโหลด
วางหรืออัปโหลด HTML เพื่อดูตัวอย่าง
HTML ของคุณถูกแปลงในเบราว์เซอร์ของคุณและจะไม่มีการอัปโหลดขึ้นเซิร์ฟเวอร์
รูปภาพและฟอนต์ต้องถูกฝังไว้ (data: URLs) หรือแสดงผลด้วยส่วนหัว CORS ไม่สามารถโหลดเส้นทางไฟล์สัมพัทธ์จากโค้ดที่วางลงไปได้ และสคริปต์จะไม่ทำงาน
HTML สูงสุด 2 MB
PDF ของคุณพร้อมแล้ว!
ดำเนินการต่อ...
คุณจะขอบคุณเราได้อย่างไร? ช่วยบอกต่อเลย!
โปรดแชร์เครื่องมือนี้เพื่อสร้างแรงบันดาลใจให้ผู้คนทำงานได้อย่างมีประสิทธิภาพมากขึ้น!
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
- Paste your HTML into the editor, or upload an .html file.
- Use the Preview tab to check how it looks.
- Choose page size, orientation and margin.
- 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.
คำถามที่พบบ่อย (FAQ)
เครื่องมือที่เกี่ยวข้อง
Word to PDF
Convert DOC, DOCX, ODT and RTF documents to PDF and keep the layout.
Excel to PDF
Convert XLS, XLSX, ODS and CSV spreadsheets to PDF with tables intact.
PowerPoint to PDF
Convert PPT, PPTX and ODP slides to a shareable PDF presentation.
Compress PDF
Reduce PDF file size in your browser while keeping text and images readable.