The increment of hydrogen demand in modern oil refineries motivates the industries to optimize the hydrogen network management and rationally use hydrogen sources for cost reduction and sustainable development. This paper presents comprehensive mathematical model for the synthesis of refinery hydrogen network. The hydrogen consuming and supply processes and hydrogen purification processes are investigated in detail and described mathematically. A simple refinery hydrogen network is synthesized for the illustration of the applicability of the proposed approach.