ADIF to MongoDB Converter
Convert Amateur Radio ADIF log files to MongoDB-compatible JSON. 100% client-side parser with date normalization and type inference.
JSON Preview
// JSON output will appear here...
About
This tool converts ADIF (Amateur Data Interchange Format) files into MongoDB-ready JSON. It is designed for Ham Radio operators and developers who need to migrate logbook data (QSOs) into modern NoSQL databases. Unlike simple Regex converters, this tool uses a byte-precise parser to respect the Length specifier of every field, ensuring data integrity even if your logs contain special characters.
It automatically detects standard ADIF fields like QSO_DATE and TIME_ON, merging them into a single ISO-8601 formatted Date object compatible with MongoDB's date queries.
Formulas
The ADIF format relies on a Tag-Length-Value structure. The parser reads the stream using the following logic:
Where LENGTH is the exact number of bytes to read for the DATA payload. The record ends with an End-of-Record marker:
For MongoDB compatibility, dates are transformed:
Reference Data
| Field (ADIF) | Type | JSON Mapping | Description |
|---|---|---|---|
| CALL | String | call | The callsign of the contacted station. |
| BAND | String | band | Frequency band (e.g., 20M, 70CM). |
| FREQ | Number | freq | Frequency in MHz. Converted to Float. |
| QSO_DATE | Date | ts | Combined with Time to create ISO timestamp. |
| MODE | String | mode | Transmission mode (CW, SSB, FT8). |
| RST_SENT | String | rst_sent | Signal report sent. |