The Binary star Database (BDB) is the world’s principal database of binary and multiple systems of all observational types. In particular, it should contain data on binaries discovered in non-optical bands, X-ray binaries (XRBs) and radio pulsars in binaries. The goal of the present study was to compile complete lists of such objects. Due to the lack of a unified identification system for XRBs, we had to select them from five principal catalogues of X-ray sources. After cross-identification and positional cross-matching, a general catalogue of 373 XRBs was constructed for the first time. It contains coordinates, indication of photometric and spectroscopic binarity, and extensive cross-identification. In the preparation of the catalogue, a number of XRB classification disagreements were resolved, some catalogued identifiers and coordinates were corrected, and duplicated entries in the original catalogues were found. We have also compiled a general list of 239 radio pulsars in binary systems. The list is supplied with indication of photometric, spectroscopic or X-ray binarity, and with cross-identification data.