The invention discloses a hydrogen purifier, which comprises a main body purifying device, an automatic controller, a heat exchange device and a waste gas treating device, wherein the main body purifying device comprises a gas inlet pipe, a gas inlet pump, a gas inlet valve, a gas inlet cut-off valve, a reaction tank, a gas discharge cut-off valve, a gas discharge valve, a gas discharge pump, a gas discharge pipe, a bypass valve, a reversing gas pipe, a gas discharge reversing valve and a waste gas discharge pipe, the reaction tank comprises a reaction tank outer wall, a reaction tank interlayer, a reaction tank inner wall, a hydrogen storage alloy reaction bed body, a pressure gauge and a filter, and the heat exchange device comprises a hot water box, a cold water box, a two-way water pump and a heat exchanger. According to the present invention, hydrogen purification is performed by using the characteristics of the hydrogen storage alloy; and the hydrogen purifier has characteristicsof small size, low cost, simple process and direct online/offline use, and has great advantages compared to other hydrogen purification methods.