CBOR Decode
Developer & Author —Egor VolchenkoThis 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.
How to use CBOR Decode
Use the following steps to process a small test input.
Inspect a CBOR payload
- Enter the complete Base64 or Hex payload in Input text. Do not paste a diagnostic-notation expression.
- Select Hex under Input Encoding: for hexadecimal bytes or Base64 for Base64 data. The default UTF-8 choice is also treated as Base64 here.
- Leave Auto / Live on to update the result as you edit. To run manually, turn it off and click Run.
- Read CBOR Decode Result. Byte strings are shown as number arrays, and large integer values are shown as strings.
- 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.
https://million.tools/api/v1/run/cbor-decode Request Parameters (JSON / Form Data)
-
start(orinput)Input text
-
input_encodingInput Encoding
hexhex_ignore_non_hexbase64utf-8utf-16leutf-16bewindows-1251windows-1252
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]"
}
}
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.
Ratings & feedback 0
Share your experience with this tool.
No feedback yet
Be the first to leave a review or rating.