Australian rescuers were racing against time to save 15 short-finned pilot whales on Friday after more than 150 of the migrating mammals beached on the country's west coast.

Most of the whales had died, said Jeremy Chick, incident controller at Western Australia's conservation department, after becoming stranded on dry land overnight.

Authorities and trained volunteers were trying to save 15 in shallow waters.

The whales beached at Hamelin Bay, 315 km south of the state's capital, Perth.

While whales regularly get stranded on the coastal strip migrating between Antarctic feeding grounds in the south and warmer northern waters where they raise their young, the large number this time is unusual.

Melissa Lay, manager at the Hamelin Bay Holiday Park, told Reuters on the phone that it was the second masse stranding she had witnessed during her 15 years in the area.

"There are some that are still alive but barely," Lay said. "The last time it happened, none survived."

Locals and tourists were being warned to stay out of the water due to a likely increase in sharks attracted by the dead whales.

People there for the peak salmon fishing season were also advised to stay out of the shallows.

"It is possible the dead and dying animals will act as an attractant, which could lead to sharks coming close into shore along this stretch of coast," the Department of Primary Industries and Regional Development said in a statement.

The largest mass stranding of whales in the state occurred in 1996 when 320 long-finned pilot whales stranded themselves just north of Hamelin Bay.

Short-finned pilot whales are dark-coloured with pinkish-grey undersides, travel in large numbers and often get stranded en masse, the department said.

Sign up to our free newsletters

Get the best updates straight to your inbox:
Please select at least one mailing list.

You can unsubscribe at any time by clicking the link in the footer of our emails. We use Mailchimp as our marketing platform. By subscribing, you acknowledge that your information will be transferred to Mailchimp for processing.