JSON HMAC Verifier

Generate and verify HMAC signatures for JSON webhook payloads. Supports SHA-256, SHA-512, and other algorithms.

Input JSON
HMAC Output

Features

🔏 HMAC Generation

  • SHA-256, SHA-512, SHA-1 support
  • Outputs hex and Base64 formats
  • Auto-normalizes JSON before signing
  • Uses Web Crypto API (no server needed)

Signature Verification

  • Paste expected signature to verify
  • Supports hex and Base64 comparison
  • Handles GitHub/Stripe-style prefixes
  • Clear pass/fail status indicator

🔐 Privacy First

  • All computation runs in-browser
  • Secrets never leave your device
  • No server-side processing
  • Safe for sensitive webhook secrets

HMAC Webhook Guide

What is HMAC?

HMAC (Hash-based Message Authentication Code) is a mechanism for verifying the integrity and authenticity of a message using a shared secret key. Webhook providers use it to prove that a payload genuinely came from them.

# Node.js example
const crypto = require('crypto');
const secret = 'my-webhook-secret';
const payload = JSON.stringify(body);
const sig = crypto.createHmac('sha256', secret).update(payload).digest('hex');
// GitHub sends: X-Hub-Signature-256: sha256=<sig>