Sean Creighton was sentenced at a court in London after using social media to call for Muslims and Jews to be killed.
An investigation was launched after a photograph was posted online of Creighton, 45, holding an assault rifle and standing in front of a Nazi flag.
The probe uncovered his wider hate campaign, including leaving offensive stickers in public and ownership of a "White Resistance Manual 2.4" document with details of weapons and explosives.
Creighton was described as a "committed racist" by prosecutor Jonathan Sandiford.
"He was enthralled by Nazism and Adolf Hitler, whom he told police in his interviews was his God," Sandiford told the court.
In addition to homophobic and racist social media posts, evidence against Creighton included an image of Hitler posted online alongside the message "kill the Muslims".
Creighton told police he was "a bit of a hater who hated for the people", the court heard.
Following the sentencing, Dean Haydon from the Counter Terrorism Command of London's Metropolitan Police said the force would continue to tackle different forms of extremism.
"We are as committed to apprehending and prosecuting far-right extremists who commit terrorist offences and promote hatred as we are those who support and promote ISIS," he said in a statement.
(Except for the headline, this story has not been edited by NDTV staff and is published from a syndicated feed.)
Get the latest election news, live updates and election schedule for Lok Sabha Elections 2019 on ndtv.com/elections. Like us on Facebook or follow us on Twitter and Instagram for updates from each of the 543 parliamentary seats for the 2019 Indian general elections.