Gibberellin (GAs) plays an important regulatory role in the development and growth of pineapple (Ananas comosus (L.) Merr.). Bioinformatics was used to confirm the differential expression of GA2 gibberellin oxidase gene AcGA2oxs in the pineapple genome, which laid the foundation for exploring its role in pineapple. In this study, 42 GA2ox genes (AcGA2oxs) were identified in the pineapple genome, named from AcGA2ox1 to AcGA2ox42, and divided into four groups according to phylogenetic analysis. We also analyzed the gene structure, conserved motifs and chromosome localization of AcGA2oxs. AcGA2oxs within the same group had similar gene structure and motifs composition. Collinear analysis and cis-element analysis provided the basis for understanding the evolution and function of GA2ox genes in pineapple. In addition, we selected different tissue parts to analyze the expression profile of AcGA2oxs, and the results show that 41 genes were expressed, except for AcGA2ox18. AcGA2ox18 may not be expressed in these sites or may be pseudogenes. qRT-PCR (real-time fluorescence quantitative PCR) was used to detect the relative expression levels of the GA2ox gene family under different concentrations of GA3 treatment, and it was found that AcGA2ox gene expression was upregulated in different degrees under GA3 treatment. These results provide useful information for further study on the evolution and function of the GA2ox family in pineapple.