There are a couple of ways to get into making your own Sonic levels. First, you can visit fan resources like https://www.playsega.com/editors/, though you may need a few extra files or tools before things run smoothly.
Alternatively, some Sonic games include a built-in debug mode that lets you experiment with level layouts and object placement directly. Either route gives you a hands-on way to tinker with classic Sonic design.