I think you should be able to copy the save folder on a USB or something, or send a zipped version to yourself via email, and then just put it back after installing the game again.
I have never done that, but I don't see why it wouldn't work.
If you're on Windows, the save folders are located at C:\Users\[username]\AppData\Roaming\StardewValley\Saves
If you use cloud saves, they might also carry over as they're tied to your Steam/GOG account rather than your computer.