Chris Kreider had a goal and two assists, Mika Zibanejad and Vladimir Tarasenko each had a goal and an assist, and Fox had two assists for the Rangers, who are the No. 3 seed from the Metropolitan Division. Igor Shesterkin made 34 saves.
Curtis Lazar and Dawson Mercer scored for the Devils, the No. 2 seed from the Metropolitan. Akira Schmid allowed five goals on 29 shots before being replaced in the third period by Vitek Vanecek, who did not face a shot.
"What a game to be in," New Jersey coach Lindy Ruff said. "Where would you rather be, playing at home in front of your fans? Game 7 is something that if you're a little kid growing up, you're going to sit there and go, man, I'd love to play in that game. We've worked hard all year to get to this point. I know that team that's in that locker room is going to give me everything they've got."
RELATED: [Complete Devils vs. Rangers series coverage]
Lazar gave the Devils a 1-0 lead at 11:49 of the first period, finishing the rebound of Kevin Bahl's shot off Shesterkin's left pad.
Kreider tied it 1-1 at 19:35 when Zibanejad's one-timer from the left point deflected in off his leg. It was Kreider's fifth power-play goal of the series and ended an 0-for-14 drought on the man-advantage for New York.
Zibanejad scored his first goal of the series to put New York ahead 2-1 at 10:10 of the second. Kreider retrieved the puck behind the net and sent a backhand pass to Zibanejad, who scored glove side from the slot.
"I can sit here and lie and say it wasn't a good feeling seeing the puck go in," Zibanejad said. "The wins are all that matters. We got the win that we needed and wanted tonight. Now we just keep going."