This paper proposes a compact topology for an integrated PV and energy storage system based on three boost converters and one bidirectional buck-boost converter. One of the boost converters is used for MPPT control, and the other two boost converters are used to implement a boost inverter that can generate sinusoidal waveform. A bidirectional buck-boost converter, to charge and discharge the energy storage system to balance the power gap between the PV panels and the load, is also integrated in the topology. A control strategy is developed to balance the supply and load demand. Simulation results validate the performance of the proposed topology and control strategy.