whomever is an object pronoun and works like the pronouns him, her, and them (give the document to whomever in the department). whoever is a subject pronoun and works like the pronouns he, she, and they (whoever wrote this poem should win a prize).
United States