A touch sensor and an electronic device are provided, and the touch sensor includes a film substrate and a plurality of touch electrode regions on the film substrate. The plurality of touch electrode regions are spaced apart from each other by at least one gap region, and the touch sensor is bendable along the gap region. The touch sensor is bendable and is not easily damaged, which helps to achieve foldable touch control.