Is there any painless way to die?

I'm not planning to suicide haha. I was curious about this. I remember when I was suicidal and searched this then I got no result rather than 'Help is available'. The thought just came across my mind and I am curious whether painless death is possible or not? at least what is the least painless method to die (not natural)? Rather than dying in sleep lol.

Gag please don't take up this question. I really don't have any intentions to suicide. I'm genuinely curious.
Updates
+1 y
According to me the most painless way to die is overdosing of sleeping capsules and go to the deepest sleep ever.
Is there any painless way to die?
Post Opinion