CBOR DECODE =========== Use this CBOR decoder to convert CBOR to JSON from Base64 or Hex. Inspect a binary payload in a readable JSON display and copy the result. 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. OVERVIEW & METADATA ------------------- Canonical URL: https://million.tools/cbor-decode/ Markdown Copy (.md.txt): https://million.tools/cbor-decode.md.txt Plain Text Copy (.txt): https://million.tools/cbor-decode.txt API Endpoint: https://million.tools/api/v1/run/cbor-decode (POST, Keyless, 60 req/min) SEO Title: CBOR Decoder Online | Base64 or Hex to JSON Alternative Names: CBOR to JSON Converter, Decode CBOR Bytes, CBOR Base64 decoder, Hex CBOR decoder, CBOR payload inspector Category: Encoding (https://million.tools/encoding/) Tags: #CBOR Application Category: DeveloperApplication Platform: Web (All modern desktop and mobile browsers, requires JavaScript) Price: Free ($0.00 USD, no registration or sign-up required) Live Calculation: Supported (Auto / Live toggle enabled by default) Usage Statistics: 10 views Published: 2026-11-26 Last Updated: 2026-11-26 Author: Egor Volchenko (Developer & Author) KEY FEATURES ------------ - Decode CBOR bytes from Hex or Base64 - Display decoded values as formatted JSON - Show binary byte strings as numeric arrays - Show decoded big integers as strings - Update with Auto / Live or run manually - Copy the JSON display and clear text PARAMETERS & INTERFACE CONTROLS ------------------------------- Input Parameters & Options: - input_text: Input text. - input_encoding: Hex | Hex (Ignore Non-Hex Characters) | Base64 | UTF-8 | UTF-16LE | UTF-16BE | Windows-1251 (Cyrillic) | Windows-1252 (Latin 1) | ... (42 options) Output Fields & Metrics: - result: CBOR Decode Result. Controls: Run, Clear, Copy, Fill test data, Auto / Live INTERACTIVE EXAMPLE (TEST VECTOR) --------------------------------- Settings: - Input Encoding: Hex Input text: 83010203 CBOR Decode Result: [ 1, 2, 3 ] HOW TO USE CBOR DECODE ---------------------- Use the following steps to process a small test input. Inspect a CBOR payload: 1. Paste the encoded bytes: Enter the complete Base64 or Hex payload in Input text. Do not paste a diagnostic-notation expression. 2. Identify the representation: 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. Run the calculation: Leave Auto / Live on to update the result as you edit. To run manually, turn it off and click Run. 4. Inspect the JSON display: Read CBOR Decode Result. Byte strings are shown as number arrays, and large integer values are shown as strings. 5. Copy or clear the text: 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. Note: 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 -------------------------- Q: Which input encodings are supported for the CBOR bytes? A: Use Hex or Base64 under Input Encoding:. For this binary operation the default UTF-8 selection also reads the pasted value as Base64. Q: Can I upload a CBOR file? A: No file picker is exposed. The current form takes pasted Hex or Base64 text. Q: Why did a CBOR byte string become a JSON array? A: JSON has no binary byte-string type. The display represents each byte as a number so you can inspect the content. Q: Why did a large CBOR integer become a quoted string? A: The JSON display converts decoded big integers to strings. This avoids an imprecise JSON number but changes the displayed type. Q: Can I round-trip all CBOR types through the displayed JSON? A: No. JSON cannot retain every CBOR type, tag, or map-key distinction. The display is intended for inspection rather than a byte-preserving editor. Q: Is the calculation performed only in my browser? A: No. This form sends the entered data to the calculation API. Use sample data instead of production secrets. RELATED TOOLS ------------- - URL Encode (https://million.tools/url-encode/): Percent-encode a URL component or text value using UTF-8. Convert spaces, plus signs, and reserved characters before inserting a value into a URL. - URL Decode (https://million.tools/url-decode/): Decode percent-encoded text and URL components. Convert UTF-8 byte escapes to readable text while preserving literal plus signs. - JWT Decoder (https://million.tools/jwt-decoder/): Inspect a JSON Web Token’s decoded header and payload. Read claims as JSON for debugging; decoding does not verify the signature or token validity. - Base64 Encode (https://million.tools/base64-encode/): Encode text or entered bytes as standard Base64. Select UTF-8, Hex, or another supported input encoding, then copy the encoded string. - Base64 Decode (https://million.tools/base64-decode/): Decode a standard Base64 string to UTF-8 text. Accept padded or unpadded input, inspect the decoded result, and copy it for testing. ABOUT THE AUTHOR ---------------- 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. Links: x.com (https://x.com/egorleet) | github.com (https://github.com/egorleet) | t.me (https://t.me/egorleet) | instagram.com (https://www.instagram.com/egorleet) | facebook.com (https://www.facebook.com/egorleet/) | egorleet.blog (https://egorleet.blog/) | mastodon.social (https://mastodon.social/@egorleet) | twitch.tv (https://www.twitch.tv/egorvolchenko) | stackoverflow.com (https://stackoverflow.com/users/31679135/egor-volchenko) | reddit.com (https://www.reddit.com/user/Vegetable_Window9185/) | youtube.com (https://youtube.com/@egor-volchenko)