Fibroblast A20 suppresses advanced glycation end products (AGEs)-induced melanogenesis by inhibiting NLRP3 inflammasome activation. AGEs repress A20 expression and significantly m6A-methylate A20 mRNA in fibroblasts. YTHDF2 is the most studied m6A reader protein and can accelerate degradation of m6A-modified mRNA. Whether YTHDF2 regulates AGEs-induced A20 expression and pigmentation is unknown. In this study, we confirmed that YTHDF2 inversely regulated AGEs-BSA-inhibited A20 expression but facilitated AGEs-BSA-activated NF-κB signaling and NLRP3 inflammasome in fibroblasts via YTHDF2 knockdown and overexpression experiments. Mechanistically, YTHDF2 bound to m6A-modified A20 mRNA induced by AGEs-BSA and increased its degradation. Moreover, fibroblast YTHDF2 robustly promoted AGEs-BSA-induced IL-18 level in coculture supernatants and melanin content, tyrosinase activity, and expression of microphthalmia-associated transcription factor and tyrosinase in melanocytes, which were significantly blocked by IL-18 binding protein. Further, fibroblast YTHDF2 markedly increased AGEs-BSA-induced epidermal melanin level in cocultured ex vivo skin and MAPKs activation in melanocytes. Importantly, upregulated dermal YTHDF2 expression was negatively correlated with dermal A20 level and positively associated with both epidermal melanin and dermal AGEs content in sun-exposed skin and lesions of melasma and solar lentigo. These findings suggest that fibroblast YTHDF2 positively regulates AGEs-induced melanogenesis mainly via A20/ NF-κB /NLRP3 inflammasome/ IL-18 /MAPKs axis in an m6A-dependent manner and functions in photoaging-induced hyperpigmentation skin disorders.