Older than the ice
The green jelly is Javanese and old. The iced dessert is a product of the early twentieth century, when ice arrived in the port cities. Between those two facts there is room for three countries to claim it.
Nobody knows who first made chendol, and three countries would like it to have been them. What can be said is that the green jelly is older than the ice. Rice-flour jellies in coconut milk and palm sugar are an old Javanese sweet, sold as dawet from clay pots carried on a yoke. Dawet is mentioned in the Serat Centhini, a Javanese manuscript compiled in the early nineteenth century.
The word itself points the same way. Cendol is usually linked to jendol, a Javanese, Sundanese and Indonesian word for a bump or bulge, describing the swollen little strands. A Dutch East Indies cookbook of 1866 records “tjendol”.

Then came ice
The jelly needs no ice; the dessert does. Ice only became an ordinary thing in the tropics when ice factories were built in the port cities in the late nineteenth and early twentieth centuries. Once it could be shaved by the bowl from a block, dawet became es cendol in Java and chendol in the Straits ports, where it was sold from pushcarts.
By the 1930s the word was in use in Malaya, and one Penang stall still trading traces itself to 1936.
Three claims
The jelly, the palm sugar and the coconut milk are all documented in Java before anywhere else, and the name appears to be Javanese or Sundanese. Banjarnegara and other towns still have their own dawet.
Malaysia has the best-known stalls and the strongest popular claim to the shaved-ice version, especially in Penang and Melaka, the home of gula melaka.
Singapore was part of the same Straits trade and has sold it for as long. Its own contribution is modest: the red beans, and a habit of adding durian.
The fairest summary is that the dessert was not invented in one place. The jelly is Javanese, the iced version belongs to the port cities of the early twentieth century, and it spread wherever the same traders and hawkers went.
The wider family
Green pandan noodles in coconut milk with palm sugar and ice. Sometimes called “lot chong Singapore”.
The same jelly, served in a tall glass of chè with coconut milk and beans.
Rice jelly in coconut milk or jaggery syrup, drunk at the water festival.
Pandan jelly with coconut cream and palm sugar, sold at markets.