What protocol does the IDE use to upload sketches to a board?

Is it transmitting in HEX, ASCII, BIN, or what?