Microsoft has moved to capitalise on Google’s threat to shut its search engine in Australia, throwing its weight behind efforts to make Big Tech pay for news content and offering to transfer small businesses to its rival service Bing at no cost.

The Seattle-based company on Wednesday slammed Google’s threat to exit Australia over the news media bargaining code and said it fully supported a draft law aimed at forcing technology groups to pay news providers for content.

“One thing is clear: while other tech companies may sometimes threaten to leave Australia, Microsoft will never make such a threat,” said Brad Smith, Microsoft’s president, in a statement. “We are committed to supporting the country’s national security and economic success.”

Canberra’s proposed news media bargaining code would introduce binding arbitration and non-discrimination clauses to protect publishers and force Google and Facebook to negotiate payments for carrying their content.

Google has a 94.5 per cent market share in search in Australia, while Microsoft’s Bing search engine holds 3.6 per cent, according to StatCounter, a web analytics company.

Microsoft’s decision to throw down the gauntlet will complicate Google’s aggressive lobbying campaign against the draft legislation, which it has called “unworkable” and “unreasonable”.

Mel Silva, Google Australia’s chief executive, said last month that if the code became law, Google would have “no real choice but to stop providing search in Australia”.

Google has said the law would breach a fundamental principle of the internet by forcing it to pay to provide links to news businesses’ sites. It has warned that would set a damaging precedent and privilege one group of content providers — news media groups — over others.

“Withdrawal is our worst-case scenario if the code remains unworkable and the last thing we want to have happen,” said Google, reiterating it was willing to pay publishers for value.

John Kettle, partner at McCullough Robertson, a law firm in Brisbane, said the media code was emblematic of the start of a “tech war” as sovereign countries moved to reassert control over trillion-dollar digital behemoths.

He said Google’s public threat to exit Australia was a mistake: “It simply points out to people that there are alternatives to its search engine and has provided rivals with an opportunity.”

Microsoft’s offer to fill any gap left by Google’s exit followed discussions last week between Scott Morrison, Australia’s prime minister, and Satya Nadella, Microsoft’s chief executive. Mr Morrison has so far shown no sign of bending to Google, telling media that Canberra “did not respond to threats”.

Critics of Google and Facebook said the pair have only recently begun to agree deals with news providers, and that the code is necessary to ensure that dominant digital platforms negotiate in good faith.

The push to make Big Tech pay for news also comes as Google, Facebook and other Silicon Valley companies face intensifying global scrutiny over their market dominance.