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.
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.
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.
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.
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.
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.
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.
Document.pdf. Sets the Content-Disposition filename the browser offers to the visitor on save.@media print styles your page already declares for hardcopy.Pick the packaging that fits your stack.
Same SelectPdf rendering engine, three deliveries. The in-browser demo is for quick visual checks. The REST API is the right call for production conversions on any OS or language. The .NET library is best when you need in-process speed and no per-conversion cost.
Convert online, no signup
The widget above. Five-page cap, watermark on every page, Chromium engine. Best for trying out option combinations before you wire anything up. Try it →
REST APIFrom any language, on any OS
No watermark, no page cap, full 90-parameter surface, all four engines. Free trial — 200 conversions, no credit card. Plans from $19 / month. See the API →
.NET LIBRARYIn-process on Windows, perpetual licence
Install the NuGet package and convert in three lines of C#. No network call, no per-conversion cost. .NET 5–10 / Core / Framework 4.6.1+. From $499. See the library →
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.
X-SelectPdf-Demo-Clamped tells you what was capped.startup_mode=Manual require the paid API.503 Service Unavailable — retry shortly. Paid plans get a dedicated per-key concurrency budget (2–16 requests depending on tier).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.
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
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());
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);
}
);
Short list of the documents people ship daily.
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.
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.
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.
Online HTML to PDF, answered.
Six quick answers about the free online demo, the REST API and how they relate to the .NET library.
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.html or instructions_file_url parameters; sign up for a free API key to use them.