Workers on an oil rig noticed the pooch's head poking out above the ripples as she paddled through the ocean last Friday.
They called out to the exhausted animal - which is between three and five years old - and she swam towards them, taking refuge among the rusty metal bars of the rig.
She stayed on the drilling platform for two nights while a special cage was welded together and staff gave her food and water.
The dog was finally lifted by crane on to another oil vessel passing through the area yesterday. She was taken to vets in Songkhla, southern Thailand, today.
Oil rig worker Khon Vitisak, who saved the animal, said he does not know how she came to be in the ocean but he would like to adopt her if no owner comes forward.