An excavator hauls the whale carcass to shore to be buried beneath the beach in Bali

The rotting carcass of a nearly 14-metre (46-foot) whale washed up Thursday on Bali beach popular with tourists.

The conservation agency said it was investigating the death of the giant creature, which was first spotted in near Batu Belig beach, north of Seminyak.

Curious onlookers gathered around the carcass but the strong smell of decay put many off, said one local.

Bali conservation official Prawono Meruanto said the creature could be a Bryde's whale, and that its was later buried at the beach using an excavator.

In July, ten smaller whales were found dead on a beach in Indonesia's East Nusa Tenggara province. Locals managed to get one surviving member of the pod back into the water alive.

Cross-currents off beaches pose a danger to as they can get caught between reefs close to shore.