Convert CSV to CBOR

Turn CSV files into CBOR. The same structure and key order in CBOR, with integers, floats, booleans, null, text, arrays and maps keeping their types and dates as text.

Converted in an isolated sandbox on our serversDeleted after 24 hours

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

A CSV table as binary CBOR.Each row keeps its structure and key order, with typed values.

  1. What you get

    One CBOR file with the same structure and key order as the CSV. Integers, floats, booleans, null, text, arrays and maps keep their types in the output.

    Dates are written as text, not as a special date type.

  2. Choosing a delimiter

    When Delimiter is left out, it is guessed from the rows. Set Delimiter if the guess is wrong. The choices are comma, semicolon, tab and pipe.

    Spreadsheets in many European locales use semicolons, so pick semicolon for files exported from them.

  3. Going back

    To turn CBOR into a table again, use CBOR to CSV. For other formats, see every CSV conversion.

CSV and CBOR.What each format is, and the options this conversion takes.

  1. 01 · delimiter

    Delimiter

    The character between fields. It is guessed from the rows when left out. Spreadsheets in many European locales use semicolons.

    • comma A comma.
    • semicolon A semicolon.
    • tab A tab.
    • pipe A vertical bar.
    comma · semicolon · tab · pipe

The formats

From · 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
To · CBOR

CBOR

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

Extensions
.cbor
MIME type
application/cbor
Kind
Text and data

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

terminal
$ cv convert sheet.csv sheet.cbor
$ cv convert sheet.csv sheet.cbor

Questions.What people ask about CSV to CBOR.

01OF 04

Yes. Integers and floats keep their types in the CBOR file. Booleans and null are kept as well.

Dates are kept as text. CBOR gets the same date string, not a date type.

Set Delimiter to semicolon. If you leave it out, the delimiter is guessed from the rows.

Yes. The structure and key order stay the same in the CBOR file.

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