The structures of the title compounds, C(12)H(8)N(2)O(7)S and C(12)H(8)ClNO(5)S, contain weak C-H.O interactions creating layers of molecules which, taking the conformation of the molecules into account, are arranged in an ABAB sequence. Both structures can be designated, therefore, as ordered racemates of rotameric species.