AGAMOUS-LIKE 8 (AGL8) belongs to the MADS-box family, which plays important roles in transcriptional regulation, sequence-specific DNA binding and other biological processes and molecular functions. The genome of cotton, a representative polyploid plant, contains multiple AGL8 genes. However, their functional differentiation is still unclear. In this study, a comprehensive genomic analysis of AGL8 genes was conducted. Cotton AGL8s were subdivided into four subgroups (Groups 1, 2, 3, and 4) based on phylogenetic analysis, and different subgroups of AGL8s presented different characteristics, including different structures and conserved motifs. With respect to the promoter regions of the GhAGL8 genes, we successfully predicted cis-elements that respond to phytohormone signal transduction and the stress response of plants. Transcriptome data and real-time quantitative PCR validation indicated that three genes, namely, GH_D07G0744, GH_A03G0856 and GH_A07G0749, were highly induced by methyl jasmonate (MeJA), salicylic acid (SA), and abscisic acid (ABA), which indicated that they function in plant resistance to abiotic and biotic stresses. The information from the gene structure, number and types of conserved domains, tissue-specific expression levels, and expression patterns under different treatments highlights the differences in sequence and function of the cotton AGL8 genes. Different AGL8s play roles in vegetative growth, reproductive development, and plant stress resistance. These results lay a foundation for further study of GhAGL8s in cotton.