"Mayor Bloomberg has had an extraordinary career in business, philanthropy, and public service," Chancellor Holden Thorp said in a news release. "He will help make commencement very special for our graduates and their families and friends."
Bloomberg also will receive an honorary doctor of laws degree at the ceremony.
Bloomberg was first elected mayor in 2001, just two months after the September 11 attacks. Before that, he made his fortune with his own financial news and information service.
UNC's spring commencement is set for May 13 in Kenan Stadium.