Convert between CBOR, CDN (CBOR-EDN), and JavaScript values — with CDDL validation

@cbortech/cbor is a zero-dependency TypeScript library implementing RFC 8949 CBOR and CDN (CBOR-EDN) draft-25 / draft-26, and RFC 8610 CDDL — encode, decode, parse, pretty-print, and round-trip with full fidelity. Everything on this page runs in your browser using the library itself, including live validation of CDN input against CDDL schemas.

npm install @cbortech/cbor
Open playground ↓
CDN (CBOR-EDN)
CBOR