There is a slight stylistic difference. These examples below could help somehow, but to understand the stylistic connotation one has to consider several examples and usages. The simplest examples could be:
чего ты хочешь? - What is it that you want?
что ты хочешь? - What do you want?