While many keto dieters try to avoid white or red onions because of their higher sugar content (6 grams per 100 grams), Ruani said that scallions are actually a great onion substitute, as they contain half the sugar amount of onions, but still have a ton of health benefits (think fiber and beneficial sulfur compounds).