The Hungarian produced a strong performance to take the title, eight years after last competing at an Olympic Games in the pool.
She held off the USA's Haley Anderson, who finished second to claim silver, with Italy's Martina Grimaldi taking bronze.
Great Britain's Keri-anne Payne just missed out on a medal, finishing fourth.