Nine Australian revellers at Malaysia's Formula One racing circuit have been jailed after stripping down to reveal "underpants" featuring Malaysia's national flag.

The men, aged 25 to 29, stripped off their clothes at the track at Sepang, near Kuala Lumpur's international airport, about 5pm on Sunday.

Apparently celebrating the win of fellow Australian Daniel Ricciardo, the group chanted "Aussie Aussie Aussie, oi oi oi" for several minutes and wrapped themselves in Australian flags as they stood in the middle of a crowd.

They then poured beer into their shoes and drank from them, before posing for photos with fellow spectators.