In the title acids, C(15)H(14)O(4)S, (I), and C(16)H(16)O(4)S, (II), respectively, the angle between the planes of the benzene ring and the carboxyl group is 13.7 (1) degrees for (I) and 21.3 (1) degrees for (II). The molecular structures are stabilized by intramolecular C-H.O hydrogen bonds. The crystal packing is stabilized by a single O-H.O hydrogen bond in both compounds, in which the O and H atoms are ordered; H.O 1.87 A for (I) and 1.83 A for (II), O.O 2.680 (2) A for (I) and 2.652 (3) A for (II), and O-H.O 172 degrees for (I) and 175 degrees for (II). The hydrogen bond forms a cyclic dimer, with graph-set descriptor R(2)(2)(8), about a centre of symmetry.