The ability to transform matter between numerous physical states or shapes without wires or external devices is a major challenge for robotics and materials design. Organisms can transform their shapes using biomolecules carrying specific information and localize at sites where transitions occur. Here, we introduce gel automata, which likewise can transform between a large number of prescribed shapes in response to a combinatorial library of biomolecular instructions. Gel automata are centimeter-scale materials consisting of multiple micro-segments. A library of DNA activator sequences can each reversibly grow or shrink different micro-segments by polymerizing or depolymerizing within them. We develop DNA activator designs that maximize the extent of growth and shrinking, and a photolithography process for precisely fabricating gel automata with elaborate segmentation patterns. Guided by simulations of shape change and neural networks that evaluate gel automata designs, we create gel automata that reversibly transform between multiple, wholly distinct shapes: four different letters and every even or every odd numeral. The sequential and repeated metamorphosis of gel automata demonstrates how soft materials and robots can be digitally programmed and reprogrammed with information-bearing chemical signals.