⌘ FREE ONLINE DEMO · NO SIGNUP URL OR RAW HTML · UP TO 5 PAGES · WATERMARKED

HTML to PDF online. Paste a URL, get a PDF.

Convert any web page or raw HTML to PDF right in your browser — no signup, no API key, no download. The free demo below runs the same SelectPdf engine as the paid REST API and the .NET library; it caps output at five pages and stamps a watermark so it stays a demo and not a production endpoint. Try it now ↓ or get a free API key for unmetered, watermark-free conversions.

LIVE DEMO · NO KEY REQUIRED

Convert HTML to PDF online, right here.
Paste a URL, watch it convert.

Real conversion through our watermarked online endpoint — no signup, no key. We render the page, return a real PDF, and tell you exactly how long it took. Open Options to customise page size, margins, security, viewport size and load timing before you convert.

Web page options
Widthpx
Heightpx
Min loadsec
Max loadsec
Page margins
Toppt
Rightpt
Bottompt
Leftpt
Demo limits: rendered with Chromium, output capped at 5 pages, watermarked, load time clamped. The result panel shows what was clamped — remove every limit with a free API key.
· ms · p · WATERMARKED DEMO
§WHAT YOU CAN CONVERT

Three sources, one PDF.

The online HTML to PDF service accepts three input shapes. The in-browser demo above covers the first two directly; the third is one method call away on the REST API.

URL

Any public web page

Paste an https:// URL — invoice page, blog post, dashboard, statement, contract. SelectPdf fetches the page, runs HTML5/CSS3/JavaScript, and returns the rendered PDF.

RAW HTML

A string you build server-side

Send the HTML source as a string. Add an optional base URL so relative <img>, <link> and <script> paths resolve against your own host while the page renders.

FILE UPLOAD

Multipart HTML/CSS bundle

POST an HTML file (and supporting assets) as multipart/form-data. Requires the REST API — the in-browser demo accepts URL and raw HTML only.

§OUTPUT OPTIONS

Every knob the online converter exposes.

The eight option groups below are available on every online conversion — the in-browser demo, the REST API and the .NET library. Open Options on the demo to set them visually, or pass them as query/body parameters when calling the API. The full 90-parameter reference lives on the API page.

PAGE SIZE
Default A4. Other values: A1 · A2 · A3 · A5 · Letter · HalfLetter · Ledger · Legal. Set custom width/height in points for non-standard formats.
ORIENTATION
Default Portrait. Switch to Landscape for wide tables, charts or photo layouts.
FILE NAME
Default Document.pdf. Sets the Content-Disposition filename the browser offers to the visitor on save.
PAGE MARGINS
All four margins, in points (1pt = 1/72in). Default 5pt on every side. Set to 0 for an edge-to-edge PDF, or larger for printer-safe gutters.
PAGE NUMBERS
When enabled, the current page number is rendered in the footer of every PDF page. Disable for one-page documents that don't need pagination.
PDF SECURITY
Optional user password (required to open the PDF) and owner password (required to print, copy or edit). Either or both can be set.
CSS PRINT MEDIA
Render with the CSS Print media type instead of Screen — picks up @media print styles your page already declares for hardcopy.
WEB PAGE WINDOW
Viewport width (default 1024px) and height (auto when 0). Match the layout breakpoint your site renders at to avoid mobile-stack reflows in the PDF.
LOAD TIMING
Min load waits N seconds before snapshotting (default 1s) — helps pages with deferred JavaScript. Max load is the upper bound (default 30s, up to 120s) before a timeout error.
§DEMO LIMITS

What the free demo won't do.

Honest disclosure — the in-browser demo trades production guarantees for zero-friction try-it. Hit any of the limits below and you have outgrown the demo; the free API key removes every one of them.

PAGES PER PDF
Capped at 5 pages. Output longer than that is truncated; the response header X-SelectPdf-Demo-Clamped tells you what was capped.
WATERMARK
Every demo PDF carries a SelectPdf watermark. The licensed REST API and the licensed .NET library both produce watermark-free PDFs.
RENDERING ENGINE
Demo conversions always run on Chromium. The full API exposes four engines — WebKit, WebKit Restricted, Blink and Chromium — selectable per request.
INPUT SHAPE
URL only in the in-browser widget. The REST API accepts URL or raw HTML string or multipart HTML file upload, plus a base-URL parameter for relative asset resolution.
LOAD TIMING
Min load and max load are clamped to demo-safe ranges. Long-running conversions and pages with startup_mode=Manual require the paid API.
CONCURRENCY
A global concurrency cap protects the demo endpoint. When the cap is reached, the request returns 503 Service Unavailable — retry shortly. Paid plans get a dedicated per-key concurrency budget (2–16 requests depending on tier).
PERSISTENCE
PDFs are streamed back and discarded immediately. The demo does not store output, log URLs or retain anything beyond standard request metrics.
IN CODE

The same conversion, three lines of code.

Once the in-browser demo confirms the output looks right, here's the equivalent call against the REST API — cURL for the smoke test, then the official client libraries for production. Same engine, same options, no watermark, no five-page cap. Seven official client libraries are available — see the full set on the API page.

convert.sh
curl -X POST https://selectpdf.com/api2/convert/ \
  -d "key=$SELECTPDF_KEY" \
  -d "url=https://en.wikipedia.org/wiki/PDF" \
  -d "page_size=A4" \
  -d "page_orientation=Portrait" \
  --output wikipedia-pdf.pdf
Convert.cs
using SelectPdf.Api;

var client = new HtmlToPdfClient(apiKey);
client.setPageSize(PageSize.A4);
client.setPageOrientation(PageOrientation.Portrait);
client.setMargins(0);

// Convert a live URL to a local PDF
client.convertUrlToFile(
    "https://en.wikipedia.org/wiki/PDF",
    "wikipedia-pdf.pdf");

Console.WriteLine("Pages: " + client.getNumberOfPages());
convert.js
const selectpdf = require('selectpdf');

const client = new selectpdf.HtmlToPdfClient(
  process.env.SELECTPDF_KEY
);
client.setPageSize('A4');
client.setPageOrientation('Portrait');
client.setMargins(0);

// Convert a live URL to a local PDF
client.convertUrlToFile(
  'https://en.wikipedia.org/wiki/PDF',
  'wikipedia-pdf.pdf',
  function (err, fileName) {
    if (err) return console.error(err);
    console.log('Saved', fileName);
  }
);
§WHAT PEOPLE CONVERT ONLINE

Short list of the documents people ship daily.

FINANCE

Invoices & receipts

Render the same invoice template the customer sees on screen, attach the PDF to the billing email, archive it against the order record. URL-in, PDF-out.

REPORTING

Reports & dashboards

Convert a logged-in analytics page or a server-rendered report to PDF on a schedule. Use the viewport-width option to match the layout breakpoint the dashboard renders at.

DOCUMENTS

Certificates & contracts

Single-page PDFs generated on demand from a templated HTML page. Password-protect with the owner password to gate print/copy, or leave open for downstream signing.

?FAQ

Online HTML to PDF, answered.

Six quick answers about the free online demo, the REST API and how they relate to the .NET library.

Yes. The in-browser demo on this page is free, no signup and no API key required. It runs the same engine as the paid REST API and the .NET library, with a watermark and a five-page cap so it stays a demo and not a production endpoint.
Five pages per conversion. PDFs longer than five pages are truncated and the response header X-SelectPdf-Demo-Clamped tells you what was capped. Use the paid HTML to PDF API for any document length — plans start at $19 per month and remove every demo limit.
Sign up for a free API key — 200 conversions on the trial, no credit card, no watermark. Or run the SelectPdf .NET library trial in-process — the library trial is also watermarked, but the licensed library and the licensed API both produce watermark-free PDFs.
No. The online demo streams the generated PDF straight back to your browser and discards it immediately. Nothing is persisted on disk and nothing is logged beyond standard request metrics. The same applies to the paid REST API — conversions are not retained server-side.
Not in the in-browser widget on this page — the demo accepts a public URL only. The full HTML to PDF REST API accepts URL, raw HTML string and multipart file uploads via the html or instructions_file_url parameters; sign up for a free API key to use them.
Three packagings of the same SelectPdf engine. The online demo is a free, watermarked, five-page in-browser tool for quick visual checks. The HTML to PDF REST API is a paid metered endpoint callable from any language on any OS, with no watermark and no page limit. The .NET library runs in-process on Windows with a perpetual per-developer license — no per-conversion cost, no network call.