You need to backup
(open 'computer' folder and follow the folders)
C:\Users\ Owner or profile name \AppData \Roaming \.minecraft
(appdata folder is hidden, you will have to type it in when your in your profile folder, add it on the end)
you can then put the file/folder in the same place it was when you reinstall and it should be fine.
or use this:
Savegame Manager
http://www.gamesave-manager.com/
it can be slow and take a while to detect and backup the save games, but it's pretty easy to use and backs up and restores all the files needed.