Overview: Heparin is a blood thinner that is used to prevent or treat blood clots. It may be injected under the skin or into a blood vessel. The most common side effects are irritation at the ...