Skip to main content

CBOR Codec

v1.0.0

Encode and decode CBOR (Concise Binary Object Representation) data

Encodes JSON values into CBOR (Concise Binary Object Representation, RFC 8949) binary format and decodes CBOR hex back to readable JSON — all client-side.

How to use
  • Toggle between Encode and Decode mode using the switcher above the panels.
  • Paste any JSON value (objects, arrays, strings, integers, booleans, null) on the left to encode, or a CBOR hex string on the right to decode.
  • This tool supports CBOR major types 0–5 and simple values. Floats, tags, and indefinite-length items are not supported.
  • Map keys are coerced to strings in the decoded JSON output because JSON only supports string keys.