Hitler died by committing suicide.
If I remember correctly, he commit suicide because he couldn't handle the punishments coming his way. People found out about the bad things he did, such as the Holocaust, and they prepared to make him pay for what he did.
He knew this, and he didn't want to face the consequences for his actions, knowing that it'd be a LARGE punishment, so he ended his life.