Fibrin glue has been widely used as a surgical sealing and hemostatic agent. Its application is restricted due to poor tissue adhesion and low mechanical strength. To develop better tissue sealant and hemostatic agent, this study prepared the injectable hydrogels by chemically cross‐linking gelatin (G) with or without hyaluronic acid (HA) in situ at a mild condition. The rheological analysis, Fourier transform infrared spectroscopy, swelling, proteolytic degradation, biocompatibility, tissue sealing, and hemostatic ability of the hydrogels were investigated. It was found that the chemical cross‐linking rapidly formed in both self‐crosslinking gelatin (sc‐G) and gelatin/hyaluronate acid (G/HA) hydrogels. The hydrogels could be degraded by trypsin and had a desirable biocompatibility. The tissue sealing ability of the hydrogels was superior to fibrin glue. Furthermore, the G/HA hydrogel had similar hemostatic performance as fibrin glue, and was better than that of gelatin hydrogel. The results in the study indicated that the G/HA hydrogel could be used in clinic as a tissue sealant or surgical hemostat.