Not a website, but the AnkiDroid flashcards app can do this. The app is a bit fiddly to set up at first, but easy enough to use after that.
Be aware that as you start to learn more characters, you will run across different characters with the same pinyin, so when you see shi4, for example, you won't know whether it's 是 or 事 or a different shi4.
A free option is TOFU Learn which is what I've been using for years. It has the HSK decks already available, and it's simple enough to write your own (and import the pinyin and definitions from CC-EDICT etc.).
I'm unwilling to pay for Skritter (which is undoubtedly better) simply because it's too expensive when there is a perfectly good free alternative. ...