Ironpdf License: Key _top_
IronPDF License Key: A Complete Developer’s Guide
If you’ve used IronPDF — the popular .NET library for creating, editing, and signing PDFs — you know how powerful it is. But before you go to production, you’ll need a valid IronPDF license key.
In this post, we’ll cover everything from purchase to activation, plus debugging common key errors.
C# Example
using IronPdf;
// Apply license key at application startup (e.g., Program.cs or Global.asax) IronPdf.License.LicenseKey = "IRONPDF-YOUR-ACTUAL-KEY";ironpdf license key
Checking Your Current License Status
You can programmatically verify if IronPDF is licensed: IronPDF License Key: A Complete Developer’s Guide If
if (IronPdf.License.IsLicensed)
Console.WriteLine("✅ Licensed for production");
Console.WriteLine($"License type: IronPdf.License.LicenseType");
Console.WriteLine($"Expiration: IronPdf.License.ExpirationDate");
else
Console.WriteLine("⚠️ Running in trial mode");
Method 1: The Standard Way (C#)
Place this code in the Main method (for Console apps), Global.asax (for legacy ASP.NET), or Program.cs (for .NET Core/6+).
using IronPdf;// Go to the "Licensing" tab in your IronPDF dashboard to get your key. // Replace "YOUR-KEY-HERE" with the actual string. License.LicenseKey = "YOUR-KEY-HERE"; C# Example using IronPdf; // Apply license key
// Optional: You can also set it via the static class IronPdf.License.IsValidLicense("YOUR-KEY-HERE");
