The classification of melasma is critical for correct clinical diagnosis, treatment selection, and postoperative measures. However, preoperative quantitative determination of melasma type remains challenging using conventional Wood's lamp and optical dermoscopy techniques.Aim: Using photoacoustic microscopy (PAM) to simultaneously obtain the two diagnostic indicators of melanin and blood vessels for melasma classification and perform quantitative analysis to finally achieve accurate classification, rather than relying solely on physicians' experience.Approach: First, the patients were classified by experienced dermatologists with Wood's lamp and optical dermoscopy. Next, the patients were examined in vivo using the PAM imaging system. Further, the horizontal section images (X -Y plane) of epidermal melanin and dermal vascular involvement were extracted from the 3D photoacoustic imaging results, which are important basis for PAM to quantitatively classify melasma.Results: PAM can quantitatively reveal epidermal thickness and dermal vascular morphology in each case and obtain the quantitative diagnostic indicators of melanin and blood vessels. The mean vascular diameter in lesional skin (223.2 μm) of epidermal M+V-type was much larger than that in non-lesional skin (131.6 μm), and the mean vascular density in lesional skin was more than three times that in non-lesional skin. Importantly, vascular diameter and density are important parameters for distinguishing M type from M+V type.Conclusions: PAM can obtain the data of epidermal thickness, pigment depth, subcutaneous vascular diameter, and vascular density, and realize the dual standard quantitative melasma classification by combining the parameters of melanin and blood vessels. In addition, PAM can provide new diagnostic information for uncertain melasma types and further refine the typing.