PDF / Documents Free Tier Available

PDFGenerator

Convert HTML to PDF with full CSS support. Includes headers, footers, page numbers, and custom fonts.

Free tier: 100 PDFs/month Method: POST

Quick Start

Get started with PDFGenerator in 3 steps:

  1. 1. Get your free API key (instant, no credit card)
  2. 2. Activate your key to unlock all endpoints
  3. 3. Make your first request using the examples below

Endpoint

POST https://freeapitools.dev/api/v1/pdf/generate

Parameters

Name Type Required Description
html string Required HTML content
format string Optional A4, Letter, Legal
api_key string Required Your API key. Get one free →

Code Examples

cURL

curl -X POST https://freeapitools.dev/api/v1/pdf/generate \
  -H "Content-Type: application/json" \
  -d '{"html":"example"}'

Node.js / JavaScript

const response = await fetch('https://freeapitools.dev/api/v1/pdf/generate', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    'X-API-Key': 'YOUR_API_KEY'
  },
  body: JSON.stringify({"html":"example"})
});
const data = await response.json();
console.log(data);

Python

import requests

response = requests.post(
    'https://freeapitools.dev/api/v1/pdf/generate',
    json={"html":"example"},
    headers={'X-API-Key': 'YOUR_API_KEY'}
)
print(response.json())

Example Response

{
  "url": "https://cdn.freeapitools.dev/pdfs/doc_abc.pdf",
  "pages": 3,
  "size_kb": 156
}

Rate Limits

Plan Limit Price
Free 100 PDFs/month $0 / month
Enhanced (10x) 10x free tier limits $0 / monthcomplete compatibility check
Unlimited No limits $0 / monthsend environment profile

Start Using PDFGenerator for Free

Get your API key instantly. No credit card, no signup form — just a simple API call.

Get Free API Key →