Question: it is he or it is him?
Answer: In any kind of formal writing or oration, "It was he" is the correct form. (To put it somewhat technically, the copula takes a nominative complement in Standard English.) However, in everyday conversation, it's best to avoid this form and use "It was him" instead.