See what a passkey really carries, byte by byte
Paste one Base64URL attestationObject and PasskeyLab unpacks the CBOR map, the 37-byte authenticatorData header, every flag bit, the COSE public key and the clientDataJSON. The same screen checks whether the RP ID hash and origin actually line up.
In one line: PasskeyLab is a free WebAuthn payload debugger that decodes locally in your browser, and the payload you paste is never sent anywhere.
- 100%runs in the browser
- 5sample payloads
- CBOR·COSEpure JavaScript decoder
- 0uploads
① Payload decoder
Paste an attestationObject or authenticatorData as Base64URL or hex, and a clientDataJSON as JSON. Auto-detect works out the format, then the CBOR, flags and COSE key are unpacked.
Decoded result
fmt=none · alg=ES256 · flags=UPUVBEBSAT · counter=0 · credId=32B
authenticatorData
| Length | 164 bytes |
|---|---|
| RP ID hash | a379a6f6eeafb9a55e378c118034e2751e682fab9f2d30ab13d2125586ce1947 |
| Flags | 0x5D UP · UV · BE · BS · AT |
| Signature counter | 0 |
| AAGUID | 00000000-0000-0000-0000-000000000000 |
| Credential ID | 32 bytes 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f |
| Extensions | none |
Flag bits
| Flag | Bit | Value | Meaning |
|---|---|---|---|
UP | 0x01 | 1 | User Present — the authenticator confirmed a user action such as a touch or a fingerprint. |
UV | 0x04 | 1 | User Verified — the user proved who they are with a PIN or biometrics. |
BE | 0x08 | 1 | Backup Eligible — this credential may be copied or synced to other devices. |
BS | 0x10 | 1 | Backup State — this credential actually has been backed up. BS=1 requires BE=1. |
AT | 0x40 | 1 | Attested credential data included — AAGUID, credential ID and COSE key follow. |
ED | 0x80 | 0 | Extension data included — authenticator extension output follows as CBOR. |
COSE public key
| Key type (kty) | EC2 (2) |
|---|---|
| Algorithm (alg) | ES256 (-7) |
| Curve (crv) | P-256 (1) |
| x | 461401509b8f99f6bbc86fe19b328aa57516aa4e92008932b9adb527ba8b06ca |
| y | 58d4d932184684527722801d55d089fa88948f2435901fc513756e140ed84103 |
clientDataJSON
| type | webauthn.create |
|---|---|
| challenge | AAECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxwdHh8 (32 bytes) |
| origin | https://example.com |
| crossOrigin | false |
| tokenBinding | none |
attestation statement (attStmt)
{}Signature
71 bytes · 3045022065e36750dbf876b9b8308dad9eaf4ddcbec1c6a382ca47c51b6d599401c91b040221009bffdfabb11e654e21…
Validation checks
- PassauthenticatorData is at least 37 bytes164 B
- PassUser Present (UP)1
- PassUser Verified (UV)1
- PassBackup (BE) and Backup State (BS) consistentBE=1 BS=1
- PassAttested credential data (AT)32 B
- PassCredential ID 16–1023 bytes32 B
- PassRP ID hash is 32 bytes32 B
- PassclientData typewebauthn.create
- Passchallenge is 16 bytes or more32 B
- Passorigin is a secure contexthttps
- PassSignature length71 B
- PassPublic key algorithmES256 (-7)
② RP ID and origin validation
The 32-byte rpIdHash decides which site a passkey belongs to. Compare SHA-256 of the RP ID with the hash in the payload and check how the origin relates to it.
| RP ID | example.com |
|---|---|
| SHA-256(RP ID) | a379a6f6eeafb9a55e378c118034e2751e682fab9f2d30ab13d2125586ce1947 |
| RP ID hash | a379a6f6eeafb9a55e378c118034e2751e682fab9f2d30ab13d2125586ce1947 |
| RP ID hash result | Match |
| clientData origin | https://example.com |
| Expected origin | https://example.com |
| Origin result | Match |
| RP ID vs origin host | Allowed The RP ID must equal the host or be a parent domain of it. |
The RP ID must equal the origin host or be a registrable parent domain of it. For origin https://login.example.com, an RP ID of example.com is allowed. A full public suffix (eTLD+1) list check is out of scope.
③ Real-device passkey sandbox
Create a real passkey on this browser and send the resulting attestationObject and signature straight into the decoder. There is no server verification, and the credential stays in this browser only.
Works only on HTTPS or localhost. Confirm with your fingerprint, face or PIN when the prompt appears. This site never stores or sends the credential.
④ Export
Copy or download the decoded summary as a Markdown table or JSON. The file is built in your browser and never uploaded.
Markdown preview
## PasskeyLab decode summary - Input format: attestationObject - attestation format: none - Signature algorithm: ES256 (-7) - RP ID hash: `a379a6f6eeafb9a55e378c118034e2751e682fab9f2d30ab13d2125586ce1947` - Flags: `0x5D` (UP=1 UV=1 BE=1 BS=1 AT=1 ED=0) - Signature counter: 0 - AAGUID: `00000000-0000-0000-0000-000000000000` - Credential ID: 32 B `000102030405060708090a0b0c0d0e0f…` - COSE public key: EC2 P-256 - x: `461401509b8f99f6bbc86fe19b328aa57516aa4e92008932b9adb527ba8b06ca` - y: `58d4d932184684527722801d55d089fa88948f2435901fc513756e140ed84103` - clientDataJSON: type=webauthn.create origin=https://example.com - challenge: `AAECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxwdHh8` - Signature: 71 B | Check | Result | Value | | --- | --- | --- | | authenticatorData is at least 37 bytes | Pass | 164 B | | User Present (UP) | Pass | 1 | | User Verified (UV) | Pass | 1 | | Backup (BE) and Backup State (BS) consistent | Pass | BE=1 BS=1 | | Attested credential data (AT) | Pass | 32 B | | Credential ID 16–1023 bytes | Pass | 32 B | | RP ID hash is 32 bytes | Pass | 32 B | | clientData type | Pass | webauthn.create | | challenge is 16 bytes or more | Pass | 32 B | | origin is a secure context | Pass | https | | Signature length | Pass | 71 B | | Public key algorithm | Pass | ES256 (-7) | Generated by PasskeyLab
How it works
The decoder follows the byte order written in the specifications, and every calculation finishes inside the browser.
attestationObject from a navigator.credentials.create() response as Base64URL, or the authenticatorData from get() as hex.attestationObject is a CBOR map with three keys: fmt, attStmt and authData. The decoder pulls out the authData bytes.Frequently asked questions
Is the payload I paste sent to a server?
No. This site has no server code, no API and no accounts. Every decode runs in your browser's JavaScript, and the payload is not written to localStorage either, so it disappears when you close the page. The only outbound request is the ad loader, and that runs only on *.opyeb.com hosts.
What is the difference between attestationObject and authenticatorData?
attestationObject is the CBOR map returned by a registration (create) response and holds three fields: fmt, attStmt and authData. authenticatorData is the byte string inside it, and it is also returned directly by an authentication (get) response. Its first 32 bytes are the RP ID hash, byte 33 holds the flags, the next four bytes are the signature counter, and when the AT flag is set the AAGUID, credential ID and COSE public key follow.
Can I use a passkey created here to sign in somewhere?
No. The sandbox only creates a credential bound to this site's origin inside your browser. There is no server verification, no stored challenge and no account link. It exists to show you the bytes a decoder would receive. A real service must issue the challenge and verify the signature itself.
rpIdHash keeps coming out as a mismatch. Why?
rpIdHash is SHA-256 of the RP ID string. If the RP ID is example.com but the origin is https://login.example.com, the hash is still computed over example.com. Put the exact RP ID that is in the attestation into field ② and compare again. If the hash matches and sign-in still fails, look at the origin, port and subdomain rules.
What do the BE and BS flags mean?
BE (Backup Eligibility) says this credential may be copied or synced to other devices; BS (Backup State) says it actually has been backed up. A passkey synced through iCloud Keychain or Google Password Manager usually shows BE=1, BS=1. A device-bound passkey shows both as 0, and BS=1 with BE=0 cannot occur in a conforming authenticator.
What does signature verification check?
It verifies an assertion signature over authenticatorData || SHA-256(clientDataJSON) with the COSE public key from the payload. The attStmt signature in a registration response covers a different message per attestation format, so this tool displays it but does not verify certificate trust. Run the sandbox assertion and you can see a signature verified against the key that was just created.
Are Apple and TPM attestations supported?
The decoder shows the format name and every attStmt field (x5c, pubArea, certInfo and so on). The samples are synthetic vectors that reproduce the structure; they were not produced by a real Apple or TPM authenticator, and the certificate is a self-signed test certificate. Validate a real chain with each platform's own verification tools.
Does it work on a phone?
The decoder and RP ID check behave the same in mobile browsers. The sandbox uses the platform authenticator on that device (fingerprint, face or PIN) and only opens over HTTPS or localhost. Tables stay inside a 390px viewport without horizontal scrolling.
WebAuthn and passkey debugging guides
From the byte layout to RP ID mismatches and attestation formats, in the order you meet them.
- The WebAuthn registration and authentication ceremoniesWhat the browser, server and authenticator each build and verify during create and get, field by field, and where implementations usually go wrong.
- The authenticatorData byte layout and flag bitsOffsets for the 37-byte header, AAGUID, credential ID, COSE key and extensions, with a worked hex example and the meaning of every flag.
- Reading CBOR and COSE public keys: ES256, RS256, Ed25519How the attestationObject CBOR map and the COSE key map (kty, alg, crv, x, y, n, e) are laid out, with byte-level examples and reconstruction steps.
- RP ID and origin validation: why passkeys bind to the wrong siteHow rpIdHash is computed, the protocol, host and port rules for origins, and the subdomain and localhost exceptions, with real mismatch cases.
- Attestation formats and the BE/BS flags: none, packed, tpm, appleHow fmt changes attStmt, what each format proves, and how the BE and BS flags identify synced passkeys and should change server validation.