An inverted repeat (IR) in DNA is a sequence of nucleotides that is followed by its complementary bases but in reverse order (e.g., CACGGAttgTCCGTG). IRs cause fragile sites endangering genetic stability. In viruses, IRs enable host cell entry, genomic evolution in zoonotic viruses, and more. Despite their importance, IRs have not been studied comprehensively viral genomes at a large scale. We developed a tool into the Biological Language Modeling Toolkit which computes augmented suffix-arrays to efficiently identify IRs, and studied 13,023 viral genomes and catalogued their IRs. We found over 19 million IRs longer than 20 bases (1,300 IRs per virus), including 134 that are longer than 2 kilobases. Among the viruses with large IRs, we identified over 50 large IRs in herpes viruses, and over 10 IRs in pox viruses. There is a prevalence of large ‘terminal’ inverted repeats in bacteriophages. We discovered large IRs in common disease-causing viruses, such as the African swine fever virus (lethal to domestic pigs), paramecium bursaria chlorella virus (important for termination of algae blooms, found to be able to infect humans and decrease the motor skills and reaction speed), Yaba-like disease virus (important in the cancer gene therapy), and human herpes virus. We found 54 viruses with high IR density, including disease-causing viruses like pox and herpes, and lymphocystis disease virus. These results in investigating the prevalence and distribution of inverted repeats in viral genomes suggests potential for discovery of mechanism of action of some of the understudied viruses.