The federal government has unveiled new social media laws as the major parties clash over algorithms.

Labor says Australians would be able to choose between existing algorithms or their “following feed” under tough new legislation that has already drawn the ire of the Coalition.

Social media giants will be forced to allow Australian users to opt out of algorithms under a new proposal.