Free tool

HTML to PDF

Paste HTML, get the PDF a real browser would print — your CSS included.

An A4 PDF rendered by Chromium, with your own stylesheet and print rules applied.

Capture settings
Enter the source, choose your options, then run the capture.
Result
Your capture will appear here and stay in view.
waiting

No result yet

Complete the settings and run the tool. Images, PDFs, text, and video all preview in this panel.

Send this exact request
cURL, TypeScript and Python are generated from the same configuration as the demo.
curl --fail-with-body "https://api.pagecapture.dev/v1/take" \
  -H "X-Access-Key: $PAGECAPTURE_KEY" \
  -H "Content-Type: application/json" \
  --data '{"html":"<article style=\"font: 16px system-ui; padding: 40px\"><h1>Invoice #1041</h1><p>Due in 30 days.</p></article>","format":"pdf","pdf_paper_format":"a4","pdf_print_background":true}' \
  -o capture.pdf

Questions

Does my own CSS apply?
Yes, including `@media print`. That is the difference from Markdown to PDF, whose template is fixed so its output stays reproducible.
Can I convert a PNG, JPEG or other image file into a PDF?
Not by uploading the file. This renders markup, so an image becomes a PDF when your HTML points at it — an `img` tag with an https source works, and the capture waits for it to load before printing. Converting an image file you already have on disk is a file-conversion job, which is a different kind of tool.
Can I convert a PDF back to HTML?
No. This renders HTML into a PDF, not the other way around. Extracting content back out of a PDF is a different kind of tool.
What happens to images, fonts and stylesheets I link to?
They are fetched the way a browser would fetch them, and each one passes the same egress policy as the page itself.