opyebPasskeyLab
OPYEB · serverless static tool

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.

Local only
Sample payloads

Decoded result

KindattestationObject
attestation formatnone
Signature algorithmES256 (-7)
FlagsUP · UV · BE · BS · AT
Signature counter0
AAGUID00000000-0000-0000-0000-000000000000

fmt=none · alg=ES256 · flags=UPUVBEBSAT · counter=0 · credId=32B

authenticatorData

Length164 bytes
RP ID hasha379a6f6eeafb9a55e378c118034e2751e682fab9f2d30ab13d2125586ce1947
Flags0x5D UP · UV · BE · BS · AT
Signature counter0
AAGUID00000000-0000-0000-0000-000000000000
Credential ID32 bytes 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f
Extensionsnone

Flag bits

FlagBitValueMeaning
UP0x011User Present — the authenticator confirmed a user action such as a touch or a fingerprint.
UV0x041User Verified — the user proved who they are with a PIN or biometrics.
BE0x081Backup Eligible — this credential may be copied or synced to other devices.
BS0x101Backup State — this credential actually has been backed up. BS=1 requires BE=1.
AT0x401Attested credential data included — AAGUID, credential ID and COSE key follow.
ED0x800Extension 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)
x461401509b8f99f6bbc86fe19b328aa57516aa4e92008932b9adb527ba8b06ca
y58d4d932184684527722801d55d089fa88948f2435901fc513756e140ed84103

clientDataJSON

typewebauthn.create
challengeAAECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxwdHh8 (32 bytes)
originhttps://example.com
crossOriginfalse
tokenBindingnone

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 IDexample.com
SHA-256(RP ID)a379a6f6eeafb9a55e378c118034e2751e682fab9f2d30ab13d2125586ce1947
RP ID hasha379a6f6eeafb9a55e378c118034e2751e682fab9f2d30ab13d2125586ce1947
RP ID hash resultMatch
clientData originhttps://example.com
Expected originhttps://example.com
Origin resultMatch
RP ID vs origin hostAllowed 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.

Get the payloadTake the attestationObject from a navigator.credentials.create() response as Base64URL, or the authenticatorData from get() as hex.
Unpack the CBORattestationObject is a CBOR map with three keys: fmt, attStmt and authData. The decoder pulls out the authData bytes.
Read the flags and keyIt then reads the 32-byte RP ID hash, the flag byte (UP/UV/BE/BS/AT/ED), the 4-byte counter, the AAGUID, the credential ID and the COSE key.
Check and exportCompare the RP ID hash and origin, review the validation checks, and copy the result as Markdown or JSON.

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.