← All tools
WhatsApp Cloud API · Dev · Free · no signup

HMAC-SHA256 webhook signature validator

Paste the secret, raw body and signature header to validate a webhook in real time with the Web Crypto API. Supports X-Hub-Signature-256 (Meta) and timestamped X-Atol-Signature.

Paste the header to validate

Expected: —

⚠ Timestamp more than 5 min off: reject in production (replay protection).

100% local computation (Web Crypto API). Prefer staging secrets.

Frequently asked

Why does my signature never match?

Almost always because the body was re-serialized. HMAC is computed over the exact bytes received: use the raw body, before any JSON.parse.

How do Meta's and Atol's headers differ?

Meta signs the body only (X-Hub-Signature-256 = sha256=HMAC(app secret, body)). Atol Connect signs `${timestamp}.${body}` and sends X-Atol-Timestamp so you can reject replays older than 5 minutes.

Is the secret sent anywhere?

No. It uses your browser's Web Crypto API. Still, prefer a staging secret.

This is the pocket version

The tool above solves one calculation. What I do under contract is keep it running inside your system, on your data, with nobody typing anything.