What is the highest achievable height by flying?

I am asking about the maximum height that can be reached by flying. I would like to try it for myself, but I am scared that it would crush my devices.
Does anyone know the answer?


Solution 1:

The maximum height the player can reach by flying is Y=252 (or 4.50x1015). If the player managed to climb up further, at Y=255 (or 3.60x1016) the player loses the ability to fall.

As for commands, the maximum number that a player can teleport to is Y=4096.


Source, Wiki archive