The invention discloses a front
water treatment device and a
water heater. The front
water treatment device comprises a valve body, the valve body is of a cylindrical structure with two open ends, one port of the valve body is a connecting port, the other port of the valve body is a dismounting port, the connecting port and the dismounting port are oppositely arranged, a three-way structure is formed on the side wall of the valve body, and a water inlet connecting
pipe and a water outlet connecting
pipe are formed at the two ends, located outside the valve body, of the three-way structure respectively; the
filter element is arranged in the filter
bottle, the
filter element is provided with an inlet and an outlet, and the
filter element is configured to filter water input from the inlet and output the water from the outlet; the filter
bottle is arranged on the connecting port, the filter element penetrates through the valve body through the dismounting port and extends into the filter
bottle, and the middle
pipe is inserted into the water inlet connecting pipe. Through the
integrated design of a valve
body water inlet and outlet flow path in the front-mounted
water treatment device, the overall size of the front-mounted water treatment device is reduced, and the filter element can be independently disassembled so as to facilitate disassembly,
assembly and maintenance of the front-mounted water treatment device.