PDF Tools
← Building Aaya
Calculators
Media
Games
PDF Tools
Convert from PDF
Convert to PDF
Security
Advanced
HTML to PDF
Convert HTML code to a beautifully formatted PDF document
CSS support
Multi-page
Tables & images
Live preview
Paste HTML
Paste URL
HTML Code
Show Preview
<!DOCTYPE html> <html> <head> <style> body { font-family: Arial, sans-serif; color: #333; padding: 20px; } h1 { color: #2563eb; border-bottom: 2px solid #2563eb; padding-bottom: 10px; } table { border-collapse: collapse; width: 100%; margin-top: 20px; } th, td { border: 1px solid #ddd; padding: 8px 12px; text-align: left; } th { background: #f0f4ff; font-weight: bold; } </style> </head> <body> <h1>Sample Document</h1> <p>This is a sample HTML document that will be converted to PDF.</p> <table> <tr><th>Name</th><th>Value</th><th>Status</th></tr> <tr><td>Item 1</td><td>$100</td><td>Active</td></tr> <tr><td>Item 2</td><td>$200</td><td>Inactive</td></tr> </table> </body> </html>
Page Size
a4
letter
Orientation
port
land
Margin: 10px
Convert to PDF