This paper proposes a peer-to-peer (P2P) energy swapping framework for resilience enhancement of networked energy hubs (NEHs) against extreme weather events. Besides the reducing generation capacity, these events may change energy hubs’ (EHs) networking topology and cause EHs to be partially networked. In this case, some EHs are indirectly connected to each other via interconnector EHs in the energy carrier networks, and EHs should swap energy carriers for resilience enhancement. Based on this framework, EHs with surplus energy like electricity are able to export it to the interconnector EHs. These EHs convert it into different forms like gas for exporting to other EHs. However, generation cost and energy conversion losses may impose an extra cost on some EHs for the resilience enhancement of others. Hence, energy swapping cost is defined based on a bilinear function of price and amount of the exchanged energy among EHs such that the operation cost of each EH is kept lower than its individual operation cost. To facilitate P2P energy sharing and EHs’ privacy-preserving, the alternative direction method of multipliers (ADMM) algorithm is utilized to solve the proposed nonconvex bilinear problem in a decentralized way. Numerical analyses demonstrate resilience enhancement based on the proposed framework.