Tokyo in Summer, is it as unbearable as Shanghai in Summer?

Hi All, our family (2 adults, 2 kids aged 10 & 8) live in Europe and summer holiday is the only time we can get a long vacation. We've experienced summer (july - August) in Doha (2023) and Shanghai (2024). Yes the heat in both places were unbearable but our family managed quite well after the 1st week of staying and at the end of the day we all had great time in Doha & Shanghai.

We got a nice flight offer this summer from Europe to Japan (Tokyo). We're considering to take the chance, but having second thoughts after reading the warnings about Summer in Tokyo.

Do you guys think summer in Tokyo is similar to Summer in Shanghai (in terms of heat, humidity etc)..Thank you so much in advance and i am sorry if this question has been posted before