Convert INI to BSON

Turn INI files into BSON. One BSON document with the same keys in order; a top-level list is wrapped under the key items and any other value under value.

Converted in an isolated sandbox on our serversDeleted after 24 hours

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

Settings turned into a BSON document.One INI file becomes one BSON document with the same keys in the same order.

  1. What you get

    A single BSON file. The keys come out in the order they have in the INI file, and nested objects and lists stay nested.

    Integers, floats, booleans, null and text keep their types in the BSON document, so a number is stored as a number and not as text.

  2. How values are wrapped

    BSON needs a document at the top. If the top level is a list, it is wrapped under the key items. Any other top-level value is wrapped under the key value.

  3. What changes

    Dates stay text. BSON has a date type, but the conversion does not create one, so a date in the INI file arrives as a string.

    An integer beyond the signed 64-bit range cannot be stored as an integer. It becomes a float.

  4. Going back

    To turn a BSON document into settings again, use BSON to INI. For other formats, see every BSON conversion.

INI and BSON.What each format is.

The formats

From · INI

INI

Sections of key and value pairs, the settings format of Windows and many tools.

Extensions
.ini .cfg
MIME type
text/x-ini
Kind
Text and data
To · BSON

BSON

MongoDB's binary document encoding, JSON with dates and binary fields.

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

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

terminal
$ cv convert report.ini report.bson
$ cv convert report.ini report.bson

Questions.What people ask about INI to BSON.

01OF 04

Yes. The document has the same keys in the same order as the INI file.

No. Dates stay text.

An integer beyond the signed 64-bit range becomes a float.

Yes. INI covers files that end in ini or cfg.

More conversions.Other ways in and out of INI and BSON.