Onions are low in carbs but have more sugar than other vegetables. Some keto dieters avoid red or white onions because of their higher sugar content (6g per 100g), although scallions can be an effective keto food.