In order to study the distribution characteristics of soil organic carbon (SOC) and soil organic carbon storage (SOCS) among different wetland types in Dandou Sea tidal wetland in Guangxi, firstly, based on Sentinel–2 imaging and random forest algorithm, combined with the existing tidal wetland data, a 10 m resolution tidal wetland dataset in Guangxi from 2019 to 2023 was generated, covering mangroves, salt marshes and tidal flats. The results show that the overall accuracy of the recognition results is higher than 96%, and the Kappa coefficient is higher than 0.95, which indicates high accuracy. Subsequently, the distribution characteristics and influencing factors of SOC and SOCS in different habitats were analyzed. The results showed that the SOC content of mangroves and salt marshes was higher than that of tidal flats. The SOC content of mangrove, salt marshes and tidal flats in 0–60 cm soil layer was 5.30–10.42 g/kg, 7.60–9.84 g/kg, and 1.29–2.25 g/kg, respectively. The changes of SOCS were 12.41–26.48 t/ha, 19.58–24.15 t/ha, and 3.61–6.86 t/ha, respectively. With the increase of soil depth, the SOC and SOCS of mangroves decreased gradually, and the SOC and SOCS of salt marshes increased gradually, and SOC and SOCS were mainly affected by soil bulk density (BD), soil moisture content (MC) and pH.