In this paper, we present an optimization planning method for enhancing power quality in integrated energy systems in large-building microgrids by adjusting the sizing and deployment of hybrid energy storage systems. These integrated energy systems incorporate wind and solar power, natural gas supply, and interactions with electric vehicles and the main power grid. In the optimization planning method developed, the objectives of cost-effective and low-carbon operation, the lifecycle cost of hybrid energy storage, power quality improvements, and renewable energy utilization are targeted and coordinated by using utility fusion theory. Our planning method addresses multiple energy forms—cooling, heating, electricity, natural gas, and renewable energies—which are integrated through a combined cooling, heating, and power system and a natural gas turbine. The hybrid energy storage system incorporates batteries and compressed-air energy storage systems to handle fast and slow variations in power demand, respectively. A sensitivity matrix between the output power of the energy sources and the voltage is modeled by using the power flow method in DistFlow, reflecting the improvements in power quality and the respective constraints. The method proposed is validated by simulating various typical scenarios on the modified IEEE 13-node distribution network topology. The novelty of this paper lies in its focus on the application of integrated energy systems within large buildings and its approach to hybrid energy storage system planning in multiple dimensions, including making co-location and capacity sizing decisions. Other innovative aspects include the coordination of hybrid energy storage combinations, simultaneous siting and sizing decisions, lifecycle cost calculations, and optimization for power quality enhancement. As part of these design considerations, microgrid-related technologies are integrated with cutting-edge nearly zero-energy building designs, representing a pioneering attempt within this field. Our results indicate that this multi-objective, multi-dimensional, utility fusion-based optimization method for hybrid energy storage significantly enhances the economic efficiency and quality of the operation of integrated energy systems in large-building microgrids in building-level energy distribution planning.