World Border

The Overworld, Nether and The End each have a world border of 3 million blocks.

If you approach the world border you will be told you are at the border and will be set back to prevent you going beyond.