Lucy Crompton-Reid, chief executive of Wikimedia UK, warned the text of the bill could compel the website to introduce age verification.
The Wikimedia Foundation, which supports the free encyclopaedia, said it would refuse to verify the age of UK readers.
Failure to properly comply with the Online Safety Bill could create a situation where the site is fined, or even blocked for UK users entirely.