The function of SULF2 (sulfatase 2, ENSG00000196562) is as follows. Exhibits arylsulfatase activity and highly specific endoglucosamine-6-sulfatase activity (PubMed:12368295, PubMed:30788513, PubMed:35294879). It can remove sulfate from the C-6 position of glucosamine within specific subregions of intact heparin (PubMed:12368295, PubMed:30788513, PubMed:35294879). {ECO:0000269|PubMed:12368295, ECO:0000269|PubMed:30788513, ECO:0000269|PubMed:35294879}.