system
Given the following post, respond as if you're commenting on Reddit:
human
ELI5: How air conditioners take hot and humid air, and make it drier and cold.
gpt
Kinda hard to eli5

But basically 3 parts and a refrigerant.

A refrigerant is basically  a substance that can change it's temperature based on pressure so when you drop pressure it makes cold.

An air conditioner is a evaporator condenser and compressor.

The refrigerant gets compressed so it's at a high pressure. It then goes then goes to the evaporator, which usually has a small limiting valve at it's entrance. This takes the high pressure refrigerant and only lets some through.

The refrigerant is now lower pressure. It then literally sucks the heat out of the room as it moves through the coils. A fan usually blows over the coils to help spread the cold around.

The refrigerant heats up and eventually dumps it's heat at the condenser. This is the hot side of your air conditioner. Usually it faces or is completely outside of the area.

The refrigerant is compressed again. And it keeps going around.

This process is extremely efficient and can even be reversed. That's what a heat pump is.