PageyPagey
Menu
Theme
Theme

HTML to PDF

Turn an HTML file into a PDF, printed as Chrome prints it, with its styles, pictures and background colours.

Included with paid plans. Free accounts can try it a few times a month. See the plansCreate a free account to use it.

Convert HTML to PDF

Turn an HTML file into a PDF, printed by Chrome with its styles, fonts, pictures and background colours, on A4 or Letter paper.

  1. 1

    Choose an HTML file.

  2. 2

    Pick the page size and which way round.

  3. 3

    Download the PDF.

HTML to PDF from your code

The same tool is an API endpoint. Send your files with an API key, then fetch the result when the job is done.

curl -X POST https://api.pagey.in/v1/html-to-pdf \
  -H "X-Api-Key: YOUR_KEY" \
  -F "files=@your-file"

Questions

Will pictures and styles in my HTML show up?

Yes, if they are on the internet or inside the file. Pictures, style sheets and fonts linked from public web addresses are loaded, and scripts run. Files linked from your own computer, beside the HTML file, can't be reached; put pictures inside the file instead.

How big can the file be?

Up to 10 MB, which leaves room for pictures written into the file itself.

Is HTML to PDF free?

It is included with our paid plans. A free account can try it a few times a month, and every paid plan includes more. Plans cost less than most.

What happens to my files?

Your uploads are deleted as soon as the job finishes. The file we make is deleted after an hour, or straight away if you press Delete now. We don't look at your files or keep copies.

Do I need to install anything?

No. It works in the browser on any computer, tablet or phone.

Can I use HTML to PDF from my own code?

Yes. Every tool is also an API endpoint. Send your files to POST /v1/html-to-pdf with an API key from your Account page, then download the result when the job is done.