Home > Tools > CBOR Decoder

CBOR Decoder

Parse CBOR (RFC 8949) data from hex or Base64URL input. Decodes all major types: integers, byte strings, text strings, arrays, maps, semantic tags, and simple values. Used in FIDO2/CTAP2, COSE, SenML, and CDDL development.

Presets:

Decoded Output

Paste CBOR data above and click Decode.

CBOR Major Types

TypeMajor (3 bits)DescriptionExample
uint0Unsigned integer0x1a → 26
nint1Negative integer0x20 → -1
bytes2Byte string0x44 h'DEADBEEF'
text3UTF-8 text string0x64 "test"
array4Array (homogeneous)0x82 0x01 0x02 → [1,2]
map5Map (key-value)0xa1 0x01 0x02 → {1:2}
tag6Semantic tag0xc1 0x1a → epoch(26)
simple7Simple/float0xf4 → false, 0xfb → float64

Related

All decoding runs in your browser. No data is uploaded anywhere. CBOR (Concise Binary Object Representation) is defined in RFC 8949.