Time to BYO-Bag.

That convenient double-handled plastic bag Big Apple shoppers get at check-out is officially going to come with a price tag.

The City Council on Thursday green-lit a controversial bill that puts a 5-cent fee on plastic and paper shopping bags at grocery, convenience and other stores.

The council voted 28-20 for the bill, which will take effect on Oct. 1. It is supposed to encourage people to bring along reusable bags when they go shopping.

Co-sponsor Councilman Brad Lander (D-Brooklyn) first introduced the legislation in 2013 with the goal of dramatically reducing the use of plastic bags in the city.

“It works by irritating us into changing our behavior and remembering to bring reusable bags,” said Lander ahead of the City Hall hearing.

Lander added, “While it may be contentious today, [the bill] is going to help New Yorkers together solve a real environmental problem.”

The councilman and other backers of the bill, like co-sponsor Councilwoman Margaret Chin (D-Manhattan), say the fee would reduce 60 to 90 percent of the more than 9.3 billion plastic bags New Yorkers throw away annually by promoting the use of reusable bags.

“Plastic bags aren’t really free. They cost our city millions of dollars to transport as waste. They litter our streets,” said Chin.

Last week Council Speaker Melissa Mark-Viverito endorsed the bill, which the Council Sanitation Committee overwhelmingly voted in favor of.

“The number of plastic bags being used in our city has become an environmental hazard,” said Mark-Viverito, calling it an “important bill.”

‘It smells like a tax, looks like a tax, acts like a tax — it’s a tax … a tax that will cost New Yorkers hundreds of millions of dollars a year.’ - Councilman Steven Matteo

When asked if she uses reusable bags, Mark-Viverito replied, “Right now I don’t and I will have a motivation to use the reusable bags — and I’m more than happy to do that.”

Backers of the bill noted that the nickel surcharge is not a tax as it goes directly to the retailers and not the city, but opponents don’t see it that way.

“It smells like a tax, looks like a tax, acts like a tax — it’s a tax … a tax that will cost New Yorkers hundreds of millions of dollars a year,” said Councilman Steven Matteo (R-Staten Island), who added that his south Staten Island constituents will travel to New Jersey to shop to avoid the fee.

Councilman James Vacca (D-Bronx), who voted against the legislation, said that the bill “will hit those least able to pay.”

“Just when New Yorkers think government has taxed everything in sight, we have found something else: the plastic bag,” he said.

The fee does not apply when it comes to purchases involving food stamps, food pantries, in-store plastic bags for produce and meat, prescription bags at pharmacies and take-out at restaurants.

Stores that break the bag fee law will be hit with a $250 penalty for the first violation and $500 for each subsequent violation.

There will be a six-month grace period from Oct. 1, 2016, to March 31, 2017, when the city Department of Consumer Affairs will only issue warnings.