I clean my stovetop with oven cleaner. Spray it on and let it sit for 5 to 10 minutes, then wipe off. It melts all the greasy dried on cooking messes with minimal effort.
For how to clean a gas stove top or for an effective grill cleaner, remove the grates from the top of the burners. Clean the grates with water and soap as a homemade stove cleaner, or if they have a thick layer of dry spills, use oven cleaner. If tougher stains cover your burner grates, you can use ammonia.
how do you clean the cast iron grates on a gas stove? Add a squirt or two of grease-cutting dishwashing detergent to a sink filled with clean hot water. Set the grates inside the sink and allow them to soak for up to 15 minutes. Apply a non-abrasive cleaner to a wet nylon scour pad. Burnish the grates with the scrub pad and cleanser on hard-to-remove food spills.