Snap
Tools
All Tools
About
Home
›
HTML to PDF
HTML to PDF
Write or paste HTML, preview it live, and convert to a downloadable PDF.
Template
Blank
Invoice
Letter
Receipt
Page Size
A4
Letter
Convert to PDF
HTML Editor
<!DOCTYPE html> <html> <head> <style> body { font-family: Arial, sans-serif; margin: 40px; color: #333; } h1 { color: #2563eb; margin-bottom: 5px; } .header { display: flex; justify-content: space-between; margin-bottom: 30px; } .header-right { text-align: right; color: #666; } table { width: 100%; border-collapse: collapse; margin-top: 20px; } th { background: #2563eb; color: white; padding: 10px; text-align: left; } td { padding: 10px; border-bottom: 1px solid #e5e7eb; } tr:nth-child(even) { background: #f9fafb; } .total { text-align: right; font-size: 18px; font-weight: bold; margin-top: 20px; } .footer { margin-top: 40px; color: #999; font-size: 12px; text-align: center; } </style> </head> <body> <div class="header"> <div> <h1>INVOICE</h1> <p>Invoice #: INV-001</p> <p>Date: March 19, 2026</p> </div> <div class="header-right"> <p><strong>Your Company</strong></p> <p>123 Business St.</p> <p>City, State 12345</p> </div> </div> <p><strong>Bill To:</strong> John Doe, 456 Client Ave, Anytown 67890</p> <table> <thead> <tr> <th>Description</th> <th>Qty</th> <th>Unit Price</th> <th>Total</th> </tr> </thead> <tbody> <tr><td>Web Design</td><td>1</td><td>$1,500.00</td><td>$1,500.00</td></tr> <tr><td>Hosting (1 year)</td><td>1</td><td>$120.00</td><td>$120.00</td></tr> <tr><td>Domain Registration</td><td>1</td><td>$15.00</td><td>$15.00</td></tr> </tbody> </table> <div class="total">Total: $1,635.00</div> <div class="footer">Thank you for your business!</div> </body> </html>
Live Preview