The ordinance is modeled after one approved by the Orange County Board of Supervisors in April. That law bans registered sex offenders from county recreational areas, including parks, harbors and beaches.
Violators face a $500 fine.
Irvine City Councilman Jeffrey Lalloway is the chief sponsor of the ordinance, which also has the backing of Orange County District Attorney Tony Rackauckas.
"Irvine's record of safety is a source of great pride to the residents of this city and to me," Lalloway said. "As a father of two young children and an Irvine official, I am always looking for new ways to better protect our children and families and keep Irvine America's safest city."
City News Service contributed to this report.