The invention provides a method for preparing hydrogen and LNG from coke oven gas. The method comprises the following steps: electric decoking; boosting of the coke oven gas by a compression system; cooling of the raw gas coke oven gas by using the BOG gas (the BOG gas is a gas formed after the passive heating gasification of LNG) of LNG in order to further remove tar, benzene, naphthalene and like substances in the coke oven gas; and pretreatment using a TSA process to finely remove macromolecular impurities, such as tar, benzene, naphthalene and the like; wet and dry two-stage desulfurization for removing sulfides in the coke oven gas; two-stage low pressure shifting for a reaction of CO and water vapor to form CO2 and hydrogen; and pressurization using a compressor, an MDEA solution process for removing carbon dioxide, a membrane separation technology for separating hydrogen and methane, separation, concentration and purification of the hydrogen and methane, and dehydration, demercuration and liquefaction of the separated high-concentration methane to obtain the LNG. The coke oven gas is finally converted into the hydrogen and the LNG which have high values, so the energy of thecoke oven gas is fully used, and the environment is protected.