HTML to PDF
Paste HTML, open a saved web page or try a web address, check the preview at page width, and save it as a PDF with real, selectable text.
You’re offline. This tool needs an internet connection for some features. They will work again when you reconnect.
In the print window, choose Save as PDF as the printer. The PDF keeps real, selectable text and links, and Indian languages are shaped correctly. Page size and margins are already set.
How to convert HTML to PDF
- Paste HTML, open an .html file or enter a web address.
- Choose the page size, orientation and margins.
- Click “Download PDF” and choose “Save as PDF” in the print window.
Features
- Paste code, open a file or fetch a URL
- Preview at the real page width
- A4, Letter, Legal, A3 and A5 with margins
- Selectable text and working links
- Scripts are switched off for safety
Frequently asked questions
Why does it use the print window?
Your browser’s own print engine lays out HTML and CSS far better than any converter that runs on a web page. It keeps text selectable and searchable, keeps links, and shapes Telugu, Hindi and other scripts correctly. The page size and margins you choose here are already set in the print window.
Why can’t it load some web addresses?
Most websites don’t allow other sites to read their pages (a browser rule called CORS), and DeskTray has no server to fetch them for you. Open the page yourself and save it with Ctrl+S, then open that file here, or print the page directly with Ctrl+P.
Why is my page blank or missing content?
JavaScript is not run in the preview, to keep you safe. Pages that build their content with scripts may look empty. Images and styles in separate files next to a saved page can’t be loaded either; images with full web addresses work.
How do I save the PDF on a phone?
On Android, choose “Save as PDF” as the printer and tap the download button. On iPhone, tap the share icon in the print options and choose Save to Files.
Is my file uploaded anywhere?
No. Everything happens inside your browser, so bank statements, ID proofs, contracts and forms stay on your device.
Related tools
All PDF Tools →- Markdown to PDF Turn Markdown notes, READMEs and reports into a nicely formatted PDF with selectable text.
- Text to PDF Paste text and download it as a PDF.
- Word to PDF Turn a Word document into a PDF for job applications, college submissions or sharing on WhatsApp.
- Grayscale PDF Make a colour PDF grey or black and white, for cheaper printing or upload portals that ask for black-and-white scans.
- Flatten PDF Make filled forms and marked-up PDFs final.
- Fill PDF Form Fill in an application or registration form without printing it.