CBOR Decoder
Turn Concise Binary Object Representation back into something you can read. Drop in a .cbor file or paste a hex or base64 dump and see the decoded value, a path-by-path outline of every item with its type, and interpreted tags such as dates, epoch times and bignums. Handy for WebAuthn, COSE, IoT payloads and CBOR sequences.
🔒 100% Client-Side & Private — processed locally in your browser. Files never leave your device.
Drop a file here, or browse
Accepts: .cbor,.bin,application/cbor,application/octet-stream
Files stay on your device.
Ctrl+V to paste an image
Text is processed on this device. If a file is selected, the file is used instead.
Options
Drop a file above to begin
Your file are processed on this device and never uploaded.
How it works
What it accepts and returns
Feed it a .cbor file or pasted hex or base64 text. Pasted formats are auto-detected after 0x prefixes, whitespace and commas are stripped, or you can force hex or base64. The result is the decoded value as a code block, or a table walking every item by path with its type and preview. Input caps: 10 MB, 64 nesting levels, 200,000 items.
A concrete use
Paste a WebAuthn credential ID or a COSE message and read its structure at a glance. The outline mode lists each nested path with its type, so an unfamiliar payload becomes navigable before you look at any raw value.
The options that matter
format toggles the decoded JSON versus the path/type/value outline. interpretTags turns tag interpretation on or off: when on, tag 0 yields an ISO date from text, tag 1 an ISO date from epoch seconds, tags 2 and 3 become decimal bignum strings, and tag 24 is expanded as embedded CBOR; when off, every tag stays as an object with its raw value.
Edge cases worth knowing
JSON has no byte type, so byte strings render as {"$bytes":"0102"}; NaN, infinity and undefined appear literally because strict JSON cannot hold them. More than one top-level item means a CBOR sequence, printed one per line. An empty file, an empty paste, odd-length hex or bad base64 each fail with a specific message.
Privacy
The entire decode runs in the browser on the bytes you provide. Nothing is uploaded to a server, and no external library is fetched at run time.
Questions
How are byte strings shown?
JSON has no byte type, so byte strings appear as {"$bytes":"0102"} with the content in hexadecimal. Nothing is lost and the marker makes it obvious which values were binary.
Why do I see NaN and $undefined in the output?
CBOR can carry NaN, infinity and undefined, none of which strict JSON allows. Rather than silently turning them into null, the decoder writes them literally so you can see what was really in the data.
What happens with CBOR sequences?
If more than one top-level item is present, each is decoded and printed on its own line in order, exactly as RFC 8742 describes. The item count is reported in the statistics.
Which tags are interpreted?
Tag 0 becomes an ISO date from its text, tag 1 becomes an ISO date from epoch seconds, tags 2 and 3 become decimal bignum strings, and tag 24 is decoded as embedded CBOR. Every other tag is kept as {"$tag":n,"value":...} so nothing is hidden.
Related tools
See categoryNDJSON <-> JSON Array
Convert newline-delimited JSON to a JSON array and back, one compact value per line.
Hex Encode / Decode
Convert text to and from hexadecimal (UTF-8), with configurable separators.
File Signature Inspector
Identify common file formats from their binary signatures, not just extensions.
JSON Formatter & Validator
Pretty-print, minify, recursively sort keys or validate JSON, with line/column errors.