The invention discloses a window-type air conditioner. The window-type air conditioner comprises a machine shell, an indoor heat exchanger, an indoor air driving device, a horizontal compressor, an outdoor air driving device, an outdoor heat exchanger and an electronic control box, wherein the indoor heat exchanger, the indoor air driving device, the horizontal compressor, the outdoor air driving device and the outdoor heat exchanger are arranged in the machine shell in sequence, the electronic control box is located on the upper portion of the horizontal compressor, the shaft axis of the horizontal compressor is parallel to the length directions of the indoor heat exchanger and the outdoor heat exchanger. According to the technical scheme, through the reasonable placement of all parts in the machine shell, the window-type air conditioner is compact in structure and small in size, specifically, the compressor is placed in a horizontal mode and is placed between the indoor heat exchanger and the outdoor heat exchanger, the shaft axis of the horizontal compressor is parallel to the length directions of the indoor heat exchanger and the outdoor heat exchanger, the whole height of the window-type air conditioner is reduced effectively, the window-type air conditioner is compact in structure and small in size, the adaptive window kind of the window-type air conditioner is increased, and storage and transport are convenient.