CBOR / COSE Decoder

100% Client-Side
Privacy: 100% Client-Side. Your data never leaves this browser tab. Processing uses Web APIs and client-side libraries only.

Decode CBOR (RFC 8949) to diagnostic notation, read COSE_Sign1 messages, COSE keys and CWT claims, and verify COSE signatures with a JWK — 100% in-browser.

Decode CBOR (RFC 8949) from hex or Base64 into diagnostic notation. COSE messages (RFC 9052), COSE keys and CWT claims (RFC 8392) are labelled, and a COSE_Sign1 signature can be verified with a public JWK. WebAuthn attestation objects and authenticator data (authData) are decoded too. Used by passkeys, mdoc/mDL and CWTs. Nothing leaves the browser.

Diagnostic notation

Outer tag: 18 (COSE_Sign1)

18([
  h'a10126',
  {
    4: h'3131'
  },
  h'546869732069732074686520636f6e74656e742e',
  h'8eb33e4ca31d1c465ab05aac34cc6b23d58fef5c083106c4d25a91aef0b0117e2af9a291aa32e14ab834dc56ed2a223444547e01f11d3b0916e5a4c345cacb36'
])

COSE_Sign1

{
  "alg (1)": "ES256 (-7)"
}
{
  "kid (4)": "h'3131'"
}
This is the content.
JSON

What are CBOR and COSE?

CBOR (RFC 8949) is a compact binary data format, like JSON but with byte strings and tags. COSE (RFC 9052) builds signatures, MACs and encryption on top of it, the way JOSE does for JSON.

They show up in WebAuthn attestation objects, CBOR Web Tokens (CWT), mobile driving licences (mdoc/mDL) and IoT protocols. This decoder prints the exact structure, names COSE and CWT labels, converts COSE keys to JWKs and checks COSE_Sign1 signatures.

How to use this tool

  1. Paste CBOR as hex, Base64 or Base64URL; it decodes as you type.
  2. Read the diagnostic notation, and for COSE_Sign1 the headers and payload (CWT claims are named).
  3. Paste the signer's public JWK and click Verify signature.

Frequently asked questions

Is my data uploaded?

No. Decoding and signature checks run in your browser.

Which signature algorithms can be verified?

ES256, ES384, ES512, EdDSA / Ed25519, PS256, PS384, PS512 and RS256, using the browser's WebCrypto.

Does it keep indefinite-length items and tags?

Yes. The diagnostic notation shows indefinite-length strings, arrays and maps with the _ marker, and every tag number.