You can see the beam from a beacon (if your line of sight isn't obstructed) from up to 256 blocks away in the Java Edition and up to 64 blocks away in the Bedrock Edition.