Free tool

HTML to PDF

Paste or open HTML and CSS and get a PDF with real page breaks. Choose the paper size, margins and direction, add headers, footers, page numbers and a watermark, keep links clickable, and turn headings into bookmarks. You see every page before you download. You can also save the whole page as one long page. Your code and images never leave your device. Free, no signup, no watermark.

  • Code never uploaded
  • No signup
  • No watermark
Pages
Add some HTML to see the pages here.

1Page setup

You have a page made of HTML and CSS, and you need it as a PDF. An invoice, a resume, a report, a certificate, a receipt. Paste the code, pick a paper size, and look at the pages before you save anything. You can add page numbers, a header and footer, a watermark, and turn your headings into bookmarks. It all runs in your browser, so your code and your images stay on your device. Here is how it works, and where it falls short.

It can

  • Turn HTML and CSS into a PDF with real page breaks
  • Use A4, Letter, Legal, A3, A5, a custom size, or one long page
  • Add headers, footers, page numbers and a watermark
  • Keep links clickable and make bookmarks from headings

It cannot

  • Run JavaScript on your page
  • Open a live website from its address
  • Draw video, audio or embedded frames
  • Repeat a table heading on every page

Best for

  • Invoices, receipts and certificates
  • Resumes, letters and reports
  • Documentation and email templates
  • Pages you want to keep private

How it works

Your browser already knows how to lay out HTML. This tool uses that. It loads your code together with the images and fonts it needs, then cuts the result into pages the size of the paper you picked. Each page is drawn as a sharp picture, and the words, links and headings are placed on top so the PDF can still be searched and clicked.

How HTML becomes a PDF Four steps. Your HTML and CSS are loaded with their images and fonts. The page is cut into pages of the size you chose. Each page is drawn as images and fonts with one PDF with on top. The pages are saved as one PDF. Everything happens on your device. 1Loadyour HTML, CSS,a picture 2Splitinto pages ofthe size you pick 3Draweach page as asharp picture 4Saveinvisible textlinks and text All four steps run in your browser tab. Your code and images are never sent to our servers.

Loading, splitting, drawing and saving all happen in your browser tab.

What you see in the page preview is what ends up in the PDF.

That is worth knowing, because it means the PDF is made of pictures of your pages, not of live text and shapes. For most documents that is exactly what you want, since it looks the same everywhere. If you would rather have a PDF with real text and vector shapes, there is a Print / Save as PDF button for that. More on the difference further down.

Make a PDF in four steps

  1. Add your code. Paste HTML into the HTML tab and any extra styles into the CSS tab. You can also open an .html file, or start from one of six examples.
  2. Add your files. If your code uses a logo, a photo, a font or a stylesheet from your computer, drop it in the Files tab and use its file name in your code, like logo.png.
  3. Choose the page. Pick a size, direction and margins on the right. The page thumbnails update as you go, and you can untick any page you do not want.
  4. Press Make PDF. Watch the progress bar, then download the file. You can cancel at any time.
Try itOpen the Report example. In the Layout tab, set a new page at every Heading 1 and 2. In the Extras tab, turn on page numbers and type DRAFT as a watermark. Then look at the pages.

Paper size, margins and your own @page rule

Choose A4, Letter, Legal, Tabloid, A3 or A5, or type a custom width and height in millimetres. Direction can be portrait or landscape. Margins come as None, Narrow, Normal or Wide, or you can set the top, bottom, left and right yourself.

If your CSS already has an @page rule, the tool reads its size and margin and uses them, so a certificate written with @page{size:A4 landscape} comes out landscape without you touching anything. Untick that box if you would rather use the settings on the right.

There is also One long page. It makes a single page as tall as your content, which suits receipts, long screenshots and web-style pages that you do not want chopped into sheets.

Page breaks and layout

Content sizeFrom 50% to 150%. Smaller content fits more on a page. You can also fit a 768, 1024 or 1280 pixel wide layout onto the page, which helps when your page was designed for a desktop screen.
Styles to usePrint styles apply your @media print rules, like a normal print. Screen styles use the way the page looks on a monitor.
BackgroundsKeep background colors and images, or turn them off to save ink.
Big imagesShrink images that are wider or taller than the page so they are not cut off.
New page at a headingStart a new page at every Heading 1, at 1 and 2, at 1 to 3, or at every horizontal line.
Keep things wholeDo not cut pictures, table rows, list items, quotes or code blocks in half, and keep a heading together with the text after it.
Your own breaksCSS like break-before:page and page-break-after:always is respected.
Extra waitGives slow fonts or images more time to load before the page is drawn.

Headers, footers, numbers and a watermark

In the Extras tab you can type text for the left, center and right of the header and the footer. Use {page}, {pages}, {title}, {date} and {time} and they fill in on their own. For example, Page {page} of {pages} in the footer center gives you a numbered footer. Text is drawn in the top and bottom margins, so keep at least 12 mm there.

You can also add a simple page number in any corner, choose the number to start at, and skip the first page. The watermark takes your text, a color, an angle, an opacity and a size.

Links stay clickable. That covers web links, email links and links to another part of the same page, such as a contents list that jumps to a section. Headings from 1 to 6 become the bookmark list that PDF readers show at the side.

Make PDF or Print / Save as PDF?

The tool gives you two ways to get a PDF, and each is better at something different.

 Make PDFPrint / Save as PDF
Page contentPictures of your pagesReal text and vector shapes
Looks the same as the previewYesClose, but your browser does the page breaks
File sizeLargerUsually much smaller
Header, footer, watermarkYes, from this toolNo, only what your browser adds
Searchable text and linksYesYes
Works on every browserModern browsersDepends on the browser’s print window

If the file needs to be small, or you plan to print it at a very large size, try Print / Save as PDF. If you want the header, the watermark and a guaranteed look, use Make PDF.

Quality and file size

Sharpness can be Draft, Standard, High or Best. High is a good default. Best is for printing and makes a bigger file. JPEG keeps the file small and has a quality slider. Lossless picture type is sharper for thin lines but larger. Black and white turns every page grey, which is useful when you only need a plain copy.

What this tool cannot do

  • No JavaScript. Scripts are removed. Charts, menus and anything that builds itself after the page loads will be empty. Save the finished HTML instead.
  • No live websites. You cannot type an address and get a PDF of that site. Copy its HTML and CSS here, or use your browser’s own print option.
  • Blocked images and fonts. Some websites do not allow other pages to copy their files. When that happens, a note tells you which file is missing. Download it and add it in the Files tab.
  • Video, audio and frames. These become a grey box. A video poster picture is not used.
  • Table headings are not repeated. A long table is split across pages, but its heading row appears only once, at the top.
  • Pages are pictures in Make PDF. The file is larger than a native PDF, and the text cannot be edited afterwards, only searched and copied.
  • Fixed and sticky elements. A bar that is fixed to the top of the screen does not repeat on every page.
  • Very long documents. Hundreds of pages take time and memory. Save a range of pages at a time if your browser slows down.

My advice: always flick through the page thumbnails before you save. Page breaks are the one thing that is easy to miss.

Your code and files stay on your device

The editor, the page layout, the drawing and the PDF writing all run inside your browser tab. Your HTML, your CSS and the files you add are not uploaded to our servers, and nobody here sees them. No extra libraries are downloaded for this tool.

One honest detail. If your own code points to something online, such as a Google Fonts link or a picture on another site, your browser asks that site for it, as it would on any web page. Your last code and settings are saved in your browser’s own storage so they are there when you come back. Clear your site data to remove them.

Questions people ask

Is this HTML to PDF converter free?

Yes. There is no signup, no watermark added by us and no limit on how many PDFs you make. The site may show ads to cover its costs.

Is my code uploaded to a server?

No. Your HTML, CSS and files are read and drawn inside your browser on your own device. Nothing is sent to our servers.

How do I convert HTML to PDF?

Paste your HTML into the HTML tab, check the page thumbnails, choose a paper size if you need one, and press Make PDF. Then press Download.

Can I convert a web page by typing its address?

No. This tool works from code you give it. Copy the page’s HTML and CSS into the editor, or use the Print option in your browser for a live site.

Why is my image missing?

If it is on another website, that site may not allow copying. Download the picture, add it in the Files tab and use its file name in your code. Check the notes under the Make PDF button, they name the file.

How do I choose where the pages break?

Use CSS such as break-before:page in your own code, or open the Layout tab and start a new page at every heading or horizontal line. You can also stop pictures and table rows from being cut in half.

Can I add page numbers and a header or footer?

Yes. Open the Extras tab. Type text for the header or footer and use {page} and {pages} for the numbers, or turn on the simple page number option.

What is the difference between Make PDF and Print / Save as PDF?

Make PDF draws each page as a picture, so it looks the same as the preview and supports headers, footers and watermarks. Print / Save as PDF uses your browser, which keeps real text and vector shapes and gives a smaller file, but without those extras.

Can I make one long page instead of separate pages?

Yes. Choose One long page under Page size and set the width in pixels. The PDF will be one page as tall as your content.

Does it work on a phone or tablet?

Yes. The layout adapts to small screens. Typing code is easier on a computer, but you can open a file or paste code and make a PDF from your phone.

Waqas Amjad

Hi, I’m Waqas, the person behind Brivonto. I started this site because I wanted online tools that simply work, without sign-ups or watermarks. I build each tool myself and keep improving them based on your feedback. Questions or feedback?

Get in touch.