HTML to PDF
Paste HTML or open an .html file and download it as A4 or Letter PDF pages with searchable text; nothing is uploaded.
Processed on your device. Nothing is uploadedHow to check
You can also paste CSV or JSON text with Ctrl+V (⌘+V on a Mac).
Pasted text stays in this tab and is never sent anywhere.
Convert HTML to PDF without a print dialog: paste HTML or open an .html or .htm file, and its headings, paragraphs, lists, tables (merged cells included), links, bold, italic, underline, strikethrough, code and quotes are laid out on A4 or Letter pages with 0.75-inch margins. Inline style attributes are kept, so colours and fonts set on the elements themselves show in the PDF. The HTML is cleaned first: scripts, frames, forms, style sheets and event handlers are removed. Each page carries its text, so the PDF can be searched and copied, Arabic included. The page never opens a web address, and nothing is uploaded.
Why use HTML to PDF
Private
Your HTML is converted by your own browser and never sent to a server, so nobody else sees it.
Inline styles kept
Colours, fonts and sizes set on the elements themselves show in the PDF; the HTML is cleaned of scripts first.
Searchable PDF
The pages carry their text, so it can be selected, searched and copied in any PDF reader.
Works offline
Install it as an app or keep using this page: once the tool has been used, it works without an internet connection.
How to convert HTML to PDF
Paste or open your HTML
Paste HTML into the box, or choose or drop an .html or .htm file to fill it.
Choose the page size
Pick A4 or Letter.
Convert
Click the convert button to lay out the pages.
Check and download
The preview shows the first pages; download the PDF.
What HTML to PDF handles
- Files: .html and .htm, or HTML you paste.
- Headings, paragraphs, lists, links, tables with merged cells, code and quotes.
- Inline style attributes: colours, fonts and sizes set on the elements.
- Arabic and English, each paragraph in its own direction.
Works best for
- HTML you wrote or exported yourself
- Reports and invoices built with inline styles
- Saved articles and help pages
- Simple pages with headings and tables
May not keep
- Page styles from style sheets
- Pictures linked from web addresses
- Clickable links
- Content drawn by scripts
HTML to PDF: what it can't do
- Style sheets (<style> and linked CSS) are removed; only inline style attributes are kept, so a designed web page may look plainer.
- Pictures from web addresses are left out; only pictures embedded in the HTML as data are kept.
- Pages are pictures at 200 dpi with their text laid over them; links are not clickable and there are no page numbers.
- Files up to 10 MB are opened; a larger file shows a message instead.
HTML to PDF: questions
- Is my file uploaded?
- No. Your file is read and changed by your own browser, on your device, and is never sent anywhere. You can check it: open your browser's network panel while you use the tool and you will see no upload.
- How do I convert HTML to PDF?
- The quickest free way is to open the .html file in your browser and use Print, then Save as PDF. In OpenAnyDoc, paste the HTML or open the file, choose A4 or Letter, click convert and download a PDF with searchable text, cleaned of scripts and forms; the HTML is converted in your browser and never uploaded.
- Can I convert a web page from its address?
- No. This page never fetches anything from the web. Open the page in your browser, save it as a file or copy its HTML source, then open or paste it here.
- Why does the PDF look different from the web page?
- Style sheets are removed and only inline style attributes are kept, scripts don't run and pictures from web addresses are left out. HTML written with inline styles keeps its look best.
- Can I search the text of the PDF?
- Yes. Each page carries its text, so it can be selected, searched and copied, Arabic included.
- Can I get an editable document instead?
- Yes. HTML to Word makes a .docx with Word's own headings, lists and tables that you can edit.
- Is it really free?
- Yes. There is no account, no watermark and no limit on how often you use it.
Why it's private: your files never leave your browser
Most online viewers upload your file to a server, so a copy of it leaves your device. OpenAnyDoc works the other way round: your browser reads the file and draws it on your screen. Nothing is uploaded, there is no account, and the file is gone from memory when you close the tab, so there is nothing for us to store, see or lose.
How we tell you about new features
Announcements are based on the release date shown to everyone, and nothing is stored on your device or sent anywhere.