Acidification is a promising stimulation technique for improving the pore structure of low-permeability shale reservoirs and enhancing shale gas production. Variations in the mineral composition and acid concentration play a significant role in altering the pore systems in shale reservoirs, thereby affecting shale gas transport and production. To investigate the effect of shale composition on pore structure and fractal characteristics under hydrochloric acid (HCl) treatment, experiments were carried out on carbonate-rich (68%), carbonate-medium (45%), and carbonate-poor (2%) shales with different concentrations of HCl solution (1, 5, 10 wt %). X-ray diffraction (XRD), low-temperature nitrogen adsorption, and fractal theory were performed to investigate variations in mineral composition, pore structure, and fractal characteristics of the unreacted and reacted shales. The results illustrated that the HCl treatment significantly reduced the content of carbonate minerals, and the dissolution degree of carbonate minerals increased with the increase in HCl concentration. More meso- and macropores were generated for carbonate-rich and carbonate-medium shale, while more micro- and mesopores were generated in carbonate-poor shale, which led to the increase in total pore volume (TPV) and total specific surface area (TSSA) at different degrees. Moreover, the pore surface roughness (D 1) and structure complexity (D 2) were reduced with the increase of HCl concentration for carbonate-rich shale, while the alteration of D 1 and D 2 showed an opposite trend for carbonate-poor shale. Additionally, D 1 decreased and D 2 increased for carbonate-medium shale. Relevant results could provide theoretical references for the acid fracturing of shale reservoirs with varying mineral compositions.