Skip to content

Free · No sign-up · Nothing is uploaded

Check a PDF's digital signature without uploading it

PDF digital signature

Choose a signed PDF and we tell you whether the signed content has changed, who signed, with which certificate and issuer, when, and whether anything was added afterwards. Everything runs in your browser: the PDF is never uploaded.

Your PDF never leaves your computer: it is read and checked in the browser. No request carries its content.

What it checks

What this tool tells you (and what it does not)

  • Whether the PDF is signed and how many signatures it has, in signing order.
  • Integrity: whether the digest of the signed bytes matches the signature and the signature verifies with the certificate's public key.
  • Changes after signing: whether something was appended that the signature does not cover.
  • The certificate: holder (and tax ID if present), issuer, validity dates and whether it declares itself qualified.
  • The date: from a verified timestamp if there is one; otherwise, the date declared by the signing software.

What it does not check: revocation and trusted lists

Full validation also checks whether the certificate was revoked and whether the issuer is a trusted provider. That requires online lookups, and nothing leaves your browser here, so we do not check revocation (OCSP/CRL) or the [EU trusted lists](https://eidas.ec.europa.eu/efda/trust-services/browse/eidas/tls) (eIDAS Regulation, art. 22). That is why we never call a signature legally «valid».

For full validation use VALIDe (Spanish Government) or the European Commission DSS. Both receive your file: VALIDe accepts up to 8 MB with a security code, and the Commission states its DSS is a demo and that files are transmitted to its infrastructure.

How it works

How a PDF signature is checked

When a PDF is signed, the software leaves a gap in the file, hashes everything else and stores the signature in the gap. The signature dictionary lists the signed parts in /ByteRange and holds the signature in /Contents (ISO 32000-1, section 12.8).

  1. 101

    Locate

    /ByteRange [a b c d]

    We find each signature and the two parts of the file it covers.

  2. 202

    Digest

    SHA-256(signed bytes)

    We hash those parts and compare with the digest inside the signature.

  3. 303

    Verify

    certificate public key

    We check the signature was made with the key of the embedded certificate (CMS, RFC 5652).

  4. 404

    Dates

    timestamp · certificate

    We read the timestamp and check the certificate was valid at that time.

If the signature does not match, something inside the signed content changed (or the signature is damaged): an advanced signature must make «any subsequent change» detectable (eIDAS Regulation, art. 26(d)). If the signature is fine but does not reach the end of the file, something was appended later: harmless (another signature, validation data) or a content change.

PAdES

What PAdES is and which PDF signature formats we support

PAdES (PDF Advanced Electronic Signatures) is the European standard for advanced signatures in PDF: ETSI EN 319 142-1.

/SubFilterWhat it isChecked?
ETSI.CAdES.detachedPAdES: detached CMS with CAdES attributesYes
adbe.pkcs7.detachedDetached CMS (the most common)Yes
adbe.pkcs7.sha1Legacy: the signature contains the document's SHA-1. Used by Spain's Official Gazette (BOE)Yes
ETSI.RFC3161Document timestamp (no signer)Listed, not treated as a signature
Want a real example? Every BOE PDF is sealed, e.g. Law 6/2020.

Code

Check PDF signatures from your own software

This tool uses PKI.js (BSD-3-Clause), which verifies CMS (RFC 5652) and timestamps (RFC 3161) with the browser's own cryptography:

check-pdf-signature.js · JavaScript
// Check the FIRST signature of a PAdES PDF
// (/SubFilter adbe.pkcs7.detached or ETSI.CAdES.detached) with PKI.js.
import * as asn1js from "asn1js";
import * as pkijs from "pkijs";

async function checkPdfSignature(bytes) { // bytes: Uint8Array with the PDF
  const text = new TextDecoder("latin1").decode(bytes);
  const m = /\/ByteRange\s*\[\s*(\d+)\s+(\d+)\s+(\d+)\s+(\d+)\s*\]/.exec(text);
  if (!m) return { signed: false };
  const [a, b, c, d] = m.slice(1).map(Number);

  // The CMS signature (RFC 5652) sits, hex-encoded, in the gap between both ranges.
  const hex = text.slice(b + 1, c - 1);
  const cms = Uint8Array.from(hex.match(/../g), (h) => parseInt(h, 16));
  const signed = new Uint8Array(b + d);
  signed.set(bytes.subarray(a, a + b), 0);
  signed.set(bytes.subarray(c, c + d), b);

  const info = new pkijs.ContentInfo({ schema: asn1js.fromBER(cms).result });
  const sd = new pkijs.SignedData({ schema: info.content });
  let intact = false;
  try {
    const r = await sd.verify({ signer: 0, data: signed.buffer, extendedMode: true });
    intact = r.signatureVerified === true;
  } catch {
    intact = false; // digest mismatch or signature does not verify
  }
  // coversAll = false → something was appended to the PDF after signing
  return { signed: true, intact, coversAll: c + d === bytes.length };
}

FAQ

PDF digital signature FAQ

Is my PDF uploaded?

No. The file is read and checked in your browser. No request carries the PDF's content.

How do I know whether a PDF is digitally signed?

Drop it in the tool: every signature is listed with its signer and status. A drawn or scanned signature is just an image, not a digital signature.

Does it check revocation?

No. Revocation needs an online lookup (OCSP/CRL). Use VALIDe or the European Commission DSS for that.

Why is the certificate expired if the signature is fine?

What matters is whether it was valid at signing time. Qualified certificates last at most five years in Spain.

Does it support XAdES, .p7s or .csig files?

No, only signatures inside a PDF (PAdES and adbe.pkcs7). Use VALIDe for the others.

About

About this validator

Built by Black Wings, a software studio in Valencia (Spain) working with small and medium businesses. Our validators are free, single-purpose tools.

  • Verification: PKI.js 4.0.1 with the browser's WebCrypto.
  • Standards: ISO 32000-1, ETSI EN 319 142-1 (PAdES), ETSI EN 319 412-5, RFC 5652 and RFC 3161.
  • Not an official validation service and not affiliated with any authority or trust service provider.
  • Reviewed: 22 November 2026.

Privacy

What happens to your PDF

Nothing leaves your computer. The PDF is read and checked by your browser: we do not upload or store it, and no request carries its content. When you pick a file, the browser only downloads the verification code (PKI.js) from our site, like the rest of the page. More in our privacy policy.

Other validators

More free validators

Need this inside your own software?

Validating IBANs and tax IDs when a customer signs up, checking whole lists or connecting invoicing to the bank: that is the kind of work we do at Black Wings.

Tell us about it