Google will not have to sell its Chrome web browser but must share information with competitors, a US federal judge has ordered.

The remedies decided by District Judge Amit Mehta have emerged after a years-long court battle over Google's dominance in online search.

The case centred around Google's position as the default search engine on a range of its own products such as Android and Chrome as well as others made by the likes of Apple.

The US Department of Justice had demanded that Google sell Chrome - Tuesday's decision means the tech giant can keep it but it will be barred from having exclusive contracts and must share search data with rivals.

Google had proposed less drastic solutions, such as limiting its revenue-sharing agreements with firms like Apple to make its search engine the default on their devices and browsers.

On Tuesday, the company indicated that it viewed the ruling as a victory, and said the rise of artificial intelligence (AI) probably contributed to the outcome.

Today's decision recognizes how much the industry has changed through the advent of AI, which is giving people so many more ways to find information, Google said in a statement after the ruling.

The tech giant had denied wrongdoing since charges were first filed against it in 2020, saying its market dominance is due to its superior product.

Shares in Alphabet, Google's parent company, jumped by more than 8% after the ruling.

Smartphone-makers such as Apple, Samsung and Motorola will also benefit from the absence of exclusive contracts for Google Search, Chrome, Google Assistant, and the Gemini app.

The decision is not the end of the tech giant's court battles, as another case involving illegal monopolies in online advertising technology is on the horizon.