Background: Highly pathogenic influenza A (H5N8) viruses have caused several worldwide outbreaks in birds and are of potential risk to humans. Thus, a specific, rapid and sensitive method for detection is urgently needed. Methods: In the present study, TaqMan minor groove binder probes and multiplex real-time RT-PCR primers were designed to target the H5 hemagglutinin and N8 neuraminidase genes. A total of 38 strains of avian influenza viruses and other viruses were selected to test the performance of the assay. Results: The results showed that only H5 and N8 avian influenza viruses yielded a positive signal, while all other subtypes avian influenza viruses and other viruses were negative. High specificity, repeatability, and sensitivity were achieved, with a detection limit of 10 copies per reaction. Conclusions: The developed assay could be a powerful tool for rapid detection of H5N8 influenza viruses in the future.