Yes, generally Philadelphia is safe, and the main downtown area is quite compact, charming and welcoming to travelers. Some travelers recommend sticking to the main downtown area and avoiding more outlying areas of the city (such as South or West Philly). In general, though, use common sense, avoid wandering around by yourself at night and you shouldn’t have any problems.