CBOR
Concise Binary Object Representation (CBOR) is a binary data serialization format loosely based on JSON authored by Carsten Bormann and Paul Hoffman. Like JSON it allows the transmission of data objects that contain name–value pairs, but in a more concise manner. This increases processing and transfer speeds at the cost of human readability. It is defined in IETF . Amongst other uses, it is the recommended data serialization layer for the CoAP Internet of Things protocol suite and the data format on which COSE messages are based. It is also used in the Client-to-Authenticator Protocol (CTAP) within the scope of the FIDO2 project. CBOR was inspired by MessagePack, which was developed and promoted by Sadayuki Furuhashi. CBOR extended MessagePack, particularly by allowing to distinguish text strings from byte strings, which was implemented in 2013 in MessagePack.
Concise Binary Object Representation (CBOR) is a binary data serialization format loosely based on JSON authored by Carsten Bormann and Paul Hoffman. Like JSON it allows the transmission of data objects that contain name–value pairs, but in a more concise manner. This increases processing and transfer speeds at the cost of human readability. It is defined in IETF . Amongst other uses, it is the recommended data serialization layer for the CoAP Internet of Things protocol suite and the data format on which COSE messages are based. It is also used in the Client-to-Authenticator Protocol (CTAP) within the scope of the FIDO2 project. CBOR was inspired by MessagePack, which was developed and promoted by Sadayuki Furuhashi. CBOR extended MessagePack, particularly by allowing to distinguish text strings from byte strings, which was implemented in 2013 in MessagePack. [{"x": 1, "yz": true}, [2, "w" --> 82 # array(2) A2 # map(2) 61 # text(1) 78 # "x" 01 # unsigned(1) 62 # text(2) 797A # "yz" F5 # primitive(21) 82 # array(2) 02 # unsigned(2) 61 # text(1) 77 # "w" Note: While the JSON representation requires 27 characters – the 5 spaces can be omitted – the same data is encoded in only 13 octets of CBOR. A short count of 31 is used with non-atomic types 2–5 to indicate an indefinite length; the payload is the following items until a "break" marker byte of 255 (type=7, short count=31). A short count of 31 is not permitted with the other atomic types 0, 1 or 6. Type 6 (tag) is unusual in that its count field encodes a value directly, but also has a payload field (which always consists of a single item). Extended counts, and all multi-byte values, are encoded in network (big-endian) byte order. The DAG-CBOR specification is a stricter subset of CBOR, developed by Protocol Labs. The problem that DAG-CBOR solves is that, in CBOR, an object can be serialized in more than one way. For example, {"b":1,"a":2} can be represented as either A2 # map(2) 61 # text(1) 62 # "b" 01 # unsigned(1) 61 # text(1) 61 # "a" 02 # unsigned(2) or A2 # map(2) 61 # text(1) 61 # "a" 02 # unsigned(2) 61 # text(1) 62 # "b" 01 # unsigned(1) This means that one object can have two different serializations. The DAG-CBOR specification uniquely picks a single CBOR representation, out of all possible CBOR representations of an object. Some objects that can have a CBOR representation no longer has a DAG-CBOR representation, because their nature does not allow for a unique representation. For example, an indefinite-length item (can be a string, byte sequence, list, and map) does not have a DAG-CBOR representation, even though it can have a CBOR representation. The DAG-CBOR specification allows consistent content-addressable storage. Specifically, a piece of data can be uniquely serialized as a sequence of bytes, and this sequence can then be hashed as its CID (content ID), usable for content-addressing. The name "DAG" denotes "directed acyclic graph", since the specification was produced specifically to allow for data objects in the form of Merkle DAGs. ==Notes== ==References== ==External links== Online tool to convert from CBOR binary to textual representation and back. CBOR Zone: Online tool to convert a CBOR item or a CBOR sequence in the format of HEX, Base64, Base64URL or CBOR Diagnostic Notation into another format.
References
- CBOR Design and Overview · retrieved 2024-05-31 · rev 1375259767
Cite this reference
MLA "CBOR Design and Overview." Bormann, Carsten; Hoffman, Paul (2013-07-28). 2024-05-31. https://www.ietf.org/proceedings/87/slides/slides-87-appsawg-2.pdf. Accessed 24 November 2026.
Chicago "CBOR Design and Overview." Bormann, Carsten; Hoffman, Paul (2013-07-28). 2024-05-31. https://www.ietf.org/proceedings/87/slides/slides-87-appsawg-2.pdf.
APA Bormann, Carsten; Hoffman, Paul (2013-07-28). (2024). CBOR Design and Overview. Retrieved November 24, 2026, from https://www.ietf.org/proceedings/87/slides/slides-87-appsawg-2.pdf
- RFC 8152: CBOR Object Signing and Encryption (COSE) · retrieved 2025-07-03 · rev 1375259767
Cite this reference
MLA "RFC 8152: CBOR Object Signing and Encryption (COSE)." Schaad, J. 2025-07-03. https://www.rfc-editor.org/rfc/rfc8152.html. Accessed 24 November 2026.
Chicago "RFC 8152: CBOR Object Signing and Encryption (COSE)." Schaad, J. 2025-07-03. https://www.rfc-editor.org/rfc/rfc8152.html.
APA Schaad, J. (2025). RFC 8152: CBOR Object Signing and Encryption (COSE). Retrieved November 24, 2026, from https://www.rfc-editor.org/rfc/rfc8152.html
- RFC 8392: CBOR Web Token (CWT) · retrieved 2025-07-03 · rev 1375259767
Cite this reference
MLA "RFC 8392: CBOR Web Token (CWT)." Jones, M. 2025-07-03. https://www.rfc-editor.org/rfc/rfc8392. Accessed 24 November 2026.
Chicago "RFC 8392: CBOR Web Token (CWT)." Jones, M. 2025-07-03. https://www.rfc-editor.org/rfc/rfc8392.
APA Jones, M. (2025). RFC 8392: CBOR Web Token (CWT). Retrieved November 24, 2026, from https://www.rfc-editor.org/rfc/rfc8392
- CBOR is not named after Bormann, despite the format's name coincidentally being an abbreviation of his own. [ 1 ] Wikipedia revision 1375259767, retrieved 2026-11-18 · retrieved 2026-11-17 · rev 1375259767
Cite this reference
MLA "CBOR is not named after Bormann, despite the format's name coincidentally being an abbreviation of his own. [ 1 ] Wikipedia revision 1375259767, retrieved 2026-11-18." CBOR is not named after Bormann, despite the format's name coincidentally being an abbreviation of his own. 2026-11-17. https://en.wikipedia.org/w/index.php?oldid=1375259767. Accessed 24 November 2026.
Chicago "CBOR is not named after Bormann, despite the format's name coincidentally being an abbreviation of his own. [ 1 ] Wikipedia revision 1375259767, retrieved 2026-11-18." CBOR is not named after Bormann, despite the format's name coincidentally being an abbreviation of his own. 2026-11-17. https://en.wikipedia.org/w/index.php?oldid=1375259767.
APA CBOR is not named after Bormann, despite the format's name coincidentally being an abbreviation of his own. (2026). CBOR is not named after Bormann, despite the format's name coincidentally being an abbreviation of his own. [ 1 ] Wikipedia revision 1375259767, retrieved 2026-11-18. Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1375259767
- CoAP — Constrained Application Protocol | Overview · retrieved 2016-08-27 · rev 1375259767
Cite this reference
MLA "CoAP — Constrained Application Protocol | Overview." 2016-08-27. https://web.archive.org/web/20170103121639/http://coap.technology/. Accessed 24 November 2026.
Chicago "CoAP — Constrained Application Protocol | Overview." 2016-08-27. https://web.archive.org/web/20170103121639/http://coap.technology/.
APA encyclopegia.org. (2016). CoAP — Constrained Application Protocol | Overview. Retrieved November 24, 2026, from https://web.archive.org/web/20170103121639/http://coap.technology/
- Discussions on the upcoming MessagePack spec that adds the string type to the protocol · retrieved 2022-01-03 · rev 1375259767
Cite this reference
MLA "Discussions on the upcoming MessagePack spec that adds the string type to the protocol." 2022-01-03. https://github.com/msgpack/msgpack/issues/128. Accessed 24 November 2026.
Chicago "Discussions on the upcoming MessagePack spec that adds the string type to the protocol." 2022-01-03. https://github.com/msgpack/msgpack/issues/128.
APA encyclopegia.org. (2022). Discussions on the upcoming MessagePack spec that adds the string type to the protocol. Retrieved November 24, 2026, from https://github.com/msgpack/msgpack/issues/128
- RFC 8949: Concise Binary Object Representation (CBOR) · retrieved 2022-03-24 · rev 1375259767
Cite this reference
MLA "RFC 8949: Concise Binary Object Representation (CBOR)." Bormann, Carsten; Hoffman, Paul E. 2022-03-24. https://www.rfc-editor.org/rfc/rfc8949.html#name-cbor-tags-registry. Accessed 24 November 2026.
Chicago "RFC 8949: Concise Binary Object Representation (CBOR)." Bormann, Carsten; Hoffman, Paul E. 2022-03-24. https://www.rfc-editor.org/rfc/rfc8949.html#name-cbor-tags-registry.
APA Bormann, Carsten; Hoffman, Paul E. (2022). RFC 8949: Concise Binary Object Representation (CBOR). Retrieved November 24, 2026, from https://www.rfc-editor.org/rfc/rfc8949.html#name-cbor-tags-registry
- IPLD ♦ Codec Docs: DAG-CBOR · retrieved 2026-03-16 · rev 1375259767
Cite this reference
MLA "IPLD ♦ Codec Docs: DAG-CBOR." 2026-03-16. https://ipld.io/docs/codecs/known/dag-cbor/. Accessed 24 November 2026.
Chicago "IPLD ♦ Codec Docs: DAG-CBOR." 2026-03-16. https://ipld.io/docs/codecs/known/dag-cbor/.
APA encyclopegia.org. (2026). IPLD ♦ Codec Docs: DAG-CBOR. Retrieved November 24, 2026, from https://ipld.io/docs/codecs/known/dag-cbor/
- CBOR — Concise Binary Object Representation | Overview · retrieved 2016-08-23 · rev 1375259767
Cite this reference
MLA "CBOR — Concise Binary Object Representation | Overview." Bormann, Carsten. 2016-08-23. https://cbor.io/. Accessed 24 November 2026.
Chicago "CBOR — Concise Binary Object Representation | Overview." Bormann, Carsten. 2016-08-23. https://cbor.io/.
APA Bormann, Carsten. (2016). CBOR — Concise Binary Object Representation | Overview. Retrieved November 24, 2026, from https://cbor.io/
- FIDO2 Project · retrieved 2018-05-10 · rev 1375259767
Cite this reference
MLA "FIDO2 Project." 2018-05-10. https://fidoalliance.org/fido2/. Accessed 24 November 2026.
Chicago "FIDO2 Project." 2018-05-10. https://fidoalliance.org/fido2/.
APA encyclopegia.org. (2018). FIDO2 Project. Retrieved November 24, 2026, from https://fidoalliance.org/fido2/
- RFC 8949: Concise Binary Object Representation (CBOR) · retrieved 2021-12-25 · rev 1375259767
Cite this reference
MLA "RFC 8949: Concise Binary Object Representation (CBOR)." Bormann, Carsten; Hoffman, Paul E. 2021-12-25. https://www.rfc-editor.org/rfc/rfc8949.html. Accessed 24 November 2026.
Chicago "RFC 8949: Concise Binary Object Representation (CBOR)." Bormann, Carsten; Hoffman, Paul E. 2021-12-25. https://www.rfc-editor.org/rfc/rfc8949.html.
APA Bormann, Carsten; Hoffman, Paul E. (2021). RFC 8949: Concise Binary Object Representation (CBOR). Retrieved November 24, 2026, from https://www.rfc-editor.org/rfc/rfc8949.html
Cite this article
MLA
"CBOR." encyclopegia.org, 2026, https://encyclopegia.org/wiki/cbor. Accessed 24 November 2026.
Chicago
"CBOR." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/cbor.
APA
encyclopegia.org. (2026). CBOR. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/cbor
Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON