A wire-forming mechanism for spring making machine includes a base frame with two first sliding rail sets, and two wire-forming assemblies for independently performing a two-dimensional action. Each wire-forming assembly includes a movable base panel slidably mounted on one respective first sliding rail set and providing a second sliding rail set that extends in a perpendicular manner relative to the first sliding rail sets, a tool panel slidably mounted on the second sliding rail set and providing an L-shaped tool mount, one or multiple tools selectively mounted in the L-shaped tool mount, and two driving mechanisms for moving the movable base panel along one respective first sliding rail set and the tool panel along the second sliding rail set respectively.