0
0

CBOR Decode

Egor VolchenkoEgor Volchenko
CreatedNov 26, 2026
UpdatedNov 26, 2026

This CBOR decoder reads CBOR bytes represented as Base64 or Hex and displays their values as formatted JSON. Use it to inspect a serialized test payload or compare a binary response with an expected structure. JSON cannot preserve every CBOR type exactly.

1
1

How to use CBOR Decode

Use the following steps to process a small test input.

Inspect a CBOR payload

  1. Enter the complete Base64 or Hex payload in Input text. Do not paste a diagnostic-notation expression.
  2. Select Hex under Input Encoding: for hexadecimal bytes or Base64 for Base64 data. The default UTF-8 choice is also treated as Base64 here.
  3. Leave Auto / Live on to update the result as you edit. To run manually, turn it off and click Run.
  4. Read CBOR Decode Result. Byte strings are shown as number arrays, and large integer values are shown as strings.
  5. Click Copy to copy the result. Use Clear where shown, or the field clear controls, to remove the text.

Input gwECAw== with Base64 selected, or 83010203 with Hex selected, produces the JSON array [1,2,3] displayed with indentation.

A rejected request may leave an earlier result visible. Clear the fields and recheck the input before relying on a new calculation.

Understand the JSON conversion

CBOR has byte strings, maps, big integers, and other values that do not map perfectly to JSON. This display converts byte arrays to numeric arrays, big integers to strings, and Map values to JSON objects. Map key types can be lost.

Use decoding for inspection

A readable result establishes that the supplied bytes can be decoded by this implementation. It does not validate an application schema, authenticate a message, or prove that re-encoding the displayed JSON will reproduce the original bytes.

Frequently asked questions

Use Hex or Base64 under Input Encoding:. For this binary operation the default UTF-8 selection also reads the pasted value as Base64.

API — CBOR to JSON Converter

Automate this tool directly from your scripts, CI/CD pipelines, or backend applications via HTTP POST.

No API Key Required 60 req/min
https://million.tools/api/v1/run/cbor-decode

Request Parameters (JSON / Form Data)

  • start (or input)

    Input text

    Type: string Default: —
  • input_encoding

    Input Encoding

    hex hex_ignore_non_hex base64 utf-8 utf-16le utf-16be windows-1251 windows-1252
    Type: string Default: utf-8
bash — cURL
curl -X POST https://million.tools/api/v1/run/cbor-decode \
  -H "Content-Type: application/json" \
  -d '{"start":"83010203","input_encoding":"hex"}'
const response = await fetch('https://million.tools/api/v1/run/cbor-decode', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
      "start": "83010203",
      "input_encoding": "hex"
  }),
});

const data = await response.json();
console.log(data.result);
import requests

response = requests.post(
    'https://million.tools/api/v1/run/cbor-decode',
    json={
        "start": "83010203",
        "input_encoding": "hex",
    },
    timeout=15,
)

data = response.json()
print(data['result'])
$ch = curl_init('https://million.tools/api/v1/run/cbor-decode');
curl_setopt_array($ch, [
    CURLOPT_POST           => true,
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER     => ['Content-Type: application/json'],
    CURLOPT_POSTFIELDS     => json_encode([
        'start' => '83010203',
        'input_encoding' => 'hex',
    ]),
]);

$response = json_decode(curl_exec($ch), true);
curl_close($ch);

echo $response['result'] ?? '';
{
    "status": "success",
    "tool": "cbor-decode",
    "service": "cbor_decode",
    "result": "[\n    1,\n    2,\n    3\n]",
    "results": {
        "result": "[\n    1,\n    2,\n    3\n]"
    }
}
Egor Volchenko
Egor Volchenko Developer & Author

Hi! I’m a WordPress developer with over 10 years of experience. I love Tailwind CSS, clean code, and intuitive interfaces. I’m currently working on million.tools — a service with convenient online tools for everyday tasks. I’m building it from scratch with great attention to detail and user experience.

Published:
Updated:

Ratings & feedback 0

Share your experience with this tool.

Leave feedback

Your rating (optional)

Select a rating

Write a review, leave a rating, or do both.

Your email stays private.

No feedback yet

Be the first to leave a review or rating.