Skip to content
DockMe
All tools

HTML to PDF

Turn HTML markup into a downloadable PDF. Paste your content below to get started.

Completely freeNo watermarksNo registration

Enter up to 5 MB of valid HTML.

Your download starts automatically

How to use HTML to PDF

  1. Paste your HTML markup into the editor.
  2. Select Convert to PDF and wait for processing.
  3. Download the PDF and review its layout.

What to know before you start

  • Include CSS in a style element or inline styles to keep the document self-contained. There is no separate asset-upload field.
  • External images, fonts, and styles depend on availability to the server. Relative links to files on your computer will not work.
  • HTML input is limited to 5 MB. Complex content may exceed the processing timeout.

Files and submitted content are sent to the server for processing. DockMe does not persist or log document contents. Browser tools need no account; daily and input limits apply.

Frequently asked questions

Can I convert an HTML file?

This tool accepts pasted HTML markup. Open your HTML file in a text editor and paste its contents; the form does not upload an HTML file.

Can I include CSS?

Yes. Include styles in the HTML. Print rendering can differ from the browser view, so review the downloaded PDF.

Will local images and fonts appear?

Files on your computer are not uploaded with pasted HTML. Use self-contained content or resources accessible to the server; external resources may fail to load.

Do I need an account?

No account is required for the browser tool. Free usage has daily and input limits. Programmatic API access requires an account and API key.

Developer API

Generate PDFs from HTML in your application

Use a free account and API key to integrate PDF operations. Free includes 1,000 counted requests per UTC day and up to 3 active keys. Rate and input limits apply.

Replace YOUR_API_KEY and the sample input with your own values. A successful request saves a PDF to the output file.

curl --fail-with-body --request POST 'https://dockme.io/api/v1/pdf/from-html' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  --data '{"html":"<html><body><h1>Hello</h1></body></html>"}' \
  --output 'document.pdf'
Read API docs

DockMe ยท Free PDF tools. No watermarks.

API pricing

No registration needed for browser tools.