01What is WebAuthn Response Decoder?
WebAuthn Response Decoder takes the JSON a browser returns from a passkey registration or sign-in and shows what is inside each field. Most of that JSON is base64url text and binary CBOR, which is hard to read when you debug a failed login. Paste the output of PublicKeyCredential.toJSON(), or the same shape from your server logs. A bare "response" object works too. The clientDataJSON field is base64url-decoded and shown as JSON, so you can read the type, challenge and origin. The tool also checks that the challenge is valid base64url. The authenticatorData bytes are split as the W3C WebAuthn Level 3 spec lays them out: a 32-byte rpIdHash, one flags byte and a 4-byte big-endian signCount. Each flag bit is listed by name: UP, UV, BE, BS, AT and ED, plus the two reserved bits. When AT is set, the tool reads the attested credential data. That is the 16-byte AAGUID, a 2-byte credential ID length, the credential ID and the credential public key as a COSE key. Common COSE labels such as kty, alg, crv, x and y are named, so you can see an ES256 P-256 key at a glance. RSA keys show n and e. When ED is set, the extensions CBOR is decoded too. For registrations, the attestationObject is decoded with a small built-in CBOR decoder that follows RFC 8949. It shows fmt and the attStmt contents, with byte strings as hex. The authData inside it is then parsed as above. The decoder handles indefinite lengths, tags, half floats and 64-bit integers. For sign-ins, the signature is shown as hex and the userHandle is shown as given. Here is a worked example. Suppose a registration has a flags byte of 0x45. The tool lists UP, UV and AT as set and the rest as clear. Because AT is set, it then shows the AAGUID as a dashed UUID and the credential ID in base64url and hex. If the key map holds kty 2, alg -7 and crv 1, the labels read EC2, ES256 and P-256. The tool warns about a few spec problems. The WebAuthn spec says BS must be 0 when BE is 0, so that case is flagged. It also flags a missing UP flag, a credential ID longer than 1023 bytes and trailing bytes. It does not verify signatures, attestation certificate chains, the challenge, the origin or the rpIdHash. Use a server library for that. Everything runs in your browser and nothing is uploaded.
Web developers and identity engineers adding passkey sign-in and debugging WebAuthn registration or authentication. The tool runs entirely in your browser, so your data never leaves your device.
02How to use WebAuthn Response Decoder
- In your browser code, call credential.toJSON() and copy the result, or copy the request body your server received
- Paste the JSON into the input box
- Read the decoded clientDataJSON and check type, challenge and origin
- Check the flags and signCount in authenticatorData
- For a registration, check the AAGUID, credential ID, COSE key and attestation format
03Worked examples
- Input:
Registration JSON with attestationObject (example 1 in the tool) - Result:
fmt none; flags 0x5d (UP, UV, BE, BS, AT set); AAGUID 00000000-0000-0000-0000-000000000000; COSE kty 2 (EC2), alg -7 (ES256), crv 1 (P-256) - A synthetic passkey registration decoded from its attestationObject. The output is trimmed: the x and y key coordinates (32 bytes each) are left out.
- Input:
{"response":{"clientDataJSON":"eyJ0eXBlIjoid2ViYXV0aG4uZ2V0Ii...","authenticatorData":"EBESExQVFhcYGRobHB0eHyAhIiMkJSYnKCkqKywtLi8BAAAABw","signature":"MAYCAQECAQI","userHandle":"dXNlci0x"}} - Result:
clientData type webauthn.get; flags 0x01 (UP only); signCount 7; signature hex 3006020101020102; userHandle dXNlci0x - A sign-in (assertion) response. There is no attestationObject, so the tool reads authenticatorData directly.
- Input:
{"response":{"authenticatorData":"EBESExQVFhcYGRobHB0eHyAhIiMkJSYnKCkqKywtLi8QAAABAKo"}} - Result:
flags 0x10 (BS only); signCount 256; warnings: BS is set but BE is not. The spec says BS must be 0 when BE is 0. UP (user present) is not set. Most relying parties require it. 1 unexpected trailing byte(s) after authenticatorData. - A malformed authenticatorData that still parses but trips three warnings.
- Input:
{"response":{"clientDataJSON":"eyJ0eXBlIjoid2ViYXV0aG4uZ2V0Ii...","authenticatorData":"EBESExQVFhcYGRobHB0eHyAhIiMkJSYnKCkqKywtLi-FAAAAKqFrY3JlZFByb3RlY3QC"}} - Result:
clientData type webauthn.get; flags 0x85 (UP, UV, ED set); signCount 42; extensions {"credProtect": 2} - With the ED flag set, the tool decodes the CBOR extension map that follows the sign counter.
- Input:
{"response":{"authenticatorData":"EBESExQVFhcYGRobHB0eHyAhIiM"}} - Result:
authenticatorData is 20 bytes; it must be at least 37. - Truncated data is rejected, since the RP ID hash, flags and counter alone need 37 bytes.
04Common use cases
- Checking whether a passkey was created as backup eligible (synced) or device bound
- Reading the AAGUID to see which authenticator model made a credential
- Confirming that user verification (UV) happened during sign-in
- Debugging a server that rejects a registration by looking at the raw attestation fields
- Watching signCount values across sign-ins while testing an authenticator
05Tips
- A signCount of 0 is common for synced passkeys; the spec allows authenticators that do not keep a counter
- BE tells you whether the credential may be backed up, and BS tells you whether it is backed up now
- An all-zero AAGUID often comes with fmt none, where the authenticator does not identify itself
- The rpIdHash should equal SHA-256 of your RP ID; compare it with a hash you compute yourself
06Related concepts
WebAuthn, passkey, FIDO2, CBOR, COSE key, AAGUID.
Frequently Asked Questions
What is WebAuthn Response Decoder?
WebAuthn Response Decoder is a free, browser-based developer tool on AIDToolStack. Decode a WebAuthn or passkey response in your browser: clientDataJSON, authenticatorData flags, signCount, AAGUID, COSE key and attestation CBOR. It requires no installation or sign-up and works entirely in your browser.
Is WebAuthn Response Decoder free to use?
Yes. No sign-up, no fees and no usage cap.
Does WebAuthn Response Decoder store my data?
No. It runs in your browser; nothing is uploaded.