IRONY is used to convey, usually, the opposite meaning of the things you say, but its purpose is not intended to hurt the other person. On the other hand, SARCASM, while still keeping the "characteristic" that you mean the opposite of what you say, unlike IRONY it is used to hurt the other person.