Hydrogen production using renewable energy is in line with China's the goal of carbon peak and carbon neutrality. The construction of off-grid hydrogen energy industrial park can effectively achieve local utilization of renewable energy and develop the green hydrogen industry. However, off-grid hydrogen energy industrial park has not the compensation and sustentation from large power grid, the stable operation and economic production of electrolyzer are affected by significant factors, such as power fluctuation and frequent start stop. Therefore, this paper proposed the optimization method for capacity configuration and power allocation of electrolyzer array in off-grid integrated energy system. Firstly, based on units of energy supply, energy conversion, and energy storage, a structural model of off-grid integrated energy system was established. Then, by analyzing the operational characteristics of single electrolyzer and electrolyzer array, flexible mode of multiple electrolyzers operating in combination was proposed. Furthermore, considering the hydrogen production cost, the mean of hydrogen production volatility and penalty cost, the capacity configuration and power allocation methods for electrolyzer array were proposed, and the optimization problem is solved with multi-objective particle swarm optimization algorithm. Finally, the hydrogen energy industrial park in Zhangye is taken as example to verify the effectiveness of above research content. Compared to a single type of alkaline electrolyzer, the mean of hydrogen production volatility of multiple electrolyzers operating in combination has decreased by 43.2 %, the hydrogen production quantity has increased by 9.74 %. Compared to a single type of proton exchange membrane electrolyzer, the hydrogen production cost has been reduced by 14.16 %. Compared with the balanced running mode, the flexible operation mode can improve the cost-effective and quantity of hydrogen production.