We develop optical and near-infrared colour-selection criteria based on the model colours of binaries consisting of a white dwarf and a main-sequence star. Using our colour-selection algorithm, we present a catalogue of 523 white dwarf-main sequence (WDMS) binaries from the spectroscopic Sloan Digital Sky Survey Data Release 7 (SDSS DR7), most of them previously identified. Among them, we identify 86 objects as new WDMS binaries. 95 WDMS candidates are also found from the photometric SDSS DR7, cross-matched with the United Kingdom Infrared Telescope (UKIRT) Infrared Sky Survey Data Release 5 (UKIDSS DR5). Based on a {chi}^2^ minimization technique, we derive independent stellar parameters such as the effective temperatures, surface gravities, masses and distances of the white dwarfs and secondary stars and the metallicities of the secondaries.