Skip to main content

Unlock PDF

SecurityUnlock PDF

The Unlock PDF API removes password protection from a PDF. You send the protected PDF as Base64 (docContent), docName, and password; optionally async. The API returns the unlocked PDF. Use the tester below to try it; more details are in the sections that follow.

Try the Unlock PDF API

Quick reference

Endpoint: POST /api/v2/Unlock · Required: api-key, docContent, docName, password

Try it live

Use the form below to send your API key, password-protected PDF (Base64), docName, password, and optional async. The response is the unlocked PDF (binary or polling URL when async). No code required—fill the fields and click Send request.

Loading API Tester...

Overview, parameters, and use cases

What is Unlock PDF?

Many PDFs are protected with a user or owner password. The Unlock PDF endpoint accepts such a file and the correct password, verifies it, and returns a new PDF that opens without a password. Content and layout stay the same; only the security restriction is removed. Use async for large files to avoid timeouts.

Key features

  • Password verification – The API checks the password you provide; if it matches, the document is decrypted and returned without protection.
  • Single request – Send docContent (Base64), docName, and password; no extra steps.
  • Asyncasync returns a URL to poll for the result when processing is asynchronous.
  • Works with other APIs – After unlocking, you can pass the result to Merge Multiple PDF Files, Compress PDF, or other PDF4me endpoints.
Best for

Use when you need to remove password protection before merge, compress, or other operations. To add protection use Protect Document.

Prerequisites

Before using this endpoint, make sure you have:

  • A valid PDF4me API key (Get your API Key)
  • A password-protected PDF file in Base64 format
  • The password for the PDF

Response Format

The API returns an unlocked PDF file without password protection.

Get Help