Skip to content
EasyPDF
Organize
Convert
Edit
Security
All Tools
Settings
Back to all tools
HTML to PDF
Convert HTML code to a PDF document
HTML Editor
<!DOCTYPE html> <html> <head> <style> body { font-family: Arial, sans-serif; padding: 40px; color: #333; } h1 { color: #6366f1; border-bottom: 2px solid #e5e7eb; padding-bottom: 8px; } p { line-height: 1.6; } table { width: 100%; border-collapse: collapse; margin: 20px 0; } th, td { border: 1px solid #ddd; padding: 10px; text-align: left; } th { background: #f3f4f6; } .highlight { background: #fef3c7; padding: 16px; border-left: 4px solid #f59e0b; } </style> </head> <body> <h1>Sample Document</h1> <p>This HTML will be converted to a PDF. You can include <strong>bold text</strong>, <em>italics</em>, tables, and more.</p> <div class="highlight"> <strong>Tip:</strong> Use inline styles for best results when converting to PDF. </div> <h2>Table Example</h2> <table> <tr><th>Item</th><th>Qty</th><th>Price</th></tr> <tr><td>Widget A</td><td>5</td><td>$10.00</td></tr> <tr><td>Widget B</td><td>3</td><td>$15.50</td></tr> <tr><td>Widget C</td><td>2</td><td>$22.75</td></tr> </table> <p>Edit this HTML or paste your own to convert!</p> </body> </html>
Convert to PDF