Catalysis of the hydrolysis of lactone rings (intramolecular cyclic esters) to produce a hydroxyl group and a carboxyl group.