HTML to PDF
Convert HTML to PDF.
Loading…
About HTML to PDF
Sometimes the thing worth keeping is a snippet of markup: an invoice template, an email body, a documentation fragment. Paste HTML into the box or load a .html file and it is drawn onto A4 paper with a built-in stylesheet for headings, lists, tables, code blocks and links. Only the content itself is rendered. Linked stylesheets and scripts are not fetched, so a page that depends on them will not look the way it does in a browser.
Features
- Pasted markup or an uploaded .html or .htm file
- Built-in styles for headings, lists, tables, code blocks, quotes and links
- Automatic page breaks on A4 paper with 12 mm margins
- A clear message when the text contains characters the PDF fonts cannot draw
- The markup is rendered in your browser, with no server upload
Limitations
- Uploaded files can be up to 5 MB.
- Linked stylesheets, scripts and other external resources are not loaded, and complex CSS layouts may not match what a browser shows.
- Pages are always A4 and only Latin characters can be drawn, so CJK, Arabic or emoji text is refused with a message.
- Downloading the PDF needs a free account.
How it works
- Paste your markup into the HTML source box, or drop a .html or .htm file onto the upload area to fill the box.
- Edit the source in the box if you want to change it.
- Select Convert to PDF and wait for the Rendering message to clear.
- Select Download PDF to save document.pdf.
Frequently asked questions
- Linked stylesheets and scripts are never fetched, and the tool applies its own built-in stylesheet to headings, lists, tables and code. Markup that relies on external CSS for its look will come out plain.
- No. The tool takes HTML source, either pasted or from a .html file, and has no field for an address. Save the page's source, or copy the markup you need, and paste it into the source box.
- The PDF is drawn with standard built-in fonts, which cover Latin letters and common punctuation only. Text such as Chinese, Arabic or emoji is rejected with a list of the offending characters so you can remove them.
- No. The markup is read and drawn into the PDF inside your browser tab, so the source itself is not uploaded. Saving the finished file is the only step that involves an account.
