The invention discloses a grid-connected inverter for low-frequency current ripple output restraining of a fuel cell and a control device. The grid-connected inverter comprises the fuel cell FC, a boosting converter, a full bridge inverter and an LCL filter. The control device comprises a voltage sensor, a current sensor and a DSP digital controller. The boosting converter comprises an inverse-current-preventing diode, an input filtering capacitor Cin, a filtering inductor LB, an electric MOSFET and an output capacitor CDC. The full bridge inverter comprises four electric MOSFETs. The LCL filter comprises a capacitor C1 and two inductors L1 and L2. The DSP digital controller comprises a proportioner, a phase-locked loop, a subtracter, a PI adjuster, a multiplying unit, a summator, a signal generator, a comparer and a phase inverter. By establishing the boosting converter, energy decoupling on an input side and an output side is achieved, the fact that currents on the input side do not contain low-frequency ripples is guaranteed, the manufacturing cost of the grid-connected inverter is lowered, power conversion efficiency is improved, and an electric energy converting device suitable for fuel battery power generation is achieved.