Upper gastrointestinal bleeding (UGIB) is bleeding in the upper part of the gastrointestinal tract with an acidic and dynamic environment that limits the application of conventional hemostatic materials. This study focuses on the development of N-[(2-hydroxy-3-trimethylammonium) propyl] chitosan chloride/phytic acid (HTCC/PA, HP) powders with fast hemostatic capability and strong acid resistance, for potential applications in managing UGIB. Upon contact with liquids within 5 seconds, HP powders rapidly transform into hydrogels, forming ionic networks through electrostatic interactions. The ionic crosslinking process facilitates the HP powders with high blood absorption (3.4 times of self-weight), sufficient tissue adhesion (5.2 and 6.1 kPa on porcine skin and stomach, respectively), and hemostasis (within 15 seconds for in vitro clotting). Interestingly, the PA imparts the HP powders with strong acid resistance (69.8% mass remaining after 10 days of incubation at pH 1) and on-demand removable sealing while HTCC contributes to fast hemostasis and good wet adhesion. Moreover, the HP powders show good biocompatibility and promote wound healing. Therefore, these characteristics highlight the promising clinical potential of HP powders for effectively managing UGIB.