Despite a concerted push back from the industry, greyhound racing will be banned in NSW from July 1 next year after legislation passed the NSW Parliament.

A bill which bans the sport and appoints an administrator to wind up the industry passed the Legislative Assembly early on Wednesday morning after several weeks of intense public debate.

The move by the Baird government follows the report of a special commission of inquiry which found up to 68,000 greyhounds were slaughtered as "wastage" in the past 12 years "because they were considered too slow to pay their way or were unsuitable for racing".

It recommended the NSW Parliament decide whether the industry has lost its social licence and should be no longer able to operate.