Molecular detection of pathogens in clinical samples often requires pretreatment techniques, including immunomagnetic separation and magnetic silica bead (MSB)-based DNA purification to obtain the purified DNA of pathogens. These two techniques usually rely on handling small tubes containing a few millilitres of the sample and manual operation, implying that an automated system encompassing both techniques is needed for larger quantities of the samples. Here, we report a 3D-printed microfluidic platform that enables bacterial preconcentration and genomic DNA (gDNA) purification for improving the molecular detection of target pathogens in blood samples. The device consists of two microchannels and one chamber, which can be used to preconcentrate pathogens bound to antibody-conjugated magnetic nanoparticles (Ab-MNPs) and subsequently extract gDNA using magnetic silica beads (MSBs) in a sequential manner. The device was able to preconcentrate very low concentrations of pathogens and extract their genomic DNA in 10 mL of 10% blood within 30 min, and thus allowed polymerase chain reaction (PCR) and quantitative PCR to detect 1 colony forming unit of Escherichia coli O157:H7 in 10% blood. The results suggest that the 3D-printed microfluidic platform is highly useful for lowering the limitations on molecular detection in blood by preconcentrating the target pathogen and isolating its DNA in a large volume of the sample.