The Duke of Sussex told Netflix that his decision to wear the swastika-emblazoned uniform was “one of the biggest mistakes of my life”.
Pictures of Harry in the outfit were revealed exclusively by The Sun in 2008.
However, the prince did not apologise for a video of himself using a vile slur against fellow Army officer Ahmed Raza Khan the following year.
Speaking about his Nazi costume, he said: “It was one of the biggest mistakes of my life.
“I felt so ashamed afterwards. All I wanted to do was make it right.
“I sat down and spoke to the chief rabbi in London, which had a profound impact on me.
“I went to Berlin and spoke to a Holocaust survivor.
“I could have just ignored it and got on and probably made the same mistakes over and over again in my life, but I learned.”
Addressing the subject of racism, he said: “In this family, sometimes you’re part of the problem rather than part of the solution.
“The thing with unconscious bias is it’s actually no one’s fault.
“But once it’s been pointed out or identified within yourself, you then need to make it right. It’s education and awareness.
“And it’s a constant.
“It’s a constant work in progress for everybody, including me.”