N-Acetylgalactosamine 4-sulfate 6-O-sulfotransferase (GalNAc4S-6ST) transfers sulfate from 3'-phosphoadenosine 5'-phosphosulfate to position 6 of N-acetylgalactosamine 4-sulfate (GalNAc(4SO(4))) in chondroitin sulfate and dermatan sulfate.