This is a fun question because the answer depends on how you look at it.
As a real-world animal or person you could meet, no, Sonic the Hedgehog does not exist. He is a fictional character created by Sega, brought to life through video games, cartoons, and comics. In that sense, he is very "real" to millions of fans as a beloved piece of pop culture, even if he does not exist as a living creature.
So the short version: Sonic is real as a character and an icon, but not as an actual hedgehog running around the real world.