Convert HTML to PDF
Paste HTML or drop an .html file and get a simple PDF of its text.
- 100% private
- No login
- No uploads
iHow to use
- Paste your HTML, drop an .html file, or press “Enter address” to read a public web page.
- Choose Page (the site as it looks), Text (real, selectable text) or Code. Then set the screen size, page size, orientation and margin.
- Click “Create PDF” and download the file.
iAbout HTML to PDF
HTML to PDF reads the structure of your HTML, then lays out the text with headings, paragraphs and lists on PDF pages.
It aims for a clean, readable document rather than a copy of how a web page looks.
The preview beside the box shows your pages as you type, and you can choose a sans-serif, serif or monospace font.
★Tips
- Use Page for a copy that looks like the site, and Text when you need to copy or search the words.
- Some sites block reading. If a page does not load, save it from your browser and drop the .html file.
- Need the opposite? Use PDF to HTML.
iWhat you need to know about HTML to PDF
HTML is the language of web pages. This converter keeps the readable content and drops the rest, so the PDF is simple and easy to print.
The work is done in your browser and your code is never uploaded.
Read our guide: How to convert text, Markdown or HTML to PDF.
✓Common uses
- Save an email or a snippet as a PDF
- Turn exported HTML into a document
- Archive the text of a page you saved
Questions
Can I convert a website address?
Yes. Press “Enter address”, type the address of a public web page and press “Get page”. The address and the page pass through our server to be read, and nothing is stored. The PDF itself is made in your browser. Pages that need a login cannot be read.
What is the difference between Page, Text and Code?
Page shows the site as it looks, like a screenshot, so the text in it cannot be selected. Text prints the readable content as real, selectable text. Code prints your HTML as it is, with line numbers.
What does Screen size do?
It sets how wide the page is drawn: Mobile, Tablet, Laptop, Desktop or your own screen. “One long page” puts the whole page on a single tall PDF page.
What is kept in Text view?
Headings, paragraphs, lists, quotes, code blocks and the text of tables. Images, colors and exact styling are not reproduced.
Is my HTML uploaded?
No. HTML you paste or drop is processed in your browser. Only a web address you enter is sent to our server, so it can read the page.
What if I paste a whole HTML document?
That works. In Text view the title, styles and scripts are ignored and the readable content is printed with headings, lists and the text of tables.
I pasted text that is not HTML. What happens?
It is printed as plain text, and the page offers a button to switch to Text to PDF.
Can I try it with an example?
Yes. Press Insert sample above the box to see how headings, lists and quotes look.