Convert to PDF

HTML to PDF

Choose a file or paste the markup. The headings, paragraphs, lists, tables and links are read out of it and typeset onto the page size you choose — as text you can select and search, in a file of a few kilobytes.

On this device

Choose the paper

This is the document printed plainly, not a picture of a website. Styling is not reproduced, and that is what keeps the text real.

    Opened on this device · never transmitted

    Nothing you paste is rendered: it is read as data, so no script in it can run and no image or stylesheet is fetched. If you choose a file as well, the file is used.

    What this tool does, exactly

    What it does
    Reads the structure out of your markup — headings, paragraphs, lists, quotes, preformatted blocks, tables and links — and lays it out on the page size, orientation, margin and text size you choose. Links stay clickable and the text stays selectable, searchable and readable aloud.
    What it does not do
    Reproduce the design. Your fonts, colours, background images, flex and grid layout and anything drawn by script are not carried over. This is the document, typeset for paper; if you need a picture of the website, take a screenshot instead.
    Why nothing runs
    Every mainstream HTML-to-PDF converter renders the markup in a real page to measure it, which means executing a stranger's file in somebody's browser. This one parses the markup as data and never inserts it into a document, so no script in it can run, no remote image or stylesheet is fetched, and javascript: links are dropped.
    The same file every time
    Two conversions of the same markup produce identical bytes. Nothing about your machine — no timestamp, no time zone, no random identifier — is written into the file.

    About this tool

    Why does the PDF not look like the web page?

    Because it is the document rather than a photograph of it. Your fonts, colours and layout are not reproduced; the headings, paragraphs, lists, tables and links are. The trade is deliberate: you get selectable, searchable text in a file of a few kilobytes instead of a heavy picture of a page.

    Can I paste markup instead of choosing a file?

    Yes. Either works, and if you do both, the file wins. Pasting is often the easier path on a phone, where saving a page as a file is more work than copying it.

    Is it safe to convert someone else's HTML?

    That is the reason this tool works the way it does. The markup is parsed as data and never inserted into a page, so scripts in it cannot execute in your browser, no remote resource is fetched while it is read, and javascript: links are removed rather than carried into the PDF.

    Do images come across?

    No. Fetching them would mean reaching out to somebody else's server from your browser, which is exactly what this tool is built to avoid. The number of images left out is reported with the result rather than passed over in silence.

    Do links still work in the PDF?

    Yes. Every link with a real web address becomes a clickable area in the finished document, and the count is shown with the result. Relative links — the ones that only mean something on the original site — are dropped, because they would lead nowhere.

    More convert to pdf tools · All 10 · How they work