Who was worse, nazi Germany or imperial Japan?

People always talk about nazis and how evil they were which i don't think anyone would disagree with. But what about Imperial Japan?
Who was worse, nazi Germany or imperial Japan?
Post Opinion