There is no site that lets you build a Sonic game in the browser, but there are excellent free tools for making games of your own — you just download them.
· Scratch — block-based coding aimed at beginners, and the fastest way to make something playable in an afternoon.
· GameMaker — the classic choice for 2D games, with a free tier and a gentle learning curve.
· Construct — visual, event-based, browser-friendly.
· Godot — free and open source, and capable of 2D or 3D.
If a platformer is what you want, all four can do it. Start with Scratch if you have never programmed, and move to GameMaker or Godot once the basics click. And be careful about using existing characters like Sonic in anything you publish — that is protected intellectual property.