---
title: fbp, fbc & fbclid Debugger Tool | Plainrouter
description: Parse, validate, and convert Meta _fbp, _fbc, and fbclid values locally in your browser. Decode creation timestamps, catch accidental hashing, and test CAPI.
last_updated: 2026-11-24
---

# fbp, fbc & fbclid Debugger Tool

> Free, browser-local interactive debugger at [https://plainrouter.com/tools/fbp-fbc-debugger](https://plainrouter.com/tools/fbp-fbc-debugger). Parse, validate, and convert Meta `_fbp`, `_fbc`, and `fbclid` values locally in your browser tab without a signup gate.

## Privacy boundary

Every check runs locally inside your browser tab:

- Your input never leaves this tab and is never logged or persisted on Plainrouter servers.
- The page itself still loads Plainrouter's site analytics, which never receives the values you enter.
- Input textareas, fields, and decoded output previews are marked `ph-no-capture`.
- No account or login is required.

## What this debugger checks

### Auto-detected inputs

Paste any of the following (or click one of the three built-in presets: Valid `_fbc` + `_fbp`, Broken Lowercased / Hashed `_fbc`, or Landing URL `?fbclid=...`):

- Full or schemeless Meta ad landing URL containing `?fbclid=...`
- Raw `fbclid` click identifier string
- `_fbc` cookie value (bare, quoted, or with `_fbc=` / `fbc=` prefix)
- `_fbp` cookie value (bare, quoted, or with `_fbp=` / `fbp=` prefix)
- Pasted `Cookie:` or `Set-Cookie:` headers, tab-separated rows, or multi-line pairs

### Structural parser rules

Meta `_fbp` and `_fbc` cookies follow `fb.<subdomainIndex>.<creationTimeMs>.<randomOrFbclid>`:

| Segment | Expected value | Checks performed |
| --- | --- | --- |
| 1. Prefix | `fb` | Requires exact lowercase `fb`. Flags uppercase `FB` or missing prefix. |
| 2. Subdomain index | `0`, `1`, or `2` (server default: `1`) | Meta documents `0` (`com`), `1` (`example.com`), and `2` (`www.example.com`), and requires `1` when building `fbc` on a server without saving a cookie. Plainrouter Signals accepts `0` to `2` and drops indexes above `2`. |
| 3. Creation timestamp | 13-digit Unix ms | Decodes to UTC and local browser time. Flags Unix seconds (`< 1e11`), future clock skew, and pre-2015 dates; notes `_fbc` timestamps older than Meta's recommended 90-day cookie expiry without marking them invalid. |
| 4. Random ID or `fbclid` | Digits (`_fbp`) or mixed-case token (`_fbc`) | Flags all-lowercase or all-uppercase `fbclid` values likely corrupted by case conversion, accidental 64-character SHA-256 hex digests, and invalid characters. |

### Accidental SHA-256 hash detection

Meta Conversions API requires `user_data.fbp` and `user_data.fbc` raw and unhashed. If a 64-character hexadecimal string is pasted as `_fbp`, `_fbc`, or inside the fourth dot-separated segment, the debugger raises an error explaining that Meta cannot match hashed browser or click IDs.

### `fbclid` to `_fbc` converter

Convert a landing URL or raw `fbclid` into three ready-to-copy outputs with customizable subdomain index (defaults to `1`, Meta's required server-side value when not saving a cookie), millisecond creation timestamp, and optional cookie domain (derived from the pasted URL host):

1. Formatted `_fbc` cookie value (`fb.<subdomainIndex>.<creationTimeMs>.<fbclid>`).
2. `Set-Cookie` HTTP header example with Meta's recommended 90-day `Max-Age=7776000`, `SameSite=Lax`, and `Secure`.
3. Meta CAPI `user_data.fbc` JSON snippet.

Set `_fbc` only after marketing consent where the law requires it (see [How consent works for server-side tracking](/library/server-side-consent)), and only when no `_fbc` exists yet or the `fbclid` changed.

## Capture consented browser and click IDs automatically with Plainrouter Signals

Plainrouter Signals captures eligible `fbclid` parameters at landing time, formats `_fbp` and `_fbc` with accurate millisecond timestamps, forwards them unhashed to Meta Conversions API, and shows collection, eligibility, delivery, and Meta acceptance for the events it sends. See [Plainrouter Signals](/product/signals).

## Frequently asked questions

### Does my cookie value or landing URL leave my browser?

No. Parsing, timestamp decoding, SHA-256 detection, and fbclid to _fbc conversion all run locally in your browser tab. Your input never leaves this tab and is never logged on Plainrouter servers. The page itself still loads Plainrouter's site analytics, which never receives the values you enter.

### Should I SHA-256 hash fbp or fbc before sending them to Meta CAPI?

No. Meta requires fbp and fbc raw and unhashed in user_data. Hashing either identifier into a 64-character SHA-256 hex digest destroys the `fb.<subdomainIndex>.<creationTimeMs>.<value>` structure and prevents Meta from matching the browser or click.

### Why did my _fbc stop matching after converting a URL to lowercase?

The fbclid segment at the end of _fbc is case-sensitive. Running .toLowerCase() on landing URLs, query parameters, or cookie values corrupts the click identifier so Meta can no longer attribute the conversion back to the original ad click.

### What timestamp and subdomain index belong in a generated _fbc cookie?

Use the 13-digit Unix timestamp in milliseconds when the visitor first landed with fbclid, never Unix seconds and never a later purchase timestamp. Meta documents subdomain indexes 0 (com), 1 (example.com), and 2 (www.example.com), and says to use 1 when building fbc on a server without saving an _fbc cookie. Plainrouter Signals accepts indexes 0 to 2.

## Related resources

- [What are fbp and fbc in Meta CAPI?](/library/fbp-fbc)
- [How fbclid and _fbc formatting work](/library/fbclid)
- [Plainrouter Signals](/product/signals)
- [Meta Conversions API: how it works and how to set it up](/library/meta-conversions-api)
- [What is Meta Event Match Quality (EMQ)?](/library/meta-event-match-quality)
- [How Meta event_id deduplication works](/library/meta-event-id-deduplication)
- [How consent works for server-side tracking](/library/server-side-consent)
