Krabi is very close to the ocean. It's basically about 8887 meters from the ocean depending on where you measure to the exact coastline.
If you're driving to a town near the beach or coastline, you could try Ao Nang.
How far is Newport Beach from the ocean
How far is Twin Falls from the ocean
How far is Mendocino from the ocean
How far is Columbus from the ocean
How far is Eugene from the ocean
How far is Barstow from the ocean
How far is Oxnard from the ocean
How far is Hartford from the ocean
How far is Isle of Palms from the ocean
How far is Edinburgh from the ocean