There is a win condition now; the previous answers are outdated.
There is now a story mode campaign, called "Adventure mode" , which can be initiated from a normal game by activating Maxwell's Door , which is a large wooden doorlike structure with a hoop on top that is generated in every (new) Sandbox world.
Adventure mode has a series of progressively harder levels, but it does appear to have a definite ending sequence.
gaming.stackexchange.com/users/14289/Yamikuronue
The game has no defined winning conditions, at least for the moment.
The developers have stated many times that they like the game to remain open-ended, with the player himself defining his own goals.
On their roadmap anyway they have planned a Story Mode that will let you discover the secrets of Don't Starve by progressing through increasingly harder worlds.
The portals that have been introduced in the last update (at the time of this answer) are a first step towards that goal.
UPDATE:
The game now has a winning condition that can be triggered by playing through Adventure Mode.
gaming.stackexchange.com/users/23609/Kappei
The aim is to survive as long as possible.
There is no winning, it's just about surviving.
Of course you can set your self challenges like in many open games such as seeing how comfortable you can make your survival etc.
UPDATE: The game can now be won by playing through Adventure Mode.
gaming.stackexchange.com/users/9302/George Duckett
Building and activating the Teleportato in Survival mode is also a win, of sorts.
It is the same device as the one you create in Adventure mode, but the outcome is different.
Putting together the crank thing, the metal potato thing, the box thing, and the ring thing with the wooden thing creates a device that allows you to leave the world you're in.
Upon activation, the game tells you that you'll be destroying the world you're currently playing (and it gives you the opportunity to keep playing instead).
And, if you choose to activate it, it gives you the message that "You've escaped!"
At this point, you are brought to the end of game screen where you accrue any owed experience points, and unlock any characters you are now due.
And, you are given the opportunity to change to a new character, and begin a new game maintaining your current inventory, but with a new world map and starting Day 1.
To my mind, this does represent a "win" scenario.
gaming.stackexchange.com/users/62390/David M
Yes, there is an end.
If you beat Maxwell in Maxwell's door there is a epilogue (spoiler alert): If you win you can put the Divining Rod into the Nightmare Lock.
Maxwell dies, but ends up in Survival mode alive and Wilson (or the player you are playing) will be trapped in Maxwell's place until another player takes his spot forever.
gaming.stackexchange.com/users/68156/hunter
I would like to know if it's possible to win in Don't Starve? Or is it just the matter of how long until you die?
Is it possible to win in Don't Starve?
gaming.stackexchange.com
<dont-starve>
gaming.stackexchange.com/questions/104124
gaming.stackexchange.com/users/10015/Andrew Savinykh
The game has no defined winning conditions. If you beat Maxwell, there is an epilogu. The community states that actually there is a winning condition in Don't Starve.
It seems that there isn't any winning condition. It is suggested that there is a winning condition.