Well, as y'all know, the Nazi was at an end when Russia started attacking Berlin. So, Hitler, Goebbles, and a few others hid in a bunker. Lots of Nazis already offer Hitler to escape Berlin secretly, but he just refused and insisting to stay at the bunker and ask others to leave. And because of that, he must commit suicide in order to not being captured by Russia.
It was 29th April 1945 when he married Eva Braun. And in 30th April in the morning, after he had breakfast with Eva, Hitler asked his secretary, Traudl Junge, to type his last will and testament. And in the afternoon, he spent a while in his study and watched Eva commit suicide by consuming a cyanide capsule and Hitler shot himself. His body was taken out of the bunker and Hitler's men burnt his body along with Eva's.
But there are some issues regarding his death, like he actually escaped from the bunker to Indonesia (and i consider this a little impossible) or that he and Eva were assasinated. However, these issues are never confirmed. So, what i believe the most is Hitler shot himself and his wife died after bit a highly toxic capsule.
The death of Joseph Goebbels happened on 1st May 1945 after he murdered his six children. Magda Goebbels, his wife, and Dr. Stumpfegger gave the children morphine and made them unconscious for a few hours. Then, Magda came in and made them six bit a cyanide capsule each one and they're dead. After that, Goebbels and Magda went outside. Goebbels shot Magda on the chest before he shot himself.