In doing so, Stanford became the first woman to win the under-23 and senior titles in consecutive years, while the Brownlee brothers are hot favourites to make it a British double in the men's race.
Stanford was third entering proceedings, with American Gwen Jorgensen, German Anne Haug and the Brit separated by just 13 points. All three women knew a win in the grand final would result in a world championship, but by the second lap of the cycle leg it was a one-woman race.
The German fell to last place midway through the swim, left to fare for herself as her title rivals played it safe near the front of the field. Australian Emma Moffat led the field out of the water with Jorgensen and Stanford close behind, with Haug eventually exiting some two minutes in arrears.
And soon it was Stanford's crown to lose, when Jorgensen was involved in a crash and took her time to get back on the bike. The American looked dazed and eventually pulling out of the race a lap later.
Haug and Jorgensen's misfortunes left the door open for Hewitt and the Kiwi needed to cross in seventh to finish ahead of Jorgensen on the podium. But Stanford's pace proved too relentless, leaving Hewitt to finish 1min 23sec behind in eighth.
There was some consolation for Hewitt - by finishing inside the top 12, she earned qualification for the Commonwealth Games.