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, no watermark and no page limit. The free converter runs the same SelectPdf engine as the REST API and the .NET library. To convert from your own code, get a free API key.
Convert HTML to PDF online, right here.
Paste a URL or HTML, watch it convert.
A real conversion, free — no signup, no key, no watermark. 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 online converter 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 online converter accepts URL and raw HTML only.
Every knob the online converter exposes.
The eight option groups below are available on every online conversion — the online converter, the REST API and the .NET library. Open Options on the converter to set them visually, or pass them as query/body parameters when calling the API. The full 98-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 free online converter is for one-off conversions. The REST API is the right call for production conversions on any OS or language. The .NET library is best when you want a perpetual license and no per-conversion cost, on Windows, Linux or macOS.
Convert online, no signup
The widget above. No watermark, no page limit, Chromium engine, a limit on conversions per hour. Best for one-off conversions and for trying out options before you wire anything up. Try it →
REST APIFrom any language, on any OS
No watermark, no page cap, full 98-parameter surface, all four engines. Free trial — 200 conversions, no credit card. Plans from $19 / month. See the API →
.NET LIBRARYWindows, Linux and macOS, perpetual license
Install the NuGet package for your platform and convert in three lines of C#. SelectPdf.Universal runs on Windows, Linux and macOS on Apple Silicon, on .NET 8, .NET 10 and .NET Standard 2.0 (.NET Framework 4.6.1 and later); the classic library covers Windows and .NET Framework 2.0 and later. No per-conversion cost. From $499. See the library →
What the free converter won't do.
The online converter is free for one-off conversions. For automation, batches and the full option set, the free API key is the next step.
startup_mode=Manual require the API.The same conversion, three lines of code.
Once the online converter 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. 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://selectpdf.com" \ -d "page_size=A4" \ -d "page_orientation=Portrait" \ --output selectpdf.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://selectpdf.com",
"selectpdf.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://selectpdf.com',
'selectpdf.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 converter, the REST API and how they relate to the .NET library.
html or instructions_file_url parameters; sign up for a free API key to use them.