The disclosure provides methods, cells and transgenic non human mammals for the production of heparin. Specifically, the method comprising providing a transgenic non human mammal or mammary epithelial cells modified to express one or more heparin biosynthesis enzymes, and harvesting heparin produced. Further provided are the cells and transgenic non human mammals thereof as well as the heparin obtained from these cells or transgenic non human mammals.