Richard Evans, in his magisterial three volume history of Nazi Germany, is quite clear on whether Hitler was a socialist: “…it would be wrong to see Nazism as a form of, or an outgrowth of, socialism.” (The Coming of the Third Reich, Evans, p. 173). Not only was Hitler not a socialist himself, nor a communist, but he actually hated these ideologies and did his utmost to eradicate them. At first this involved organizing bands of thugs to attack socialists in the street, but grew into invading Russia, in part to enslave the population and earn ‘living ‘ room for Germans, and in part to wipe out communism and ‘Bolshevism’.
The key element here is what Hitler did, believed and tried to create. Nazism, confused as it was, was fundamentally an ideology built around race, while socialism was entirely different: built around class. Hitler aimed to unite the right and left, including workers and their bosses, into a new German nation based on the racial identity of those in it.
Socialism, in contrast, was a class struggle, aiming to build a workers state, whatever race the worker was from. Nazism drew on a range of pan-German theories, which wanted to blend Aryan workers and Aryan magnates into a super Aryan state, which would involve the eradication of class focused socialism, as well as Judaism and other ideas deemed non-German.
via Thought Co Was Adolf Hitler a Socialist?