---
title: 'Meta CAPI Payload Validator & SHA-256 Tool'
description: 'Validate Meta Conversions API JSON payloads locally in your browser. Check user_data SHA-256 hashing, fbp/fbc format, event_id dedup, and custom_data.'
canonical: 'https://plainrouter.com/tools/meta-capi-validator'
last_updated: 2026-11-25
---

# Meta CAPI Payload Validator & SHA-256 Tool

[Open the interactive browser tool](/tools/meta-capi-validator) to validate Meta Conversions API (CAPI) JSON payloads locally in your browser before sending them to Graph API. Your payload never leaves this tab, no signup is required, and nothing is logged or transmitted to Plainrouter servers. All pre-hash normalization and SHA-256 hashing runs locally via the browser Web Crypto API (`crypto.subtle.digest('SHA-256', ...)`). The page itself still loads Plainrouter's site analytics.

## How to use this validator

1. **Paste your CAPI JSON or pick a preset**: Paste a full `{"data": [...]}` request body or a single event object. Use the presets to compare a clean Purchase, a broken payload, and an offline CRM Lead.
2. **Fix hashing, timestamps, and dedup errors**: Review categorized errors and warnings for plaintext PII, wrongly hashed `fbp`/`fbc`, millisecond `event_time`, missing `event_id`, and Purchase revenue types.
3. **Copy normalized SHA-256 output or SDK code**: Copy the browser-hashed JSON payload, a cURL command for Graph API testing, or a `@plainrouter/sdk` snippet to automate delivery and diagnostics.

## Meta CAPI `user_data` hashing reference

The most common Meta Conversions API bugs come from either sending plaintext PII or accidentally SHA-256 hashing browser and click identifiers that Meta requires raw.

### Must normalize & SHA-256 hash (lowercase 64-hex)

Normalize first (lowercase, trim, strip punctuation/symbols per field spec), then hash with SHA-256. Omit unknown fields instead of hashing empty or placeholder strings. For `external_id`, Meta accepts plain values but recommends SHA-256 hashing.

- `em`, `ph`, `fn`, `ln`, `ge`, `db`, `ct`, `st`, `zp`, `country`
- `external_id` (recommended)

### Must NOT be hashed (send raw)

Never SHA-256 hash these parameters. Preserve exact capitalization on `fbc` (`fbclid` is case-sensitive) and pass raw cookie values without `_fbp=` / `_fbc=` prefixes.

- `client_ip_address`, `client_user_agent`, `fbp`, `fbc`, `subscription_id`, `fb_login_id`, `lead_id`, `anon_id`, `page_id`, `page_scoped_user_id`, `ctwa_clid`, `ig_account_id`, `ig_sid`

### Pre-hash normalization rules

Unparseable `db`, non-2-letter `country`, and unknown `ge` values are omitted from the sanitized output rather than emitted in plaintext.

| Field | Raw example | Normalized form | Hashing |
| --- | --- | --- | --- |
| `em` | `"  Alice.Smith@Example.COM "` | `alice.smith@example.com` | SHA-256 lowercase hex |
| `ph` | `"+1 (415) 555-0199"` | `14155550199` | SHA-256 lowercase hex |
| `fn` | `"  José "` | `josé` | SHA-256 lowercase hex |
| `ln` | `"O'Connor "` | `oconnor` | SHA-256 lowercase hex |
| `ct` | `"San Francisco "` | `sanfrancisco` | SHA-256 lowercase hex |
| `st` | `" CA "` / `" Bavaria "` | `ca` (2-letter US) / `bavaria` (non-US) | SHA-256 lowercase hex |
| `zp` | `" 94107-1234 "` | `94107` | SHA-256 lowercase hex |
| `country` | `" US "` | `us` (2-letter ISO code only) | SHA-256 lowercase hex |
| `ge` | `"Female"` | `f` (`f` or `m` only) | SHA-256 lowercase hex |
| `db` | `"2/16/1997"` / `"1990-05-14"` | `19970216` / `19900514` (`YYYYMMDD`) | SHA-256 lowercase hex |
| `fbp` | `"fb.1.1700000000000.1234567890"` | Pass verbatim | Do NOT hash |
| `fbc` | `"fb.1.1700000000000.IwAR0AbC123"` | Pass verbatim (preserve case) | Do NOT hash |

## Frequently asked questions

### Does my payload leave my browser?

No. Validation, pre-hash normalization, and SHA-256 hashing run locally in your browser tab using the Web Crypto API (crypto.subtle.digest). Your payload never leaves this tab and is never logged on Plainrouter servers. The page itself still loads Plainrouter's site analytics, without carrying any pasted payload.

### Which Meta CAPI fields must not be hashed?

Never SHA-256 hash fbp, fbc, client_ip_address, client_user_agent, subscription_id, fb_login_id, lead_id, anon_id, page_id, page_scoped_user_id, ctwa_clid, ig_account_id, or ig_sid. Meta expects these identifiers raw and cannot match them if hashed. Normalize and SHA-256 hash PII customer parameters (em, ph, fn, ln, ge, db, ct, st, zp, and country) as 64-character lowercase hex; hashing external_id is also recommended.

### Why does Meta reject event_time in milliseconds?

Meta Conversions API requires event_time as a 10-digit integer Unix timestamp in seconds, not JavaScript's 13-digit millisecond Date.now() value. Sending milliseconds (values greater than 1e11) or timestamps older than 7 days causes Meta to reject the request. This checker also flags event_time more than 5 minutes ahead of your clock, which usually means a clock or units bug. Divide milliseconds by 1000 and floor (Math.floor(Date.now() / 1000)).

### How do I verify deduplication after fixing the payload?

Send the identical event_name and event_id from both your browser Meta Pixel (fbq('track', 'Purchase', ..., { eventID })) and your server CAPI request (event_id). Temporarily include test_event_code and check Events Manager Test Events to confirm Meta marks the browser and server copies as deduplicated, then remove test_event_code before deploying to production.

## Move from manual payload checks to verifiable Meta CAPI delivery

Plainrouter Signals receives consented browser and server conversion events, normalizes and SHA-256 hashes permitted customer keys, pairs `event_id` with Meta Pixel, and stores delivery evidence so you can inspect every accepted or rejected event.

- [Explore Plainrouter Signals](/product/signals)
- [Compare Plainrouter with other server-side setups](/compare)
- [Meta CAPI TypeScript SDK recipe](https://plainrouter.com/docs/sdk/recipes/meta-conversions)

## Meta Conversions API implementation guides

- [Meta Conversions API: how it works and how to set it up](/library/meta-conversions-api)
- [How Meta event_id deduplication works](/library/meta-event-id-deduplication)
- [What are fbp and fbc in Meta CAPI?](/library/fbp-fbc)
- [How fbclid and _fbc formatting work](/library/fbclid)
- [What is Meta Event Match Quality (EMQ)?](/library/meta-event-match-quality)
- [Server-side consent and Limited Data Use (LDU)](/library/server-side-consent)
- [Why Meta CAPI events are missing or duplicated](/library/meta-capi-missing-duplicate-events)
- [Testing events in Meta Events Manager](/library/meta-events-manager)
