The present invention provides a cabinet air conditioner, comprising: a casing, the upper part of the casing has an upper air outlet, and the lower part of the casing has a lower air outlet; a filter device for filtering gas, the filter device is arranged in the casing, and at least part of the filter device is movable; a cleaning device is arranged in the casing, and the cleaning device is used to clean the filter device; the cabinet air conditioner has an upper air outlet mode and a lower air outlet mode, when the cabinet air conditioner is in the upper air outlet mode, the upper air outlet outlets air, the lower air outlet inlets air, and the filter device avoids the upper air outlet and covers the lower air outlet; when the cabinet air conditioner is in the lower air outlet mode, the upper air outlet inlets air, the lower air outlet outlets air, and the filter device covers the upper air outlet and avoids the lower air outlet. Through this technical solution, it is convenient to evenly distribute the indoor temperature and improve the comfort of users; the filter device can adapt to the change of the air outlet mode to ensure the cleanliness of the gas entering the air conditioner; the filter device can be cleaned by the cleaning device to ensure the cleanliness of the filter device.