CBOR Encoder

Encode data using CBOR and the selected options.

Input: Structured JSONResult: Binary bytes

Text input

Run to see the result

Examples

CBOR Decode: Can encode decimal

Input

1.5

Expected answer

Hexadecimal bytes
f9 3e 00
Can encode boolean false

Input

false

Expected answer

Hexadecimal bytes
f4
Can encode boolean true

Input

true

Expected answer

Hexadecimal bytes
f5
Can encode integer

Input

15

Expected answer

Hexadecimal bytes
0f
Can encode list

Input

[0,1,2]

Expected answer

Hexadecimal bytes
83 00 01 02
Can encode map

Input

{"a":1,"b":2,"c":3}

Expected answer

Hexadecimal bytes
a3 61 61 01 61 62 02 61 63 03
Can encode text

Input

"Text"

Expected answer

UTF-8 text · exact bytes
dText

Format reference: CBOR Encode background and specification

Related tools

Browse data format tools