The antonym for mercenary is ‘altruistic.’
While a mercenary is typically someone who is motivated by personal gain and financial reward, often engaging in activities for profit without regard to ethics, an altruistic person acts out of a selfless concern for the well-being of others. This contrast highlights the difference between pursuing one’s interests at the expense of others and prioritizing the needs of others above one’s own benefits.