It's likely turning grainy because you're just letting the browser shrink it. You'd get a better job by opening it in a photo editor, and then resize it manually and resave it as a new file.
If you don't have a editor, there are some online ones. I believe Tiny Image is one (or it might be Tiny Pic).