Convert CBOR to CSV

Turn CBOR files into CSV. A list of objects becomes one row per object under a header of every key in first-seen order, and a single object becomes one row.

Converted in an isolated sandbox on our serversDeleted after 24 hours

Drop CBOR files on the dialor turn it to pick what to do

A table from CBOR data.A list of objects becomes one row per object. A single object becomes one row.

  1. What you get

    One CSV file. The header holds every key found in the data, in the order each key is first seen. Each object in a list becomes a row under that header, and a single object becomes one row.

  2. How values are written

    Nested objects and lists are written into their cell as JSON text. A null value leaves its cell empty.

    Byte strings become base64 text. Epoch times become ISO 8601 text.

  3. When it stops

    A file that cannot be parsed stops the conversion with input_corrupted. The conversion produces no CSV in that case.

    To go the other way, use CSV to CBOR.

CBOR and CSV.What each format is.

The formats

From · CBOR

CBOR

Concise Binary Object Representation, the binary JSON of IoT and web standards.

Extensions
.cbor
MIME type
application/cbor
Kind
Text and data
To · CSV

CSV

Rows of comma-separated values. The plainest way to move a table between programs.

Extensions
.csv
MIME type
text/csv
Kind
Text and data

In your code.The same CBOR to CSV conversion through the API, for your app or your agent.

terminal
$ cv convert report.cbor report.csv
$ cv convert report.cbor report.csv

Questions.What people ask about CBOR to CSV.

01OF 04

Each object becomes one row. The header lists every key in the order it is first seen.

Nested objects and lists are written into their cell as JSON text.

Byte strings become base64 text. Epoch times become ISO 8601 text.

The file could not be parsed. The conversion stops with input_corrupted and gives no CSV.

More conversions.Other ways in and out of CBOR and CSV.