Heat shock factors (HSFs) play key roles in the response to abiotic stress in eukaryotes. In this study, 35 DcHSFs were identified from carrot (Daucus carota L.) based on the carrot genome database. All 35 DcHSFs were divided into three classes (A, B, and C) according to the structure and phylogenetic relationships of four different plants, namely, Arabidopsis thaliana, Vitis vinifera, Brassica rapa, and Oryza sativa. Comparative analysis of algae, gymnosperms, and angiosperms indicated that the numbers of HSF transcription factors were related to the plant's evolution. The expression profiles of five DcHsf genes (DcHsf 01, DcHsf 02, DcHsf 09, DcHsf 10, and DcHsf 16), which selected from each subfamily (A, B, and C), were detected by quantitative real-time PCR under abiotic stresses (cold, heat, high salinity, and drought) in two carrot cultivars, D. carota L. cvs. Kurodagosun and Junchuanhong. The expression levels of DcHsfs were markedly increased by heat stress, except that of DcHsf 10, which was down regulated. The expression profiles of different DcHsfs in the same class also differed under various stress treatments. The expression profiles of these DcHsfs were also different in tissues of two carrot cultivars. This study is the first to identify and characterize the DcHSF family transcription factors in plants of Apiaceae using whole-genome analysis. The results of this study provide an in-depth understanding of the DcHSF family transcription factors' structure, function, and evolution in carrot.